View previous topic :: View next topic |
Author |
Message |
ahmedmunir007 at gmail... Guest
|
Posted: Fri Sep 04, 2009 1:09 am Post subject: [Freeswitch-users] Passing Variables in FS |
|
|
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.
--
Regards,
Ahmed Munir |
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Fri Sep 04, 2009 2:10 am Post subject: [Freeswitch-users] Passing Variables in FS |
|
|
On Thu, Sep 3, 2009 at 11:05 PM, Ahmed Munir <ahmedmunir007@gmail.com (ahmedmunir007@gmail.com)> wrote:
Quote: | 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 |
|
Back to top |
|
|
|