<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello, Steven.<br>
      <br>
      Thank you for reply.<br>
      <br>
      Maybe my DID-provider is buggy, but I've succesfull calls in the
      other pbx with the same number.<br>
      Short examples below - second example is work.<br>
      <br>
               FS (1st test)<br>
      <br>
      ----&gt; INVITE (PCMU,PCMA)<br>
      &lt;---- 100 Trying<br>
      &lt;---- 200 OK (PCMU)<br>
      ----&gt; ACK<br>
      ----&gt; Re-INVITE (PCMA)<br>
      &lt;---- 100 Trying<br>
      &lt;---- 488 Not Acceptable Here<br>
      <br>
               CG (2nd test)<br>
      <br>
      ----&gt; INVITE (PCMU,PCMA)<br>
      &lt;---- 100 Trying<br>
      &lt;---- 200 OK (PCMU, PCMA)<br>
      ----&gt; ACK<br>
      ----&gt; Re-INVITE (PCMA)<br>
      &lt;---- 100 Trying<br>
      &lt;---- 200 OK (PCMA)<br>
      ----&gt; ACK<br>
      <br>
      02.02.2013 02:41, Steven Ayre пишет:<br>
    </div>
    <blockquote
cite="mid:CAFiqYumGReQx6Q7vVKDsTyEuLM4Drxu1R36yLQAOw-qO3Ssrtg@mail.gmail.com"
      type="cite">
      <blockquote type="cite">
        <pre wrap="">
How can I manage set of codec in inbound calls?
</pre>
      </blockquote>
      <pre wrap="">

&lt;X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,G729,GSM"/&gt;
&lt;X-PRE-PROCESS cmd="set" data="inbound_codec_prefs=PCMU,PCMA,G729,GSM"/&gt;
&lt;param name="inbound-codec-prefs" value="$${inbound_codec_prefs}"/&gt;
&lt;param name="outbound-codec-prefs" value="$${outbound_codec_prefs}"/&gt;

Your previous configuration used the global list for both parameters.
    
global_codec_prefs isn't actually then used, there's a codec-prefs param
for convenience only that sets both inbound and outbound at the same time
and isn't actually needed if you're setting both.

-Steve



On 1 February 2013 11:18, Александр Мустафин
<a class="moz-txt-link-rfc2396E" href="mailto:mustafin.aleksandr@gmail.com">&lt;mustafin.aleksandr@gmail.com&gt;</a>wrote:

</pre>
      <blockquote type="cite">
        <pre wrap="">Hello.

My FS receive INVITE with 2 codecs in SDP: PCMA and PCMU. After hunting
dialplan, this call forwarding to IVR, and I see next message in log:

2013-01-31 01:23:22.388780 [DEBUG] sofia_glue.c:5094 Audio Codec Compare
[PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000]
2013-01-31 01:23:22.388780 [DEBUG] sofia_glue.c:3077 Set Codec
sofia/internal/9089080908@PSTN PCMU/8000 20 ms 160 samples 64000 bits
2013-01-31 01:23:22.388780 [DEBUG] switch_core_codec.c:111
sofia/internal/9089080908@PSTN Original read codec set to PCMU:0

And FS send 200 OK to remote side with one codec in SDP: PCMU.

My parameters:

In internal.xml (profile)
&lt;param name="inbound-codec-prefs" value="$${global_codec_prefs}"/&gt;
&lt;param name="outbound-codec-prefs" value="$${global_codec_prefs}"/&gt;

In vars.xml
&lt;X-PRE-PROCESS cmd="set"
data="global_codec_prefs=PCMU,PCMA,G729,G722,GSM"/&gt;
&lt;X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,G729,GSM"/&gt;
&lt;X-PRE-PROCESS cmd="set" data="inbound_codec_prefs=PCMU,PCMA,G729,GSM"/&gt;

This is normal behavior?How can I manage set of codec in inbound calls?

Best regards, Alexander.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>

</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>