you have to export it instead of set to present it both directions<div>otherwise you need to put it in the {} to present it<br><br><div class="gmail_quote">On Wed, Jun 2, 2010 at 3:06 PM, Kristian Kielhofner <span dir="ltr"><<a href="mailto:kris@kriskinc.com">kris@kriskinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Brian,<br>
<br>
late-negotiation is set.<br>
<br>
I tried inherit_codec and while it does what you say it can't handle<br>
cases where the endpoints are incompatible:<br>
<br>
A leg (PCMU only) -> B (PCMA only) = INCOMPATIBLE_DESTINATION<br>
<br>
My method would allow me to *always* present at least one compatible<br>
codec AND place it at the bottom of the SDP offer. If the B leg<br>
happens to be compatible with more preferred codecs it can use them<br>
with no transcoding. This is all (of course) assuming I can set this<br>
using absolute_codec_string and FS will transcode for me across these<br>
two channels using my common codec when required...<br>
<div><div></div><div class="h5"><br>
On Wed, Jun 2, 2010 at 3:48 PM, Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>> wrote:<br>
> You can enable "late-negotiation", then set inherit_codec=true then it will<br>
> delay the negotiation till it gets the answer from the B-Leg before the<br>
> A-Leg's codec is thus accomplishing the same thing.<br>
> /b<br>
><br>
> On Jun 2, 2010, at 2:40 PM, Kristian Kielhofner wrote:<br>
><br>
> Hello everyone,<br>
><br>
> Either I am misunderstanding absolute_codec_string or there is<br>
> something going on with it in trunk. I had a git checkout from a<br>
> month ago that exhibited this same behavior so I updated about an hour<br>
> ago. It's still there (or I'm still confused).<br>
><br>
> In short, I have a call that comes in from a remote endpoint that<br>
> will advertise PCMU and G729 (in that order). When I bridge the call<br>
> I want to remove G729 capability from the outbound leg in some cases<br>
> so FS doesn't have to transcode. In other cases (controlled from the<br>
> dialplan), I want to place G729 as the first codec (again so FS<br>
> doesn't have to transcode) but I can force G729. I've tried regex on<br>
> ep_codec_string and I've tried regex on the SDP. Both seemed to work<br>
> well but what didn't work was setting absolute_codec_string from<br>
> either of these.<br>
><br>
> Even when I try to set it manually without any fancy conditions it<br>
> doesn't appear to work. The codec prefs from the SIP profile are<br>
> presented to the remote endpoint. Full debug here:<br>
><br>
> <a href="http://pastebin.freeswitch.org/13088" target="_blank">http://pastebin.freeswitch.org/13088</a><br>
><br>
> Any ideas?<br>
><br>
> --<br>
> Kristian Kielhofner<br>
> <a href="http://www.astlinux.org" target="_blank">http://www.astlinux.org</a><br>
> <a href="http://blog.krisk.org" target="_blank">http://blog.krisk.org</a><br>
> <a href="http://www.star2star.com" target="_blank">http://www.star2star.com</a><br>
> <a href="http://www.submityoursip.com" target="_blank">http://www.submityoursip.com</a><br>
> <a href="http://www.voalte.com" target="_blank">http://www.voalte.com</a><br>
><br>
</div></div><div class="im">> _______________________________________________<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>
><br>
><br>
<br>
<br>
<br>
</div>--<br>
<div class="im">Kristian Kielhofner<br>
<a href="http://www.astlinux.org" target="_blank">http://www.astlinux.org</a><br>
<a href="http://blog.krisk.org" target="_blank">http://blog.krisk.org</a><br>
<a href="http://www.star2star.com" target="_blank">http://www.star2star.com</a><br>
<a href="http://www.submityoursip.com" target="_blank">http://www.submityoursip.com</a><br>
<a href="http://www.voalte.com" target="_blank">http://www.voalte.com</a><br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>