<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Jesse,<div><br></div><div>it's unlikely you will get a quicker answer by sending the same a second time after 7 hours.</div><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 </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 25/08/2010 à 09:10, jesse a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>I have a bridge.lua script:<br><br>phone1 = argv[1];<br>phone2 = argv[2];<br><br>dialstring1 = "sofia/gateway/xyz.com/" .. phone1;<br>dialstring2 = "sofia/gateway/xyz.com7" .. phone2;<br><br>session1 = freeswitch.Session(dialstring1);<br>session2 = freeswitch.Session(dialstring2, session1);<br>freeswitch.bridge(session1, session2);<br><br><br><br><a href="mailto:freeswitch@xyz.com">freeswitch@xyz.com</a>> luarun bridge.lua 16502222222 16503333333<br>2010-08-24 16:47:55.331681 [NOTICE] switch_channel.c:779 New Channel<br>sofia/external/16502222222 [043e3bb2-afda-11df-b543-e5f35c280c99]<br><br>+OK<br><br><a href="mailto:freeswitch@xyz.com">freeswitch@xyz.com</a>> 2010-08-24 16:47:55.425462 [INFO] sofia.c:662<br>sofia/external/16502222222 Update Callee ID to "Caller Jesse" <43583><br>2010-08-24 16:47:55.427493 [NOTICE] sofia_glue.c:3294 Pre-Answer<br>sofia/external/16502222222!<br>2010-08-24 16:47:55.428468 [NOTICE] switch_channel.c:779 New Channel<br>sofia/external/16503333333 [044cee96-afda-11df-b544-e5f35c280c99]<br>2010-08-24 16:47:56.360476 [INFO] sofia.c:662<br>sofia/external/16503333333 Update Callee ID to "16503333333"<br><16503333333><br>2010-08-24 16:47:56.361475 [NOTICE] sofia_glue.c:3294 Pre-Answer<br>sofia/external/16503333333!<br>2010-08-24 16:47:56.363477 [ERR] switch_cpp.cpp:1220 Channels not ready<br>2010-08-24 16:47:56.363477 [NOTICE] switch_cpp.cpp:972 Hangup<br>sofia/external/16503333333 [CS_SOFT_EXECUTE] [NORMAL_CLEARING]<br>2010-08-24 16:47:56.363477 [NOTICE] switch_cpp.cpp:972 Hangup<br>sofia/external/16502222222 [CS_SOFT_EXECUTE] [NORMAL_CLEARING]<br>2010-08-24 16:47:56.364556 [NOTICE] switch_core_session.c:1220 Session<br>25 (sofia/external/16503333333) Ended<br>2010-08-24 16:47:56.364556 [NOTICE] switch_core_session.c:1222 Close<br>Channel sofia/external/16503333333 [CS_DESTROY]<br>2010-08-24 16:47:56.364556 [NOTICE] switch_core_session.c:1220 Session<br>24 (sofia/external/16502222222) Ended<br>2010-08-24 16:47:56.364556 [NOTICE] switch_core_session.c:1222 Close<br>Channel sofia/external/16502222222 [CS_DESTROY]<br><br>As you can see the call gets dropped immediately after couple rings.<br><br>however, it works well if i do like this:<br><br>originate sofia/gateway/xyz.com/16502222222<br>&bridge(sofia/gateway/xyz.com/16503333333)<br><br>What is the reason Lua script will fail? any difference between the<br>two approaches?<br><br>thanks!<br><br>jesse<br><br>_______________________________________________<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></div></blockquote></div><br></div></body></html>