codec configuration ignored by freeswitch
Hello, I have tried to configure a limited set of two codecs for outbound calls. I first tried with the parameters described in the documentation in a sip_profile and then in a dialplan and then in vars.xml. However, each time the set of codecs seems to be overwritten and the original list offered by the calling UA is applied. I am new to FS and suspect I am missing something quite simple, can anyone lend a hand in suggesting what would cause the described behaviour ? Here is the essential part of the log showing the absolute_codec_string first applied: EXECUTE sofia/internal/390742850020@217.72.102.128:5070 set(absolute_codec_string=PCMA,G729) 2014-01-29 17:17:40.290655 [DEBUG] mod_dptools.c:1402 sofia/internal/390742850020@217.72.102.128:5070 SET [absolute_codec_string]=[PCMA,G729] EXECUTE sofia/internal/390742850020@217.72.102.128:5070 bridge(sofia/gateway/unidata_dev/+390144750000) 2014-01-29 17:17:40.290655 [DEBUG] switch_channel.c:1198 sofia/internal/390742850020@217.72.102.128:5070 EXPORTING[export_vars] [RFC2822_DATE]=[Wed, 29 Jan 2014 17:17:40 +0100] to event 2014-01-29 17:17:40.290655 [DEBUG] switch_ivr_originate.c:2060 Parsing global variables 2014-01-29 17:17:40.290655 [NOTICE] switch_channel.c:1052 New Channel sofia/external/+390144750000 [e00a6dde-8900-11e3-8b08-0b2b96c9cf60] 2014-01-29 17:17:40.290655 [DEBUG] mod_sofia.c:5231 (sofia/external/+390144750000) State Change CS_NEW -> CS_INIT 2014-01-29 17:17:40.290655 [DEBUG] switch_core_session.c:1341 Send signal sofia/external/+390144750000 [BREAK] and then overwritten: 2014-01-29 17:17:40.290655 [DEBUG] mod_sofia.c:5301 [zrtp_passthru] Setting a-leg inherit_codec=true 2014-01-29 17:17:40.290655 [DEBUG] mod_sofia.c:5304 [zrtp_passthru] Setting b-leg absolute_codec_string='G722@8000h@20i@64000b,PCMU@8000h@20i@64000b,PCMA@8000h@20i@64000b,GSM@8000h@20i@13200b' 2014-01-29 17:17:40.290655 [DEBUG] switch_core_state_machine.c:415 (sofia/external/+390144750000) Running State Change CS_INIT 2014-01-29 17:17:40.290655 [DEBUG] switch_core_state_machine.c:454 (sofia/external/+390144750000) State INIT 2014-01-29 17:17:40.290655 [DEBUG] mod_sofia.c:87 sofia/external/+390144750000 SOFIA INIT 2014-01-29 17:17:40.290655 [DEBUG] sofia_glue.c:2739 Local SDP: Thanks in advance for your help. Regards, Giuseppe
Anyone have any suggestions on this ? Many thanks, Giuseppe ----- Messaggio originale -----
Da: "Giuseppe Cardone" <g.cardone@unidata.it> A: freeswitch-users@lists.freeswitch.org Inviato: Mercoledì, 29 gennaio 2014 18:47:41 Oggetto: codec configuration ignored by freeswitch
Hello,
I have tried to configure a limited set of two codecs for outbound calls. I first tried with the parameters described in the documentation in a sip_profile and then in a dialplan and then in vars.xml.
However, each time the set of codecs seems to be overwritten and the original list offered by the calling UA is applied.
I am new to FS and suspect I am missing something quite simple, can anyone lend a hand in suggesting what would cause the described behaviour ?
Here is the essential part of the log showing the absolute_codec_string first applied:
EXECUTE sofia/internal/390742850020@217.72.102.128:5070 set(absolute_codec_string=PCMA,G729) 2014-01-29 17:17:40.290655 [DEBUG] mod_dptools.c:1402 sofia/internal/390742850020@217.72.102.128:5070 SET [absolute_codec_string]=[PCMA,G729] EXECUTE sofia/internal/390742850020@217.72.102.128:5070 bridge(sofia/gateway/unidata_dev/+390144750000) 2014-01-29 17:17:40.290655 [DEBUG] switch_channel.c:1198 sofia/internal/390742850020@217.72.102.128:5070 EXPORTING[export_vars] [RFC2822_DATE]=[Wed, 29 Jan 2014 17:17:40 +0100] to event 2014-01-29 17:17:40.290655 [DEBUG] switch_ivr_originate.c:2060 Parsing global variables 2014-01-29 17:17:40.290655 [NOTICE] switch_channel.c:1052 New Channel sofia/external/+390144750000 [e00a6dde-8900-11e3-8b08-0b2b96c9cf60] 2014-01-29 17:17:40.290655 [DEBUG] mod_sofia.c:5231 (sofia/external/+390144750000) State Change CS_NEW -> CS_INIT 2014-01-29 17:17:40.290655 [DEBUG] switch_core_session.c:1341 Send signal sofia/external/+390144750000 [BREAK]
and then overwritten:
2014-01-29 17:17:40.290655 [DEBUG] mod_sofia.c:5301 [zrtp_passthru] Setting a-leg inherit_codec=true 2014-01-29 17:17:40.290655 [DEBUG] mod_sofia.c:5304 [zrtp_passthru] Setting b-leg absolute_codec_string='G722@8000h@20i@64000b,PCMU@8000h@20i@64000b,PCMA@8000h@20i@64000b,GSM@8000h@20i@13200b' 2014-01-29 17:17:40.290655 [DEBUG] switch_core_state_machine.c:415 (sofia/external/+390144750000) Running State Change CS_INIT 2014-01-29 17:17:40.290655 [DEBUG] switch_core_state_machine.c:454 (sofia/external/+390144750000) State INIT 2014-01-29 17:17:40.290655 [DEBUG] mod_sofia.c:87 sofia/external/+390144750000 SOFIA INIT 2014-01-29 17:17:40.290655 [DEBUG] sofia_glue.c:2739 Local SDP:
Thanks in advance for your help.
Regards, Giuseppe
When it appears as if the codec is ignored, chances are you don’t have said codec loaded. -- Brian West brian@freeswitch.org FreeSWITCH Solutions, LLC PO BOX 2531 Brookfield, WI 53008-2531 Twitter: @FreeSWITCH , @briankwest http://www.freeswitchbook.com http://www.freeswitchcookbook.com T: +1.918.420.9001 | F: +1.918.420.9002 | M: +1.918.424.WEST iNUM: +883 5100 1420 9001 ISN: 410*543 Skype:briankwest PGP Key: http://www.bkw.org/key.txt (AB93356707C76CED) On Jan 30, 2014, at 9:22 AM, Giuseppe Cardone <g.cardone@unidata.it> wrote:
Anyone have any suggestions on this ?
Many thanks, Giuseppe
Thanks Brian, in actual fact the codecs are loaded but the absolute_codec_string I set gets overruled at some stage of call processing (somewhere around the point where logs show zrtp-passthru). I'll have to investigate further ... Rgds, Giuseppe
participants (2)
-
Brian West
-
Giuseppe Cardone