Getting script to pass variable to dialplan
I have a simple AGI based dialplan that I want a dialplan equivalent of. The agi script checks the database if the extension making the call is enabled, if it is not it hangups the call, or allows the call to continue inside the dialplan. Do the scripting languages allow changing or setting of variables that will be used further on in the dialplan? Can they create new custom variables that can be used to direct the dialplan? -- Frank Church ======================= http://devblog.brahmancreations.com
You can set / get custom variables as follows: var TheVariable = session.getVariable("TheVariableName") session.setVariable("TheVariableName", "This is the val") On Sun, Apr 18, 2010 at 11:55 AM, Frank Church <vfclists@googlemail.com>wrote:
I have a simple AGI based dialplan that I want a dialplan equivalent of.
The agi script checks the database if the extension making the call is enabled, if it is not it hangups the call, or allows the call to continue inside the dialplan. Do the scripting languages allow changing or setting of variables that will be used further on in the dialplan?
Can they create new custom variables that can be used to direct the dialplan?
-- Frank Church
======================= http://devblog.brahmancreations.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Frank Church
-
Phillip Jones