Lets forget for a minute about <span style>vars.xml</span> and what is there (when you use 
absolute_codec_string=GSM, it overrides any settings from vars.xml), and concentrate at the OUTGOING call from FreeSWITCH to your sip provider first.<div><br></div><div>Try to change your bridge to the following string:</div>
<div>&lt;action application=&quot;bridge&quot;&gt; data=&quot;{absolute_codec_string=GSM}sofia/gateway/your_provider/12345678901_example&quot;/&gt;</div><div><br></div><div>(obviously use your sip provider and phone number :) </div>
<div><br></div><div>And do one outgoing call to this sip provider.</div><div><br></div><div>Then, reply back whether the call was successful or not (did you hear the voice and whether the other party did hear you). And paste the log to the pastebin (<a href="http://pastebin.freeswitch.org/">http://pastebin.freeswitch.org/</a>) and reply back with the link.</div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote">2012/4/11 Malay Thakershi <span dir="ltr">&lt;<a href="mailto:mthakershi@gmail.com">mthakershi@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">&gt; 1.You need OUTGOING leg to use GSM codec, right? (You wont be able to use<br>
&gt; G729 right now as it needs the license). By OUTGOING I mean call from<br>
&gt; FreeSWITCH to your provider, and not back.<br>
</div>Yes. I want to try some codec that will use less bandwidth and see how<br>
much audio quality is compromised. So I chose GSM because G729 has<br>
license requirements.<br>
<br>
I want this to work when someone calls my DID or my FS program calls<br>
someone via DID. So both for incoming calls as well as outgoing calls.<br>
<div class="im"><br>
&gt; 2. If #1 is true, then inbound-codec-negotiation is not much useful at<br>
&gt; this point. Because this setting is for INCOMING leg, and not for<br>
&gt; OUTGOING. And even if it _might_ be using GSM for INCOMING leg, but still<br>
&gt; transcode to the OUTGOING PCMA/PCMU by some reason (this is what we need to<br>
&gt; find out - why).<br>
</div>I am not very familiar with internals of FS so having lot of trouble<br>
figuring this out.<br>
<br>
Weird thing is, even if I do not have any mention of G729, it is being<br>
negotiated and used. Here are my configuration lines:<br>
vars.xml<br>
  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;global_codec_prefs=GSM,PCMU,PCMA&quot;/&gt;<br>
  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;outbound_codec_prefs=GSM,PCMU,PCMA&quot;/&gt;<br>
<br>
sip profile has:<br>
<div class="im">&lt;param name=&quot;inbound-codec-negotiation&quot; value=&quot;greedy&quot;/&gt;<br>
<br>
</div>dial plan<br>
        &lt;extension name=&quot;CH&quot;&gt;<br>
      &lt;condition field=&quot;destination_number&quot; expression=&quot;^105\d$&quot;&gt;<br>
<div class="im">                &lt;action application=&quot;set&quot; data=&quot;absolute_codec_string=GSM&quot;/&gt;<br>
</div>                &lt;action application=&quot;sleep&quot; data=&quot;1000&quot;/&gt;<br>
                &lt;action application=&quot;managed&quot; data=&quot;clsAsmtApp&quot;/&gt;<br>
      &lt;/condition&gt;<br>
          &lt;/extension&gt;<br>
<br>
<br>
  &lt;extension name=&quot;vitel-outbound&quot;&gt;<br>
   &lt;condition field=&quot;destination_number&quot; expression=&quot;^(1{0,1}\d{10})$&quot;&gt;<br>
<div class="im">         &lt;action application=&quot;set&quot; data=&quot;absolute_codec_string=GSM&quot;/&gt;<br>
</div>     &lt;action application=&quot;set&quot; data=&quot;effective_caller_id_number=18770001111&quot;/&gt;<br>
     &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/vitelity-outbound/$1&quot;/&gt;<br>
    &lt;/condition&gt;<br>
  &lt;/extension&gt;<br>
