[Freeswitch-users] Originate and bridge with lua

Nik Middleton nik.middleton at noblesolutions.co.uk
Wed Feb 18 15:56:53 PST 2009


Done

 

Seems it had a spam score of 2 for some reason

 

Regards,

 

________________________________

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Anthony Minessale
Sent: 18 February 2009 23:39
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Originate and bridge with lua

 

i replied to your last private message and it was returned as
undeliverable.  overzealous spam server? Can you add my account to your
whitelist?



On Wed, Feb 18, 2009 at 4:06 PM, Anthony Minessale
<anthony.minessale at gmail.com> wrote:

You want to make it even more efficient?
when they press 1,
session:execute("transfer", "<number>");

Then, put an extension in your dialplan to match <number> and do the
bridge.
Then you can exit the script and only run the script when you need it.

Your problem with js was the same issue, you should have been doing
something similar there too.

BTW,
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.







On Wed, Feb 18, 2009 at 3:56 PM, Nik Middleton
<nik.middleton at noblesolutions.co.uk> wrote:

Sorted now thanks, it needed to be in the format

session:execute("bridge", "{params}sofia/gateway/Mygateway/number");

key change was '"'

Now I've converted my js script to lua going to run some tests tomorrow.

I sincerely hope it'll handle more than the 10 calls js would break at.


Here's my current setup

External prog generates bgapi calls via socket and calls originate with
name of lua script also passed.

Lua does IVR and then bridges where required.  It also fires back an
event to show result of call.

Astererisk happily does around 200 calls, I'm hoping FS will do better
or I've just been wasting my time.  Is there a more efficient way of
doing this?


Regards,






-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Michael Collins

Sent: 18 February 2009 21:43
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Originate and bridge with lua

> Everything is working perfectly, except the bridge to another number.
> Because of the nature of the beast the bridge needs to dial an
external
> number (ie  sofia/gateway/Mygateway/num)  What I'm getting is:
>
> attempt to perform arithmetic on global 'sofia' (a nil value)
>
Can you pastebin your Lua script?
-MC

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com
<mailto:MSN%3Aanthony_minessale at hotmail.com> 
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
<mailto:PAYPAL%3Aanthony.minessale at gmail.com> 
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
<mailto:sip%3A888 at conference.freeswitch.org> 
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org> 
pstn:213-799-1400




-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com
<mailto:MSN%3Aanthony_minessale at hotmail.com> 
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
<mailto:PAYPAL%3Aanthony.minessale at gmail.com> 
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
<mailto:sip%3A888 at conference.freeswitch.org> 
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org> 
pstn:213-799-1400

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090218/cfc7b385/attachment.html 


More information about the Freeswitch-users mailing list