<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Kristian,<div><br></div><div>I am not sure to understand how removing G729 from PCMU/G729 would allow a call to a PCMA device...</div><div>That was the example you gave in your first mail.</div><div>I think you would need to at least present PCMU/PCMA on all calls.</div><div><br></div><div>Anyway, setting absolute_codec_string works perfectly here.</div><div>But as Anthony already told you, you got to export it (it affects B-leg).</div><div><br></div><div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone </font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space"> </span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); "> - <span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br><div><div>Le 02/06/2010 à 22:06, Kristian Kielhofner a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>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><br>On Wed, Jun 2, 2010 at 3:48 PM, Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>> wrote:<br><blockquote type="cite">You can enable "late-negotiation", then set inherit_codec=true then it will<br></blockquote><blockquote type="cite">delay the negotiation till it gets the answer from the B-Leg before the<br></blockquote><blockquote type="cite">A-Leg's codec is thus accomplishing the same thing.<br></blockquote><blockquote type="cite">/b<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Jun 2, 2010, at 2:40 PM, Kristian Kielhofner wrote:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hello everyone,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Either I am misunderstanding absolute_codec_string or there is<br></blockquote><blockquote type="cite">something going on with it in trunk. I had a git checkout from a<br></blockquote><blockquote type="cite">month ago that exhibited this same behavior so I updated about an hour<br></blockquote><blockquote type="cite">ago. It's still there (or I'm still confused).<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> In short, I have a call that comes in from a remote endpoint that<br></blockquote><blockquote type="cite">will advertise PCMU and G729 (in that order). When I bridge the call<br></blockquote><blockquote type="cite">I want to remove G729 capability from the outbound leg in some cases<br></blockquote><blockquote type="cite">so FS doesn't have to transcode. In other cases (controlled from the<br></blockquote><blockquote type="cite">dialplan), I want to place G729 as the first codec (again so FS<br></blockquote><blockquote type="cite">doesn't have to transcode) but I can force G729. I've tried regex on<br></blockquote><blockquote type="cite">ep_codec_string and I've tried regex on the SDP. Both seemed to work<br></blockquote><blockquote type="cite">well but what didn't work was setting absolute_codec_string from<br></blockquote><blockquote type="cite">either of these.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Even when I try to set it manually without any fancy conditions it<br></blockquote><blockquote type="cite">doesn't appear to work. The codec prefs from the SIP profile are<br></blockquote><blockquote type="cite">presented to the remote endpoint. Full debug here:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><a href="http://pastebin.freeswitch.org/13088">http://pastebin.freeswitch.org/13088</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Any ideas?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Kristian Kielhofner<br></blockquote><blockquote type="cite"><a href="http://www.astlinux.org">http://www.astlinux.org</a><br></blockquote><blockquote type="cite"><a href="http://blog.krisk.org">http://blog.krisk.org</a><br></blockquote><blockquote type="cite"><a href="http://www.star2star.com">http://www.star2star.com</a><br></blockquote><blockquote type="cite"><a href="http://www.submityoursip.com">http://www.submityoursip.com</a><br></blockquote><blockquote type="cite"><a href="http://www.voalte.com">http://www.voalte.com</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">FreeSWITCH-users mailing list<br></blockquote><blockquote type="cite"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br></blockquote><blockquote type="cite">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br></blockquote><blockquote type="cite"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br><br>-- <br>Kristian Kielhofner<br><a href="http://www.astlinux.org">http://www.astlinux.org</a><br>http://blog.krisk.org<br>http://www.star2star.com<br>http://www.submityoursip.com<br>http://www.voalte.com<br><br>_______________________________________________<br>FreeSWITCH-users mailing list<br>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></div></blockquote></div><br></div></body></html>