<div dir="ltr"><div>This may just be not setting the chan variable correctly in your enterprise originate string. What does your enterprise originate look like?<br><br></div>-MC<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, May 7, 2013 at 9:03 AM, Spencer Thomason <span dir="ltr"><<a href="mailto:spencer@5ninesolutions.com" target="_blank">spencer@5ninesolutions.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello all,<br>
I'm having a bit of trouble getting codec negotiation working the way I'd like to. I'm trying to avoid transcoding unless its absolutely necessary for the call to be setup. I use two profiles with late negotiation enabled, an internal facing registered user endpoints and an external facing the PSTN via various ITSPs. For calls to users I've been setting codec_string=${ep_codec_string} in my dial strings and normal bridges work fine but I'm now reworking the hunt groups using enterprise originate and that doesn't seem to work correctly (the callee's preferences are always used). So I'd like to do the the "right" way now :-)<br>
<br>
The basic scenario is this:<br>
<br>
On the internal profile I have:<br>
CODECS IN G722,PCMU,G729,GSM<br>
CODECS OUT G722,PCMU,G729,GSM<br>
<br>
On the external profile I have:<br>
CODECS IN G722,PCMU,G729<br>
CODECS OUT G722,PCMU,G729<br>
<br>
What I'm trying to accomplish is this:<br>
Call from PSTN, use caller's codecs as priority for the bridge, i.e.<br>
PSTN GW --- PCMU, G729 --> FreeSWITCH --- PCMU,G729,G722, GSM ---> Local Endpoint<br>
PSTN GW --- G729,PCMU --> FreeSWITCH --- G729,PCMU,G722, GSM ---> Local Endpoint<br>
PSTN GW --- G722,PCMU --> FreeSWITCH --- G722,PCMU,G729, GSM ---> Local Endpoint<br>
<br>
<br>
Call from local endpoint to PSTN, use callee's codecs as priority for the bridge, i.e.<br>
Local Endpoint Offers G722, PCMU, G729<br>
GW Responds PCMU,G729<br>
Local Endpoint --- G722,PCMU,G729 ---> FreeSWITCH --- G722,PCMU, G729 --> PSTN<br>
Desired negotiation: Both legs use PCMU<br>
<br>
Local Endpoint Offers G722, PCMU, G729<br>
GW Responds G729,PCMU<br>
Local Endpoint --- G722,PCMU,G729 ---> FreeSWITCH --- G722,PCMU,G729 --> PSTN<br>
Desired negotiation: Both legs use G729<br>
<br>
Local Endpoint Offers GSM<br>
GW Responds PCMU, G729<br>
Local Endpoint --- GSM ---> FreeSWITCH --- G722,PCMU,G729 --> PSTN<br>
Desired negotiation: Leg A uses GSM, Leg B uses PCMU, FreeSWITCH transcodes.<br>
<br>
Any help is greatly appreciated!<br>
<br>
<br>
Thanks,<br>
Spencer<br>
<br>
<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><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div>