[Freeswitch-users] Getting script to pass variable to dialplan

Phillip Jones pjintheusa at gmail.com
Sun Apr 18 14:04:40 PDT 2010


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 at 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 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100418/82f56348/attachment.html 


More information about the FreeSWITCH-users mailing list