How does one go about accessing gosub arguments from Asterisk in 
extensions.lua?

For example, I have the following in extensions.conf:

exten => 1000,1,Wait(1)
exten => 1000,n,Gosub(functions,mytest,1("123"))
exten => 1000,n,Hangup

And then the following in extensions.lua:

extensions = {
   functions = {
     ["mytest"] = function()
       app.saydigits("ARG1")
       app["return"]()
     end;
   };
}

I would like the call to speak "one two three", but instead nothing 
happens because ARG1 isn't available to lua.


Thanks much.

-Brian

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to