You want to make it even more efficient?<br>when they press 1,<br>session:execute("transfer", "<number>");<br><br>Then, put an extension in your dialplan to match <number> 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'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"><<a href="mailto:nik.middleton@noblesolutions.co.uk">nik.middleton@noblesolutions.co.uk</a>></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("bridge", "{params}sofia/gateway/Mygateway/number");<br>
<br>
key change was '"'<br>
<br>
Now I've converted my js script to lua going to run some tests tomorrow.<br>
<br>
I sincerely hope it'll handle more than the 10 calls js would break at.<br>
<br>
<br>
Here'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. It also fires back an<br>
event to show result of call.<br>
<br>
Astererisk happily does around 200 calls, I'm hoping FS will do better<br>
or I've just been wasting my time. 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">> Everything is working perfectly, except the bridge to another number.<br>
> Because of the nature of the beast the bridge needs to dial an<br>
external<br>
> number (ie sofia/gateway/Mygateway/num) What I'm getting is:<br>
><br>
> attempt to perform arithmetic on global 'sofia' (a nil value)<br>
><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>