[asterisk-users] Accessing Asterisk gosub arguments in extensions.lua
Brian Camp
brian.camp at itfreedom.com
Mon Aug 17 12:24:08 CDT 2009
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
More information about the asterisk-users
mailing list