Hey, I tried to establish audio call between two clients having different codec supports . I expected that transcoding would take place. But I am getting a codec negotiation error . Here is the information about client I am using leg A : suppoerted codec : speex leg B: supported codec : G722,PCMU,PCMA,GSM,OPUS Here is some lines from my freeswitch logs 2013-10-22 10:31:12.795786 [INFO] switch_ivr_originate.c:1190 Sending early media 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[G722:9:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[PCMU:0:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[PCMA:8:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[GSM:3:8000:20:13200] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:3064 No 2833 in SDP. Disable 2833 dtmf and switch to INFO 2013-10-22 10:31:12.795786 [ERR] mod_sofia.c:2122 CODEC NEGOTIATION ERROR. SDP: v=0 o=Zoiper 0 0 IN IP4 120.63.38.94 s=Zoiper c=IN IP4 120.63.38.94 t=0 0 m=audio 11525 RTP/AVP 110 a=rtpmap:110 speex/8000 Here is some info about my freeswitch version - 1.4 beta codecs supported - codec,ADPCM (IMA),mod_spandsp codec,AMR,mod_amr codec,B64 (STANDARD),mod_b64 codec,G.711 alaw,CORE_PCM_MODULE codec,G.711 ulaw,CORE_PCM_MODULE codec,G.722,mod_spandsp codec,G.723.1 6.3k,mod_g723_1 codec,G.726 16k,mod_spandsp codec,G.726 16k (AAL2),mod_spandsp codec,G.726 24k,mod_spandsp codec,G.726 24k (AAL2),mod_spandsp codec,G.726 32k,mod_spandsp codec,G.726 32k (AAL2),mod_spandsp codec,G.726 40k,mod_spandsp codec,G.726 40k (AAL2),mod_spandsp codec,G.729,mod_g729 codec,GSM,mod_spandsp codec,H.261 Video (passthru),mod_h26x codec,H.263 Video (passthru),mod_h26x codec,H.263+ Video (passthru),mod_h26x codec,H.263++ Video (passthru),mod_h26x codec,H.264 Video (passthru),mod_h26x codec,LPC-10,mod_spandsp codec,PROXY PASS-THROUGH,CORE_PCM_MODULE codec,PROXY VIDEO PASS-THROUGH,CORE_PCM_MODULE codec,RAW Signed Linear (16 bit),CORE_PCM_MODULE codec,Speex,mod_speex codec,VP8 Video (passthru),mod_vp8 My sip_profile configurations <param name="disable-transcoding" value="false"/> <param name="inbound-late-negotiation" value="true"/> I also tried with inbound-late-negotiaion=false . But still getting codec negotiation error. Please help . Regards, Neeraj
can you post a pastebin link to a full log of this call? On Oct 22, 2013, at 3:31 AM, "neeraj.p" <neeraj.p@directi.com> wrote:
Hey,
I tried to establish audio call between two clients having different codec supports . I expected that transcoding would take place. But I am getting a codec negotiation error .
Here is the information about client I am using
leg A : suppoerted codec : speex
leg B: supported codec : G722,PCMU,PCMA,GSM,OPUS
Here is some lines from my freeswitch logs
2013-10-22 10:31:12.795786 [INFO] switch_ivr_originate.c:1190 Sending early media 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[G722:9:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[PCMU:0:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[PCMA:8:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[GSM:3:8000:20:13200] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:3064 No 2833 in SDP. Disable 2833 dtmf and switch to INFO 2013-10-22 10:31:12.795786 [ERR] mod_sofia.c:2122 CODEC NEGOTIATION ERROR. SDP: v=0 o=Zoiper 0 0 IN IP4 120.63.38.94 s=Zoiper c=IN IP4 120.63.38.94 t=0 0 m=audio 11525 RTP/AVP 110 a=rtpmap:110 speex/8000
Here is some info about my freeswitch
version - 1.4 beta
codecs supported - codec,ADPCM (IMA),mod_spandsp codec,AMR,mod_amr codec,B64 (STANDARD),mod_b64 codec,G.711 alaw,CORE_PCM_MODULE codec,G.711 ulaw,CORE_PCM_MODULE codec,G.722,mod_spandsp codec,G.723.1 6.3k,mod_g723_1 codec,G.726 16k,mod_spandsp codec,G.726 16k (AAL2),mod_spandsp codec,G.726 24k,mod_spandsp codec,G.726 24k (AAL2),mod_spandsp codec,G.726 32k,mod_spandsp codec,G.726 32k (AAL2),mod_spandsp codec,G.726 40k,mod_spandsp codec,G.726 40k (AAL2),mod_spandsp codec,G.729,mod_g729 codec,GSM,mod_spandsp codec,H.261 Video (passthru),mod_h26x codec,H.263 Video (passthru),mod_h26x codec,H.263+ Video (passthru),mod_h26x codec,H.263++ Video (passthru),mod_h26x codec,H.264 Video (passthru),mod_h26x codec,LPC-10,mod_spandsp codec,PROXY PASS-THROUGH,CORE_PCM_MODULE codec,PROXY VIDEO PASS-THROUGH,CORE_PCM_MODULE codec,RAW Signed Linear (16 bit),CORE_PCM_MODULE codec,Speex,mod_speex codec,VP8 Video (passthru),mod_vp8
My sip_profile configurations <param name="disable-transcoding" value="false"/> <param name="inbound-late-negotiation" value="true"/>
I also tried with inbound-late-negotiaion=false . But still getting codec negotiation error.
Please help .
Regards, Neeraj
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Did your try forcing a codec(s) by setting the absolute_codec_string var ? try something like this <action application="export" data="absolute_codec_string=G722"/> and disable late negotiation. On Tue, Oct 22, 2013 at 6:54 PM, Michael Jerris <mike@jerris.com> wrote:
can you post a pastebin link to a full log of this call?
On Oct 22, 2013, at 3:31 AM, "neeraj.p" <neeraj.p@directi.com> wrote:
Hey,
I tried to establish audio call between two clients having different codec supports . I expected that transcoding would take place. But I am getting a codec negotiation error .
Here is the information about client I am using
leg A : suppoerted codec : speex
leg B: supported codec : G722,PCMU,PCMA,GSM,OPUS
Here is some lines from my freeswitch logs
2013-10-22 10:31:12.795786 [INFO] switch_ivr_originate.c:1190 Sending early media 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[G722:9:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[PCMU:0:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[PCMA:8:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[GSM:3:8000:20:13200] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:3064 No 2833 in SDP. Disable 2833 dtmf and switch to INFO 2013-10-22 10:31:12.795786 [ERR] mod_sofia.c:2122 CODEC NEGOTIATION ERROR. SDP: v=0 o=Zoiper 0 0 IN IP4 120.63.38.94 s=Zoiper c=IN IP4 120.63.38.94 t=0 0 m=audio 11525 RTP/AVP 110 a=rtpmap:110 speex/8000
Here is some info about my freeswitch
version - 1.4 beta
codecs supported - codec,ADPCM (IMA),mod_spandsp codec,AMR,mod_amr codec,B64 (STANDARD),mod_b64 codec,G.711 alaw,CORE_PCM_MODULE codec,G.711 ulaw,CORE_PCM_MODULE codec,G.722,mod_spandsp codec,G.723.1 6.3k,mod_g723_1 codec,G.726 16k,mod_spandsp codec,G.726 16k (AAL2),mod_spandsp codec,G.726 24k,mod_spandsp codec,G.726 24k (AAL2),mod_spandsp codec,G.726 32k,mod_spandsp codec,G.726 32k (AAL2),mod_spandsp codec,G.726 40k,mod_spandsp codec,G.726 40k (AAL2),mod_spandsp codec,G.729,mod_g729 codec,GSM,mod_spandsp codec,H.261 Video (passthru),mod_h26x codec,H.263 Video (passthru),mod_h26x codec,H.263+ Video (passthru),mod_h26x codec,H.263++ Video (passthru),mod_h26x codec,H.264 Video (passthru),mod_h26x codec,LPC-10,mod_spandsp codec,PROXY PASS-THROUGH,CORE_PCM_MODULE codec,PROXY VIDEO PASS-THROUGH,CORE_PCM_MODULE codec,RAW Signed Linear (16 bit),CORE_PCM_MODULE codec,Speex,mod_speex codec,VP8 Video (passthru),mod_vp8
My sip_profile configurations
<param name="disable-transcoding" value="false"/>
<param name="inbound-late-negotiation" value="true"/>
I also tried with inbound-late-negotiaion=false . But still getting codec negotiation error.
Please help .
Regards, Neeraj
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ashwin Kumar Rath
As well as loading the modules you need to list the supported incoming and outgoing codecs on the sip profile. My guess is speex isn't in that list. "sofia status profile <name>" will show the settings in use On Tuesday, October 22, 2013, neeraj.p wrote:
Hey,
I tried to establish audio call between two clients having different codec supports . I expected that transcoding would take place. But I am getting a codec negotiation error .
Here is the information about client I am using
leg A : suppoerted codec : speex
leg B: supported codec : G722,PCMU,PCMA,GSM,OPUS
Here is some lines from my freeswitch logs
2013-10-22 10:31:12.795786 [INFO] switch_ivr_originate.c:1190 Sending early media 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[G722:9:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[PCMU:0:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[PCMA:8:8000:20:64000] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:2880 Audio Codec Compare [speex:110:8000:20:0]/[GSM:3:8000:20:13200] 2013-10-22 10:31:12.795786 [DEBUG] switch_core_media.c:3064 No 2833 in SDP. Disable 2833 dtmf and switch to INFO 2013-10-22 10:31:12.795786 [ERR] mod_sofia.c:2122 CODEC NEGOTIATION ERROR. SDP: v=0 o=Zoiper 0 0 IN IP4 120.63.38.94 s=Zoiper c=IN IP4 120.63.38.94 t=0 0 m=audio 11525 RTP/AVP 110 a=rtpmap:110 speex/8000
Here is some info about my freeswitch
version - 1.4 beta
codecs supported - codec,ADPCM (IMA),mod_spandsp codec,AMR,mod_amr codec,B64 (STANDARD),mod_b64 codec,G.711 alaw,CORE_PCM_MODULE codec,G.711 ulaw,CORE_PCM_MODULE codec,G.722,mod_spandsp codec,G.723.1 6.3k,mod_g723_1 codec,G.726 16k,mod_spandsp codec,G.726 16k (AAL2),mod_spandsp codec,G.726 24k,mod_spandsp codec,G.726 24k (AAL2),mod_spandsp codec,G.726 32k,mod_spandsp codec,G.726 32k (AAL2),mod_spandsp codec,G.726 40k,mod_spandsp codec,G.726 40k (AAL2),mod_spandsp codec,G.729,mod_g729 codec,GSM,mod_spandsp codec,H.261 Video (passthru),mod_h26x codec,H.263 Video (passthru),mod_h26x codec,H.263+ Video (passthru),mod_h26x codec,H.263++ Video (passthru),mod_h26x codec,H.264 Video (passthru),mod_h26x codec,LPC-10,mod_spandsp codec,PROXY PASS-THROUGH,CORE_PCM_MODULE codec,PROXY VIDEO PASS-THROUGH,CORE_PCM_MODULE codec,RAW Signed Linear (16 bit),CORE_PCM_MODULE codec,Speex,mod_speex codec,VP8 Video (passthru),mod_vp8
My sip_profile configurations
<param name="disable-transcoding" value="false"/>
<param name="inbound-late-negotiation" value="true"/>
I also tried with inbound-late-negotiaion=false . But still getting codec negotiation error.
Please help .
Regards, Neeraj
participants (4)
-
Ashwin Rath
-
Michael Jerris
-
neeraj.p
-
Steven Ayre