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: [email protected]
[mailto:[email protected]] On Behalf Of
Michael Collins
Sent: 18 February 2009 21:43
To: [email protected]
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
[email protected]
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
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to