<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Guys,<div><br></div><div>I added this variable to the wiki:</div><div><br></div><div><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#variable_xxxx">http://wiki.freeswitch.org/wiki/Channel_Variables#variable_xxxx</a></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 &nbsp;</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: &nbsp; &nbsp; &nbsp;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: &nbsp; 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">&nbsp;</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: &nbsp; &nbsp; &nbsp;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); ">&nbsp; -&nbsp; &nbsp;<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.&nbsp;</i><b><i>IPeva</i></b><i>&nbsp;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 04/05/2010 à 23:50, João Mesquita a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">I think you can also use another variable on the A leg SDP to make it easier on the regex. ep_codec_string.<div><br></div><div>This will contain the parsed version of the A leg SDP and that's what I use most of the times for these tricks. Also, can you document that? :-)</div> <div><br></div><div>Regards,<br clear="all">João Mesquita<br> <br><br><div class="gmail_quote">On Tue, May 4, 2010 at 1:52 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> you can regex the SDP for something specific and use that to set the absolute_codec_string in a standalone extension that comes first in the stack and has continue=true on it<div><br><div><br><br><div class="gmail_quote"> <div><div></div><div class="h5">On Tue, May 4, 2010 at 11:32 AM, Ken Fulmer <span dir="ltr">&lt;<a href="mailto:kenfulmer@icstechnologysolutions.com" target="_blank">kenfulmer@icstechnologysolutions.com</a>&gt;</span> wrote:<br> </div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5"> <div lang="EN-US" link="blue" vlink="purple"> <div><p class="MsoNormal"><span style="color:#1F497D">Just in case others are interested, this is possible with the following parameters:</span></p><div><span style="color:#1F497D">&nbsp;</span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="color:#1F497D">SIP Profile:</span></p><div><span style="color:#1F497D">&nbsp;</span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp; &lt;param name="inbound-late-negotiation" value="true"/&gt;</span></p><div><span style="color:#1F497D">&nbsp;</span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="color:#1F497D">Dial-Plan:</span></p><div><span style="color:#1F497D">&nbsp;</span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;action application="set" data="inherit_codec=true"/&gt;</span></p><div><span style="color:#1F497D">&nbsp;</span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="color:#1F497D">The codec negotiated in Call Leg B, is forced onto Call Leg A. This is possible due to the “inbound late negotiation” parameter in the sip profile.</span></p><div><span style="color:#1F497D">&nbsp;</span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="color:#1F497D">Hope this helps someone else. </span></p><div><span style="color:#1F497D">&nbsp;</span><br class="webkit-block-placeholder"></div><p class="MsoNormal"><span style="color:#1F497D">Ken</span></p><div><span style="color:#1F497D">&nbsp;</span><br class="webkit-block-placeholder"></div><div><span style="color:#1F497D">&nbsp;</span><br class="webkit-block-placeholder"></div><div><span style="color:#1F497D">&nbsp;</span><br class="webkit-block-placeholder"></div> <div> <div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in"><p class="MsoNormal"><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Ken Fulmer<br> <b>Sent:</b> Tuesday, May 04, 2010 8:29 AM</span></p><div><br> <b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br> </div><b>Subject:</b> [Freeswitch-users] Different codecs for different devices?<div><br class="webkit-block-placeholder"></div> </div> </div><div><div></div><div><div>&nbsp;<br class="webkit-block-placeholder"></div><p class="MsoNormal">This may be a far out question but here goes:</p><div>&nbsp;<br class="webkit-block-placeholder"></div><p class="MsoNormal">Our fax machines that are connected to ATA’s need to be g.711 on both Call Leg A and Call Leg B (in either direction). </p><div>&nbsp;<br class="webkit-block-placeholder"></div><p class="MsoNormal">However, our phones need to be g.711 on the internal side that faces our PBX. On the side facing our SIP provider, the calls should be transcoded to g.729. Inbound the calls to phones (not ATA’s) need to be g.729 on the inbound call leg and g.711 on the outbound call leg. </p><div>&nbsp;<br class="webkit-block-placeholder"></div><p class="MsoNormal">I realize we can set inbound / outbound codec preferences in single or multiple profiles and we can set the “absolute_codec_string” value for the outbound call leg. </p><div>&nbsp;<br class="webkit-block-placeholder"></div><p class="MsoNormal">However, I’ve yet to determine how to set the inbound call leg’s codec differently depending on the device. Is this possible? </p><div>&nbsp;<br class="webkit-block-placeholder"></div><p class="MsoNormal">Thanks,</p><div>&nbsp;<br class="webkit-block-placeholder"></div><p class="MsoNormal">Ken Fulmer</p><div>&nbsp;<br class="webkit-block-placeholder"></div> </div></div></div> </div> <br></div></div><div class="im">_______________________________________________<br> FreeSWITCH-users mailing list<br> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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></div></blockquote></div><div class="im"><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br> Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br> pstn:+19193869900<br> </div></div></div> <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> <br></blockquote></div><br></div> _______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><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></blockquote></div><br></div></body></html>