<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I have installed freeSwitch 1.1beta from the git repository (FreeSWITCH-mod_sofia/1.1.beta1-git-d2edcad 2012-03-31 23-42-27 +0000). I have enabled iLBC@30i codec by setting global vars:</div><div><br></div><div><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space:pre">        </span><X-PRE-PROCESS cmd="set" data="global_codec_prefs=G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM,iLBC@30i,SILK,G729"/></font></div><div><div><font class="Apple-style-span" face="'Courier New'"><span class="Apple-tab-span" style="white-space:pre">        </span><X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM,iLBC@30i,SILK,G729"/></font></div></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I try to call from Bria for iPhone to x-Lite 4.1. Bria offers iLBC@30i:</div><div><br></div><div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [NOTICE] switch_channel.c:926 New Channel <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> [624007f0-d580-4500-834f-76c2ba578df0]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] switch_core_state_machine.c:362 (<a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a>) Running State Change CS_NEW</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] switch_core_state_machine.c:380 (<a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a>) State NEW</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia.c:5561 Channel <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> entering state [received][100]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia.c:5572 Remote SDP:</font></div><div><font class="Apple-style-span" face="'Courier New'">v=0</font></div><div><font class="Apple-style-span" face="'Courier New'">o=- 3543863125 3543863125 IN IP4 88.9.239.104</font></div><div><font class="Apple-style-span" face="'Courier New'">s=cpc_med</font></div><div><font class="Apple-style-span" face="'Courier New'">c=IN IP4 88.9.239.104</font></div><div><font class="Apple-style-span" face="'Courier New'">t=0 0</font></div><div><font class="Apple-style-span" face="'Courier New'">m=audio 17002 RTP/AVP 112 18 105 101</font></div><div><font class="Apple-style-span" face="'Courier New'">c=IN IP4 88.9.239.104</font></div><div><font class="Apple-style-span" face="'Courier New'">a=rtpmap:112 SILK/8000</font></div><div><font class="Apple-style-span" face="'Courier New'">a=rtpmap:18 G729/8000</font></div><div><font class="Apple-style-span" face="'Courier New'">a=fmtp:18 annexb=no</font></div><div><b><font class="Apple-style-span" face="'Courier New'">a=rtpmap:105 iLBC/8000</font></b></div><div><b><font class="Apple-style-span" face="'Courier New'">a=fmtp:105 mode=30</font></b></div><div><font class="Apple-style-span" face="'Courier New'">a=rtpmap:101 telephone-event/8000</font></div><div><font class="Apple-style-span" face="'Courier New'">a=fmtp:101 0-15</font></div></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>But FS set the codec to iLBC 98 (according to vars.xml, it corresponds to iLBC@20i):</div><div><br></div><div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [SILK:112:8000:20:0]/[G7221:115:32000:20:48000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [G729:18:8000:20:8000]/[G7221:115:32000:20:48000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [iLBC:105:8000:30:0]/[G7221:115:32000:20:48000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [telephone-event:101:8000:20:0]/[G7221:115:32000:20:48000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:5016 Set 2833 dtmf send/recv payload to 101</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [SILK:112:8000:20:0]/[G7221:107:16000:20:32000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [G729:18:8000:20:8000]/[G7221:107:16000:20:32000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [iLBC:105:8000:30:0]/[G7221:107:16000:20:32000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [telephone-event:101:8000:20:0]/[G7221:107:16000:20:32000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:5016 Set 2833 dtmf send/recv payload to 101</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [SILK:112:8000:20:0]/[G722:9:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [G729:18:8000:20:8000]/[G722:9:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [iLBC:105:8000:30:0]/[G722:9:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [telephone-event:101:8000:20:0]/[G722:9:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:5016 Set 2833 dtmf send/recv payload to 101</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [SILK:112:8000:20:0]/[PCMU:0:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [G729:18:8000:20:8000]/[PCMU:0:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [iLBC:105:8000:30:0]/[PCMU:0:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [telephone-event:101:8000:20:0]/[PCMU:0:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:5016 Set 2833 dtmf send/recv payload to 101</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [SILK:112:8000:20:0]/[PCMA:8:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [G729:18:8000:20:8000]/[PCMA:8:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [iLBC:105:8000:30:0]/[PCMA:8:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [telephone-event:101:8000:20:0]/[PCMA:8:8000:20:64000]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:5016 Set 2833 dtmf send/recv payload to 101</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [SILK:112:8000:20:0]/[GSM:3:8000:20:13200]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [G729:18:8000:20:8000]/[GSM:3:8000:20:13200]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [iLBC:105:8000:30:0]/[GSM:3:8000:20:13200]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [telephone-event:101:8000:20:0]/[GSM:3:8000:20:13200]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:5016 Set 2833 dtmf send/recv payload to 101</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [SILK:112:8000:20:0]/[iLBC:98:8000:20:15200]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [G729:18:8000:20:8000]/[iLBC:98:8000:20:15200]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:4895 Audio Codec Compare [iLBC:105:8000:30:0]/[iLBC:98:8000:20:15200]</font></div><div><b><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] sofia_glue.c:3006 Set Codec <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> iLBC/8000 20 ms 160 samples 15200 bits</font></b></div><div><b><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:03.740477 [DEBUG] switch_core_codec.c:111 <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> Original read codec set to iLBC:98</font></b></div></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I'm trying to fix the codec in the dialplan by setting absolute_codec_string channel variable:</div><div><br></div><div><div><font class="Apple-style-span" face="'Courier New'">Dialplan: <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> Action hash(insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}) </font></div><div><font class="Apple-style-span" face="'Courier New'">Dialplan: <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> Action hash(insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}) </font></div><div><font class="Apple-style-span" face="'Courier New'">Dialplan: <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> Action set(called_party_callgroup=${user_data(${dialed_extension}@${domain_name} var callgroup)}) </font></div><div><font class="Apple-style-span" face="'Courier New'">Dialplan: <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> Action hash(insert/${domain_name}-last_dial_ext/${called_party_callgroup}/${uuid}) </font></div><div><font class="Apple-style-span" face="'Courier New'">Dialplan: <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> Action hash(insert/${domain_name}-last_dial_ext/global/${uuid}) </font></div><div><font class="Apple-style-span" face="'Courier New'">Dialplan: <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> Action hash(insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}) </font></div><div><b><font class="Apple-style-span" face="'Courier New'">Dialplan: <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> Action bridge({absolute_codec_string='iLBC@30i,G729'}user/${dialed_extension}@${domain_name}) </font></b></div><div><font class="Apple-style-span" face="'Courier New'">Dialplan: <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> Action answer() </font></div></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>When FS rings in the B-leg, I think it sends an incorrect codec (mode=20)</div><div><br></div><div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:04.170478 [DEBUG] mod_sofia.c:2582 Ring SDP:</font></div><div><font class="Apple-style-span" face="'Courier New'">v=0</font></div><div><font class="Apple-style-span" face="'Courier New'">o=FreeSWITCH 1334863010 1334863011 IN IP4 88.9.239.104</font></div><div><font class="Apple-style-span" face="'Courier New'">s=FreeSWITCH</font></div><div><font class="Apple-style-span" face="'Courier New'">c=IN IP4 88.9.239.104</font></div><div><font class="Apple-style-span" face="'Courier New'">t=0 0</font></div><div><font class="Apple-style-span" face="'Courier New'">m=audio 11234 RTP/AVP 105 101</font></div><div><font class="Apple-style-span" face="'Courier New'">a=rtpmap:105 iLBC/8000</font></div><div><font class="Apple-style-span" face="'Courier New'">a=fmtp:105 mode=20</font></div><div><font class="Apple-style-span" face="'Courier New'">a=rtpmap:101 telephone-event/8000</font></div><div><font class="Apple-style-span" face="'Courier New'">a=fmtp:101 0-16</font></div><div><font class="Apple-style-span" face="'Courier New'">a=silenceSupp:off - - - -</font></div><div><font class="Apple-style-span" face="'Courier New'">a=ptime:20</font></div><div><font class="Apple-style-span" face="'Courier New'">a=sendrecv</font></div></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>When I try to answer in B-leg (x-Lite softphone) it offers iLBC 98 (30 ms):</div><div><br></div><div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:13.750480 [DEBUG] switch_core_session.c:877 Send signal sofia/internal/sip:1002@192.168.0.2:3348 [BREAK]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:13.750480 [DEBUG] switch_core_session.c:877 Send signal sofia/internal/sip:1002@192.168.0.2:3348 [BREAK]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:13.750480 [DEBUG] sofia.c:5561 Channel sofia/internal/sip:1002@192.168.0.2:3348 entering state [completing][200]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:13.750480 [DEBUG] sofia.c:5572 Remote SDP:</font></div><div><font class="Apple-style-span" face="'Courier New'">v=0</font></div><div><font class="Apple-style-span" face="'Courier New'">o=- 1334874336856091 1 IN IP4 192.168.1.2</font></div><div><font class="Apple-style-span" face="'Courier New'">s=CounterPath X-Lite 4.1</font></div><div><font class="Apple-style-span" face="'Courier New'">c=IN IP4 192.168.1.2</font></div><div><font class="Apple-style-span" face="'Courier New'">t=0 0</font></div><div><b><font class="Apple-style-span" face="'Courier New'">m=audio 54624 RTP/AVP 98 101</font></b></div><div><b><font class="Apple-style-span" face="'Courier New'">a=rtpmap:98 iLBC/8000</font></b></div><div><font class="Apple-style-span" face="'Courier New'">a=rtpmap:101 telephone-event/8000</font></div><div><font class="Apple-style-span" face="'Courier New'">a=fmtp:101 0-15</font></div></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>and the call ends with the following error:</div><div><br></div><div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:13.800478 [DEBUG] switch_core_session.c:793 Send signal <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> [BREAK]</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:13.810479 [DEBUG] switch_core_io.c:1095 Engaging Write Buffer at 320 bytes to accommodate 480->320</font></div><div><b><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:13.980477 [WARNING] mod_sofia.c:1158 Asynchronous PTIME not supported, changing our end from 20 to 30</font></b></div><div><b><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:13.980477 [DEBUG] sofia_glue.c:2924 Changing Codec from iLBC@20ms@8000hz to iLBC@30ms@8000hz</font></b></div><div><b><font class="Apple-style-span" color="#df347c" face="'Courier New'">2012-04-20 00:24:14.020479 [WARNING] switch_core_codec.c:691 Codec iLBC Exists but not at the desired implementation. 8000hz 30ms</font></b></div><div><b><font class="Apple-style-span" color="#df347c" face="'Courier New'">2012-04-20 00:24:14.020479 [ERR] sofia_glue.c:2954 Can't load codec?</font></b></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:14.020479 [DEBUG] switch_channel.c:2848 (<a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a>) Callstate Change ACTIVE -> HANGUP</font></div><div><font class="Apple-style-span" face="'Courier New'">2012-04-20 00:24:14.020479 [NOTICE] sofia_glue.c:2955 Hangup <a href="mailto:sofia/internal/1001@sukmad.dyndns-home.com">sofia/internal/1001@sukmad.dyndns-home.com</a> [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]</font></div></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Is it possible to re-packetize iLBC streams from iLBC@20i to iLBC@30i?. Why FS choose an incorrect packet time?. </div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I have read about this problem in Internet and I try to uncomment the following line:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        <font class="Apple-style-span" face="'Courier New'"><param name="rtp-autofix-timing" value="false"/></font></span></div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>But when I try to make the call I don't hear nothing (except a big noise)... There are any solution?. I attach all the dump from fs_cli.</div><div><br></div><div><br></div><div>Thanks in advance.</div><div><br></div><div><br></div><div>Regards.</div><div><br></div><div><br></div><div></div></body></html>