Hi,
Whit Thiele wrote:
> Hey guys,
>
> Is there a way to automatically set the ATLSIP library to use a specific
> codec and get rid of all the other selections?
Currently, there is no clean way to get rid of other codecs. What you
are doing here:
> Do I just set AudioCodec0 =
> "codec_name" and that's it?
>
however should be enough. This sets the default highest priority codec
(0 being the highest priority).
> I've set the following in code:
>
> ATLSIP.AudioCodec0 = "G.711-uLaw-64k";
> ATLSIP.AudioCodec1 = "G.711-uLaw-64k";
>
>
> Is this the correct way to do this? I find ATLSIP is defaulting to gsm in
> some cases and I'm not sure why.
>
Yes this is correct. Defaulting GSM to may be happening because no
codecs were set prior to calling InitializeSIP(). This happens in
SoftPhoneInterface::Initialize():
...
for( PINDEX i = 0; i < 20; i++ )
{
PStringStream codecSlot;
codecSlot << "Codec" << i;
OString codec = m_Config->GetString( "Audio", codecSlot, "" );
if( !codec.IsEmpty() )
formatMask.AppendString( codec );
}
if( formatMask.GetSize() == 0 )
{
m_Config->SetString( "Audio", "Codec0", "iLBC-13k3" );
formatMask.AppendString( "iLBC-13k3" );
m_Config->SetString( "Audio", "Codec1", "GSM-06.10" );
formatMask.AppendString( "GSM-06.10" );
}
...
Make sure that you have set ATLSIP.AudioCodecX before calling
InitializeSIP().
Regards,
Ilian
> Whit
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> opensipstack-devel mailing list
> ope...@li...
> https://lists.sourceforge.net/lists/listinfo/opensipstack-devel
>
>
>
|