You may want to read up on codec negotiation:<br><a href="http://wiki.freeswitch.org/wiki/Codec_negotiation">http://wiki.freeswitch.org/wiki/Codec_negotiation</a><br><br>There are different ways to handle codecs depending on your needs. I&#39;d read that page first and then try out some of the suggestions. If you&#39;re still having trouble then I&#39;d recommend getting SIP traces of the traffic and putting them on <a href="http://pastebin.freeswitch.org">pastebin.freeswitch.org</a>. The gang here is pretty good at looking over logs and helping with diagnosing problems. :)<br>
<br>-MC<br><br><div class="gmail_quote">On Tue, Mar 6, 2012 at 2:30 PM, Anto <span dir="ltr">&lt;<a href="mailto:potxoka@gmail.com">potxoka@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
I am following the steps in this direction<br>
&quot;<a href="http://wiki.freeswitch.org/wiki/SBC_Setup" target="_blank">http://wiki.freeswitch.org/wiki/SBC_Setup</a>&quot; and<br>
&quot;<a href="http://wiki.freeswitch.org/wiki/Provider_Configuration:_Broadvoice" target="_blank">http://wiki.freeswitch.org/wiki/Provider_Configuration:_Broadvoice</a>&quot;,<br>
I reread the whole entire wiki (or so I lack), but do not quite<br>
assimilate or finding the right formula to operate the bridge :-S.<br>
<br>
I captured traffic with ngrep, I enabled sip-trace, console logconsole<br>
8, etc., but unless the transcoding error (only two of the hundreds of<br>
combinations of settings that I have), I have not seen anything<br>
&quot;weird&quot; :-S<br>
<br>
I have 3 suppliers, each with this codec:<br>
<br>
1)           2)              3)<br>
G729        G729        G729<br>
G711u      G711A      G711A<br>
G711A     G711u       G711u<br>
                G723         G723<br>
                                  G722<br>
                                  GSM<br>
<br>
I think I understand that when making an outside call, FreeSWITCH<br>
follow these steps:<br>
<br>
USER -&gt; (   Dialplan -&gt; profile (internal) -&gt; bridge (external) -&gt;<br>
profile (external)   ) -&gt; PROVIDER<br>
<br>
PROVIDER -&gt; (   Dialplan -&gt; profile (external) -&gt; bridge (internal) -&gt;<br>
profile (internal)  ) -&gt; USER<br>
<br>
right?<br>
<br>
Internal and external I set as follows (and not many changes have<br>
done, and not remember it, because I&#39;ve been testing days). If<br>
outbound (outbound-codec-prefs) all codecs specified system does not<br>
handle the call, I have to specify these by hand. If active<br>
inbound-proxy-media, not the caller. Some of the time I worked, but<br>
gave me an error that it can do transcoding G729 codec (I do<br>
passthrough), but the proxy does not work half.<br>
<br>
If the outbound property (outbound-codec-prefs) all codecs specified<br>
system does not handle the call, I have to specify these by hand. If<br>
active inbound-proxy-media, not the caller. Some of the time I worked,<br>
but gave me an error that it can do transcoding G729 codec (I want to<br>
make passthrough), but the &quot;proxy media&quot; does not work.<br>
<br>
Basically, what I do is that local users can use all the codecs<br>
allowed (iLBC, GSM, ...) and make an outside call, use the carrier<br>
that will indicate the priority but the free codec.<br>
<br>
With this configuration works for me, but I would like to understand<br>
why so if it works and otherwise no. Coming to understand how to<br>
configure properly and so as not to disturb the mail list ;-). Thanks<br>
!<br>
<br>
Best regards<br>
Anto<br>
<br>
vars.xml<br>
<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot;<br>
data=&quot;global_codec_prefs=iLBC,G7221,speex,PCMU,PCMA,BV16,G726-32,GSM,G729,G723,AMR&quot;/&gt;<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot;<br>
data=&quot;carriers_codec_prefs=PCMU,PCMA,G729,G723,AMR,iLBC,G7221,speex,BV16,G726-32,GSM&quot;/&gt;<br>
<br>
internal.xml<br>
<br>
&lt;param name=&quot;codec-prefs&quot; value=&quot;$${global_codec_prefs}&quot;/&gt;<br>
&lt;!--param name=&quot;inbound-codec-prefs&quot; value=&quot;$${global_codec_prefs}&quot;/&gt;<br>
&lt;param name=&quot;outbound-codec-prefs&quot; value=&quot;$${global_codec_prefs}&quot;/--&gt;<br>
&lt;!--param name=&quot;inbound-codec-negotiation&quot; value=&quot;generous&quot;/--&gt;<br>
&lt;param name=&quot;inbound-codec-negotiation&quot; value=&quot;greedy&quot;/&gt;<br>
&lt;param name=&quot;inbound-late-negotiation&quot; value=&quot;true&quot;/&gt;<br>
&lt;param name=&quot;renegotiate-codec-on-reinvite&quot; value=&quot;true&quot;/&gt;<br>
&lt;!--param name=&quot;inbound-proxy-media&quot; value=&quot;true&quot;/--&gt;<br>
<br>
external.xml<br>
<br>
&lt;param name=&quot;codec-prefs&quot; value=&quot;$${carriers_codec_prefs}&quot;/&gt;<br>
&lt;param name=&quot;inbound-codec-prefs&quot; value=&quot;$${carriers_codec_prefs}&quot;/&gt;<br>
&lt;!--param name=&quot;outbound-codec-prefs&quot; value=&quot;$${carriers_codec_prefs}&quot;/--&gt;<br>
&lt;param name=&quot;outbound-codec-prefs&quot; value=&quot;PCMU,PCMA,G729,G723&quot;/&gt;<br>
&lt;!--param name=&quot;inbound-codec-negotiation&quot; value=&quot;generous&quot;/--&gt;<br>
&lt;param name=&quot;inbound-codec-negotiation&quot; value=&quot;greedy&quot;/&gt;<br>
&lt;param name=&quot;inbound-late-negotiation&quot; value=&quot;true&quot;/&gt;<br>
&lt;param name=&quot;renegotiate-codec-on-reinvite&quot; value=&quot;true&quot;/&gt;<br>
&lt;!--param name=&quot;inbound-proxy-media&quot; value=&quot;true&quot;/--&gt;<br>
<br>
dialplan/outbound.xml<br>
<br>
&lt;include&gt;<br>
        &lt;context name=&quot;internal&quot;&gt;<br>
                &lt;extension name=&quot;outbound&quot;&gt;<br>
                  &lt;condition field=&quot;destination_number&quot; expression=&quot;^(\d+)$&quot;&gt;<br>
                        &lt;!--action application=&quot;set&quot; data=&quot;inherit_codec=true&quot;/--&gt;<br>
                        &lt;!--action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/--&gt;<br>
                        &lt;!--action application=&quot;set&quot; data=&quot;proxy_media=true&quot;/--&gt;<br>
                        &lt;action application=&quot;bridge&quot; data=&quot;sofia/gateway/provider-2/$1&quot;/&gt;<br>
                  &lt;/condition&gt;<br>
                &lt;/extension&gt;<br>
        &lt;/context&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>
</blockquote></div><br>