<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Well, as Sergey said, only the first one allows to set variables on leg A.<div><br><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 23/06/2010 à 18:11, DJB International a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">Would it mean that there are no advantage/disadvantage between the two? &nbsp;It is just how you prefer to write it. &nbsp;Is my assumption correct?<div><br></div><div>Thank you,</div><div>Dorn B.<br><br><div class="gmail_quote">On Wed, Jun 23, 2010 at 5:59 AM, David Ponzone <span dir="ltr">&lt;<a href="mailto:david.ponzone@gmail.com">david.ponzone@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;"><div style="word-wrap:break-word">You're absolutely right, I misread your post.<div><div class="im"><br><div> <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;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"> <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;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word"> <div><font face="'Helvetica Neue'"><font color="#1C00FF">David Ponzone &nbsp;</font><font color="#000000" size="3"><span style="font-size:12px">Direction Technique</span></font></font></div><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div> <div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">tel: &nbsp; &nbsp; &nbsp;01 74 03 18 97</span></font></font></div><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">gsm: &nbsp; 06 66 98 76 34</span></font></font></div> <div><font face="'Helvetica Neue'"><br></font></div><div><font color="#1C00FF" face="'Helvetica Neue'">Service Client<span>&nbsp;</span></font><font face="'Helvetica Neue'"><font color="#FF0000">IP</font></font><font color="#1C00FF" face="'Helvetica Neue'">eva</font></div> <div><font color="#1C00FF" face="'Helvetica Neue'"><span style="color:rgb(0, 0, 0);font-family:Helvetica"><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">tel: &nbsp; &nbsp; &nbsp;0811 46 26 26</span></font></font></div> <div><font face="'Helvetica Neue'" size="3"><span style="font-size:13px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><a>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>www.ipeva-studio.com</a></span></span></div> <div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)"> <span><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;text-align:justify;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 color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br></div></span><br> </div><br></div><div><div>Le 23/06/2010 à 14:49, Sergey Okhapkin a écrit :</div> <div><div></div><div class="h5"><br><blockquote type="cite"><div>[] sets variables on B leg, but not on A leg.<br><br>On Wednesday 23 June 2010, David Ponzone wrote:<br><blockquote type="cite">Sergey,<br></blockquote><blockquote type="cite"> <br></blockquote><blockquote type="cite">I think you can also do that with the | (pipe) syntax, using []<br></blockquote><blockquote type="cite">instead of {}.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> Personnaly, I would say syntax 1 is far more readable.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">David Ponzone &nbsp;Direction Technique<br></blockquote><blockquote type="cite">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a><br> </blockquote><blockquote type="cite">tel: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;01 74 03 18 97<br></blockquote><blockquote type="cite">gsm: &nbsp;&nbsp;06 66 98 76 34<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Service Client IPeva<br> </blockquote><blockquote type="cite">tel: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0811 46 26 26<br></blockquote><blockquote type="cite"><a href="http://www.ipeva.fr" target="_blank">www.ipeva.fr</a> &nbsp;- &nbsp;&nbsp;<a href="http://www.ipeva-studio.com" target="_blank">www.ipeva-studio.com</a><br> </blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Ce message et toutes les pièces jointes sont confidentiels et établis<br></blockquote><blockquote type="cite">à l'intention exclusive de ses destinataires. Toute utilisation ou<br> </blockquote><blockquote type="cite">diffusion non autorisée est interdite. Tout message électronique est<br></blockquote><blockquote type="cite">susceptible d'altération. IPeva décline toute responsabilité au<br></blockquote> <blockquote type="cite">titre de ce message s'il a été altéré, déformé ou falsifié. Si<br></blockquote><blockquote type="cite">vous n'êtes pas destinataire de ce message, merci de le détruire<br></blockquote><blockquote type="cite"> immédiatement et d'avertir l'expéditeur.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Le 23/06/2010 à 14:20, Sergey Okhapkin a écrit :<br></blockquote><blockquote type="cite"><blockquote type="cite"> I prefer the first way, it allows to set leg A channel variables to<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">different<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> values depending on which gateway completed the call.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">On Wednesday 23 June 2010, DJB International wrote:<br> </blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">It's always confused me. &nbsp;I wonder whether there are any differences<br></blockquote></blockquote></blockquote><blockquote type="cite"> <blockquote type="cite"><blockquote type="cite">between these 2 dialplans.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote> <blockquote type="cite"><blockquote type="cite"><blockquote type="cite">&lt;extension name="test1"&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &lt;condition field="destination_number" expression="^(.*)$"&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&lt;action application="set" data="hangup_after_bridge=true"/&gt;<br> </blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&lt;action application="set" data="continue_on_fail=true"/&gt;<br></blockquote></blockquote> </blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&lt;action application="bridge" data="sofia/gateway/carrier1/$1"/&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"> <blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&lt;action application="bridge" data="sofia/gateway/carrier2/$1"/&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> <blockquote type="cite"> &lt;/condition&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">&lt;/extension&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"> <blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">-and-<br></blockquote></blockquote></blockquote><blockquote type="cite"> <blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">&lt;extension name="test2"&gt;<br></blockquote></blockquote> </blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &lt;condition field="destination_number" expression="^(.*)$"&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"> <blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&lt;action application="set" data="hangup_after_bridge=true"/&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> <blockquote type="cite"> &nbsp;&nbsp;&lt;action application="set" data="continue_on_fail=true"/&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &nbsp;&nbsp;&lt;action application="bridge"<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">data="sofia/gateway/carrier1/$1|sofia/gateway/carrier2/$1"/&gt;<br> </blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> &lt;/condition&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"> <blockquote type="cite">&lt;/extension&gt;<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"> <blockquote type="cite"><blockquote type="cite">What is the best way to use it?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote> </blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Thank you,<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Dorn B.<br> </blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote> </blockquote><blockquote type="cite"><blockquote type="cite">FreeSWITCH-users mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br> </blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br> </blockquote></blockquote><blockquote type="cite"><blockquote type="cite">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br> </blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote> <br></div></blockquote></div></div></div><br></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>