VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
ahmedmunir007 at gmail... Guest
|
Posted: Mon Sep 07, 2009 4:01 am Post subject: [Freeswitch-users] Passing custom Dial Plans in perl |
|
|
Hi,
I've set some variables in dialplan XML and I want to call these variables in perl, i.e.
dialplan.xml
<action application="set" data="DIALEXCUTED=NO"/>
Also after executing in perl the value of this variable pass to dialplan.xml
Kindly tell me how to do this.
--
Regards,
Ahmed Munir |
|
Back to top |
|
|
mitch.capper at gmail.com Guest
|
Posted: Mon Sep 07, 2009 3:39 pm Post subject: [Freeswitch-users] Passing custom Dial Plans in perl |
|
|
I did not fully understand what you are saying. If you are saying you are running that in XML and want to access the value in perl then just $session->getVariable should work. If you are saying you are setting it in PERL and want to access it in dialplan XML afterwards the variables are accessable as if you set them in XML just remember that ALL expressions are evaluated at the start of an XML Plan, so if you change a variable used in those expressions it will not be picked up.
~Mitch
On Mon, Sep 7, 2009 at 4:51 AM, Ahmed Munir <ahmedmunir007@gmail.com (ahmedmunir007@gmail.com)> wrote:
|
|
Back to top |
|
|
msc at freeswitch.org Guest
|
Posted: Tue Sep 08, 2009 2:41 am Post subject: [Freeswitch-users] Passing custom Dial Plans in perl |
|
|
On Mon, Sep 7, 2009 at 1:51 AM, Ahmed Munir <ahmedmunir007@gmail.com (ahmedmunir007@gmail.com)> wrote:
Quote: | Hi,
I've set some variables in dialplan XML and I want to call these variables in perl, i.e.
dialplan.xml
<action application="set" data="DIALEXCUTED=NO"/>
Also after executing in perl the value of this variable pass to dialplan.xml
Kindly tell me how to do this. |
If you execute the set app prior to calling your script then the variable will be available with $session->getVariable("DIALEXECUTED");
If you modify the value inside your script then it will be available in dialplan but only if you transfer the call back through the dialplan again.
-MC |
|
Back to top |
|
|
|
|
|
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
|