<div class="im"><br>
&gt; 3. Try using absolute_codec_string before bridging your call to your SIP<br>
&gt; provider:<br>
&gt;<br>
&gt; &lt;action application=&quot;set&quot; data=&quot;absolute_codec_string=GSM&quot;/&gt;<br>
&gt; &lt;action application=&quot;bridge&quot;<br>
&gt; data=&quot;sofia/gateway/your_provider/12345678901_example&quot;/&gt;<br>
&gt;<br>
</div>I did as you said. But found what I described above. If I remove<br>
&quot;greedy&quot; setting, system simply uses PCMU codec like before.<br>
<br>
This thing is so confusing. Even my SIP provider is saying they can&#39;t<br>
help out with FS because some guy quit who knew the configurations.<br>
<br>
Thanks for help.<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Apr 11, 2012 at 4:12 PM, Vitalie Colosov &lt;<a href="mailto:vetali100@gmail.com">vetali100@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Lets confirm the following statements now:<br>
&gt;<br>
&gt; 1.You need OUTGOING leg to use GSM codec, right? (You wont be able to use<br>
&gt; G729 right now as it needs the license). By OUTGOING I mean call from<br>
&gt; FreeSWITCH to your provider, and not back.<br>
&gt;<br>
&gt; 2. If #1 is true, then inbound-codec-negotiation is not much useful at<br>
&gt; this point. Because this setting is for INCOMING leg, and not for<br>
&gt; OUTGOING. And even if it _might_ be using GSM for INCOMING leg, but still<br>
&gt; transcode to the OUTGOING PCMA/PCMU by some reason (this is what we need to<br>
&gt; find out - why).<br>
&gt;<br>
&gt; 3. Try using absolute_codec_string before bridging your call to your SIP<br>
&gt; provider:<br>
&gt;<br>
&gt; &lt;action application=&quot;set&quot; data=&quot;absolute_codec_string=GSM&quot;/&gt;<br>
&gt; &lt;action application=&quot;bridge&quot;<br>
&gt; data=&quot;sofia/gateway/your_provider/12345678901_example&quot;/&gt;<br>
&gt;<br>
&gt;<br>
&gt; And reply back if this changes anything...<br>
&gt;<br>
&gt; Vitalie<br>
&gt;<br>
&gt; 2012/4/11 Malay Thakershi &lt;<a href="mailto:mthakershi@gmail.com">mthakershi@gmail.com</a>&gt;<br>
&gt;&gt;<br>
&gt;&gt; Under my sipinterface_1 profile that I use for these calls, I have:<br>
&gt;&gt;<br>
&gt;&gt; &lt;param name=&quot;inbound-codec-negotiation&quot; value=&quot;greedy&quot;/&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Wed, Apr 11, 2012 at 1:43 PM, Bzzz &lt;<a href="mailto:lazyvirus@gmx.com">lazyvirus@gmx.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Wed, 11 Apr 2012 13:31:45 -0500<br>
&gt;&gt;&gt; Malay Thakershi &lt;<a href="mailto:mthakershi@gmail.com">mthakershi@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &gt; Understood your point about G722. But if my list has GSM at higher<br>
&gt;&gt;&gt; &gt; priority<br>
&gt;&gt;&gt; &gt; over PCMU/PCMA and far-end SDP supports GSM then why isn&#39;t the call<br>
&gt;&gt;&gt; &gt; using<br>
&gt;&gt;&gt; &gt; GSM?<br>
&gt;&gt;&gt; &gt;<br>
&gt;&gt;&gt; &gt; I don&#39;t know where G726 comparisons are coming from. If I haven&#39;t<br>
&gt;&gt;&gt; &gt; mentioned<br>
&gt;&gt;&gt; &gt; it in vars.xml and far-end SDP doesn&#39;t support it then why would it<br>
&gt;&gt;&gt; &gt; even<br>
&gt;&gt;&gt; &gt; consider that codec?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; From: <a href="http://wiki.freeswitch.org/wiki/Sofia_Configuration_Files" target="_blank">wiki.freeswitch.org/wiki/Sofia_Configuration_Files</a><br>
&gt;&gt;&gt; (inbound-codec-negotiation):<br>
&gt;&gt;&gt; &#39;generous&#39; permits the remote codec list have precedence and &#39;win&#39;<br>
&gt;&gt;&gt;   the codec negotiation and selection process<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; JY<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Don&#39;t drop acid -- take it pass/fail.<br>
&gt;&gt;&gt;                -- Seen in a Ladies&#39; Room at Harvard<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _________________________________________________________________________<br>
&gt;&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>