[Freeswitch-users] Passing Variables in FS

Michael Collins msc at freeswitch.org
Thu Sep 3 23:59:05 PDT 2009


On Thu, Sep 3, 2009 at 11:05 PM, Ahmed Munir <ahmedmunir007 at gmail.com>wrote:

> Hi,
>
> I'm newbie in FS. As far as I know for setting up custom variables in FS we
> use this syntex  in dialplan XML i.e.
>
> <action application="set" data="ABC='value'"/>
>
> But when I call this variable using eval application i.e.
>
> <action application="eval" data="${ABC}"/>
>
> the value I get from variable ABC is undefined means no values are passed
> to the variable.
>
> So kindly do let me know how I can pass values in variables in FS.
>
>
Try using the info app instead of eval. Most likely this is just a case of
the dialplan being parsed prior to the variable being assigned. Do this in
your dialplan after you set the variable:
<action application="info"/>

You'll see a whole list of variables and your custom variable(s) should be
shown with their values.
-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090903/4b3c0708/attachment-0002.html 


More information about the FreeSWITCH-users mailing list