<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 08.00.0681.000">
<TITLE>Sofia late-negotiation on re-INVITE (codec-modification)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">I think I</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas"> might be</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas"> experiencing</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Consolas">a similar</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas"> problem here</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas">...</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">A friend of mine dialed into one of</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Consolas">my</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas"> conference rooms</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Consolas">with only the GSM codec enabled on his mobile SIP client (Linphone). </FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Consolas">Despite the fact that I offer</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas">ed</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas"> GSM as one of the codecs,</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Consolas">FS only appeared to offer G711u and</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Consolas">the call failed</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas">. When he set G711u as an option on his end,</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Consolas">he was able to connect.</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas"> </FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Consolas">Late negotiation is enabled.</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">Some relevant settings:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">i</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Consolas">nternal.xml:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> <param name="inbound-codec-prefs" value="$${global_codec_prefs}"/></FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> <param name="outbound-codec-prefs" value="$${global_codec_prefs}"/></FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> </FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Consolas"><param name="inbound-codec-negotiation" value="greedy"/></FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">vars.xml:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"><X-PRE-PROCESS cmd="set" data="inbound_codec_prefs=PCMU@20i,PCMU,PCMA,GSM,ILBC"/></FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"><X-PRE-PROCESS cmd="set" data="global_codec_prefs=PCMU@20i,PCMU,PCMA,GSM,ILBC"/></FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"><X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU@20i,PCMU,PCMA,GSM,ILBC"/></FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">SIP transaction info follows:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> ------------------------------------------------------------------------</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">recv 765 bytes from udp/[68.47.xx.xx]:5060 at 06:59:23.381436:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> ------------------------------------------------------------------------</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> INVITE sip:3030@myswitch.org:5080 SIP/2.0</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Via: SIP/2.0/UDP 10.0.1.15:5060;rport;branch=z9hG4bK1252688933</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> From: "resist0r" <sip:resist0r@68.47.xx.xx>;tag=539248952</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> To: <sip:3030@myswitch.org:5080></FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Call-ID: 1476867094</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> CSeq: 20 INVITE</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Contact: <sip:resist0r@68.47.xx.xx></FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Content-Type: application/sdp</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Max-Forwards: 70</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> User-Agent: Linphone/3.4.3 (eXosip2/3.1.0)</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Subject: Phone call</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Expires: 120</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Content-Length: 234</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> v=0</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> o=resist0r 1856 1856 IN IP4 68.47.xx.xx</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> s=Talk</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> c=IN IP4 68.47.xx.xx</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> t=0 0</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> m=audio 9003 RTP/AVP 0 0 3 101</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> a=rtpmap:0 GSM/22050</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> a=rtpmap:0 GSM/11025</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> a=rtpmap:3 GSM/8000</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> a=rtpmap:101 telephone-event/8000</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> a=fmtp:101 0-11</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> ------------------------------------------------------------------------</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">send 354 bytes to udp/[68.47.xx.xx]:5060 at 06:59:23.381660:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> ------------------------------------------------------------------------</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> SIP/2.0 100 Trying</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Via: SIP/2.0/UDP 10.0.1.15:5060;rport=5060;branch=z9hG4bK1252688933;received=68.47.xx.xx</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> From: "resist0r" <sip:resist0r@68.47.xx.xx>;tag=539248952</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> To: <sip:3030@myswitch.org:5080></FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Call-ID: 1476867094</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> CSeq: 20 INVITE</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-f2cf68b 2011-11-20 18-40-41 -0500</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> Content-Length: 0</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> ------------------------------------------------------------------------</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">2011-11-25 01:59:23.365421 [NOTICE] switch_channel.c:920 New Channel sofia/external/resist0r@68.47.xx.xx [b9d2afd7-e0ba-4168-acee-29ccd2dc4791]</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">2011-11-25 01:59:23.365421 [DEBUG] sofia.c:5356 Channel sofia/external/resist0r@68.47.xx.xx entering state [received][100]</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">2011-11-25 01:59:23.365421 [DEBUG] sofia.c:5367 Remote SDP:</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">v=0</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">o=resist0r 1856 1856 IN IP4 68.47.xx.xx</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">s=Talk</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">c=IN IP4 68.47.xx.xx</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">t=0 0</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">m=audio 9003 RTP/AVP 0 0 3 101</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">a=rtpmap:0 GSM/11025</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">a=rtpmap:3 GSM/8000</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">a=rtpmap:101 telephone-event/8000</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">a=fmtp:101 0-11</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"> </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">2011-11-25 01:59:23.365421 [DEBUG] sofia_glue.c:4755 Audio Codec Compare [GSM:0:11025:20:64000]/[PCMU:0:8000:20:64000]</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">2011-11-25 01:59:23.365421 [DEBUG] sofia_glue.c:4755 Audio Codec Compare [GSM:0:11025:20:64000]/[PCMU:0:8000:20:64000]</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">2011-11-25 01:59:23.365421 [DEBUG] sofia_glue.c:4755 Audio Codec Compare [GSM:0:11025:20:64000]/[PCMA:8:8000:20:64000]</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">2011-11-25 01:59:23.365421 [DEBUG] sofia_glue.c:4755 Audio Codec Compare [GSM:0:11025:20:64000]/[GSM:3:8000:20:13200]</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">2011-11-25 01:59:23.365421 [DEBUG] sofia_glue.c:4755 Audio Codec Compare [GSM:0:11025:20:64000]/[iLBC:97:8000:30:13330]</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">2011-11-25 01:59:23.365421 [DEBUG] sofia_glue.c:4755 Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000]</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">2011-11-25 01:59:23.365421 [DEBUG] sofia_glue.c:2869 Set Codec sofia/external/resist0r@68.47.xx.xx PCMU/8000 20 ms 160 samples 64000 bits</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"></FONT></SPAN><SPAN LANG="en-us"> </SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">Phil Quesinberry</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">Q Systems Engineering, Inc.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">Electronic Controls and Embedded Systems Development</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas">(410) 969-8002</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Consolas"><A HREF="http://www.qsystemsengineering.com">http://www.qsystemsengineering.com</A></FONT></SPAN></P>
</BODY>
</HTML>