You want to make it even more efficient?<br>when they press 1,<br>session:execute(&quot;transfer&quot;, &quot;&lt;number&gt;&quot;);<br><br>Then, put an extension in your dialplan to match &lt;number&gt; and do the bridge.<br>
Then you can exit the script and only run the script when you need it.<br><br>Your problem with js was the same issue, you should have been doing something similar there too.<br><br>BTW,<br>If you make another comparison to asterisk comment, I will never answer another email from you again I don&#39;t have time for that crap.<br>
<br><br><br><br><div class="gmail_quote">On Wed, Feb 18, 2009 at 3:56 PM, Nik Middleton <span dir="ltr">&lt;<a href="mailto:nik.middleton@noblesolutions.co.uk">nik.middleton@noblesolutions.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sorted now thanks, it needed to be in the format<br>
<br>
session:execute(&quot;bridge&quot;, &quot;{params}sofia/gateway/Mygateway/number&quot;);<br>
<br>
key change was &#39;&quot;&#39;<br>
<br>
Now I&#39;ve converted my js script to lua going to run some tests tomorrow.<br>
<br>
I sincerely hope it&#39;ll handle more than the 10 calls js would break at.<br>
<br>
<br>
Here&#39;s my current setup<br>
<br>
External prog generates bgapi calls via socket and calls originate with<br>
name of lua script also passed.<br>
<br>
Lua does IVR and then bridges where required. &nbsp;It also fires back an<br>
event to show result of call.<br>
<br>
Astererisk happily does around 200 calls, I&#39;m hoping FS will do better<br>
or I&#39;ve just been wasting my time. &nbsp;Is there a more efficient way of<br>
doing this?<br>
<br>
<br>
Regards,<br>
<div class="Ih2E3d"><br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of<br>
Michael Collins<br>
</div><div class="Ih2E3d">Sent: 18 February 2009 21:43<br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] Originate and bridge with lua<br>
<br>
</div><div><div></div><div class="Wj3C7c">&gt; Everything is working perfectly, except the bridge to another number.<br>
&gt; Because of the nature of the beast the bridge needs to dial an<br>
external<br>
&gt; number (ie &nbsp;sofia/gateway/Mygateway/num) &nbsp;What I&#39;m getting is:<br>
&gt;<br>
&gt; attempt to perform arithmetic on global &#39;sofia&#39; (a nil value)<br>
&gt;<br>
Can you pastebin your Lua script?<br>
-MC<br>
<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>
_______________________________________________<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>
<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="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>