Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Passing Variables in FS


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
ahmedmunir007 at gmail...
Guest





PostPosted: Fri Sep 04, 2009 1:09 am    Post subject: [Freeswitch-users] Passing Variables in FS Reply with 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.
--
Regards,

Ahmed Munir
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Sep 04, 2009 2:10 am    Post subject: [Freeswitch-users] Passing Variables in FS Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services