Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] Passing custom Dial Plans in perl


 
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: Mon Sep 07, 2009 4:01 am    Post subject: [Freeswitch-users] Passing custom Dial Plans in perl Reply with 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. 
--
Regards,

Ahmed Munir
Back to top
mitch.capper at gmail.com
Guest





PostPosted: Mon Sep 07, 2009 3:39 pm    Post subject: [Freeswitch-users] Passing custom Dial Plans in perl Reply with quote

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:
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. 
--
Regards,

Ahmed Munir



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
msc at freeswitch.org
Guest





PostPosted: Tue Sep 08, 2009 2:41 am    Post subject: [Freeswitch-users] Passing custom Dial Plans in perl Reply with quote

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
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