[Freeswitch-users] using speex

Brian West brian at freeswitch.org
Tue Nov 23 08:36:18 PST 2010


David,
	Your client is sending ulaw (the 0 on the m= line is ulaw) and speex on dynamic payload 98 which is fine.  FreeSWITCH picks the first codec on your clients list and 200ok's if you wish to force your codec preferences over the clients you need to set codec-negotiation to greedy so that your in control on the server side and the client will not... currently you have the setting of generous I suspect.

/b

On Nov 23, 2010, at 10:22 AM, David Wafula wrote:

> Hi all,
> How do i get this to work:
> 
> From SIP client, this is what am sending:
> ================================
> 
> Content-Type: application/sdp
> Contact: <sip:1000 at xx.xx.xx.xx.xx:6060;transport=UDP>
> 
> v=0
> o=user1 53655765 2353687637 IN IP4 xx.xx.xx.xx.xx
> s=-
> c=IN IP4 xx.xx.xx.xx
> t=0 0
> m=audio 1935 RTP/AVP 0
> a=rtpmap:98 SPEEX/8000
> 
> 
> (and, is 98 even the correct value here?)
> 
> 
> but freeswitc logs show this:
> ============================
> ...
> 2010-11-23 15:54:19.947415 [DEBUG] sofia_glue.c:2741 Set Codec sofia/internal/1000 at xx.xx.xx.xx PCMU/8000 20 ms 160 samples 64000 bits
> .....
> 
> 2010-11-23 15:54:19.993146 [DEBUG] mod_sofia.c:683 Local SDP sofia/internal/1000 at xx.xx.xx.xx:
> v=0
> o=FreeSWITCH 1290496453 1290496454 IN IP4 xx.xx.xx.xx
> s=FreeSWITCH
> c=IN IP4 xx.xx.xx.xx
> t=0 0
> m=audio 31206 RTP/AVP 0 101
> a=rtpmap:0 PCMU/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-16
> a=silenceSupp:off - - - -
> a=ptime:20
> a=sendrecv
> .....
> 
> Why is it sticking to PCMU/8000?
> 
> and though RTP flows, audio not working.
> in vars.xml, i have:
> 
> ...
>  <X-PRE-PROCESS cmd="set" data="global_codec_prefs=speex at 8000h@20i,G7221 at 32000h,G7221 at 16000h,G722,PCMU,PCMA,GSM"/>
>   <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=speex at 8000h@20i,PCMU,PCMA,GSM"/>
> .....
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101123/819eb6fd/attachment.html 


More information about the FreeSWITCH-users mailing list