<div dir="ltr">mod_amr doesn't allow transcoding for licensing reasons. It only supports passthrough mode where both sides support it so that the raw data can be passed between them and the clients use their own licensed AMR codec. It also means anything that uses media can't be used on those calls (eg playback, eavesdrop).<div class="gmail_extra"><br><div class="gmail_quote">On 15 August 2017 at 07:58, Ron <span dir="ltr"><<a href="mailto:ron.menez@entropysolution.com" target="_blank">ron.menez@entropysolution.com</a><wbr>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
Hi All,
<div><br>
</div>
<div>Is it possible to use AMR Codec to A-leg and GSM Codec for B-leg or vice versa?</div>
<div><br>
</div>
<div>Tried the following configuration in sip profiles:</div>
<div><br>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>
<div><param name="inherit_codec" value="true"/></div>
<div><param name="inbound-late-negotiation<wbr>" value="true”/></div>
</div>
<div><param name="disable-transcoding" value="false”/></div>
<div><br>
</div>
</blockquote>
<div>We received an error in the logs:</div>
<div><br>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>
<div>e178024a-8180-11e7-9d17-e38b94<wbr>0a41a7 2017-08-15 06:13:45.955687 [DEBUG] switch_ivr_originate.c:3833 Originate Resulted in Error Cause: 88 [INCOMPATIBLE_DESTINATION]</div>
<div>e178024a-8180-11e7-9d17-e38b94<wbr>0a41a7 2017-08-15 06:13:45.955687 [INFO] mod_dptools.c:3418 Originate Failed.  Cause: INCOMPATIBLE_DESTINATION</div>
<div>e178024a-8180-11e7-9d17-e38b94<wbr>0a41a7 2017-08-15 06:13:45.955687 [NOTICE] switch_channel.c:4822 Hangup
<a href="mailto:sofia/internal/09589999999@10.1.0.5" target="_blank">sofia/internal/09589999999@10.<wbr>1.0.5</a> [CS_EXECUTE] [INCOMPATIBLE_DESTINATION]</div>
</div>
</blockquote>
<div><br>
</div>
We also tried to use the absolute_codec_string configuration in dialplan:
<div><br>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div><action application="bridge" data="{absolute_codec_string=G<wbr>SM}sofia/internal/${<a href="http://destination_number%7D@10.1.0.4:5080" target="_blank">destinatio<wbr>n_number}@10.1.0.4:5080</a>"/></div>
</blockquote>
<div>
<div><br class="m_-7009800511143886148m_-4356515452886997640webkit-block-placeholder">
</div>
<div>The error we received on this is:</div>
<div><br>
</div>
</div>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>
<div>
<div>2017-08-15 06:17:29.755700 [ERR] mod_amr.c:338 This codec is only usable in passthrough mode!</div>
<div>2017-08-15 06:17:29.755700 [ERR] switch_core_io.c:1434 Codec AMR encoder error!</div>
</div>
</div>
</blockquote>
<div>
<div><br class="m_-7009800511143886148m_-4356515452886997640webkit-block-placeholder">
</div>
<div>For your kind advice please.</div>
<div><br>
</div>
<div>TIA.</div>
<div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br class="m_-7009800511143886148m_-4356515452886997640Apple-interchange-newline">
Best Regard,</div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
Ron Menez</div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<a href="mailto:ron.menez@entropysolution.com" target="_blank">ron.menez@entropysolution.com</a></div>
<div style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<br class="m_-7009800511143886148m_-4356515452886997640Apple-interchange-newline" style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br class="m_-7009800511143886148m_-4356515452886997640Apple-interchange-newline">
</div>
<br>
</div>
</div>

<br>______________________________<wbr>______________________________<wbr>_____________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions<wbr>.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.o<wbr>rg</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswi<wbr>tch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/ma<wbr>ilman/listinfo/freeswitch-user<wbr>s</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.frees<wbr>witch.org/mailman/options/<wbr>freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div></div>