[Freeswitch-users] Passing custom Dial Plans in perl

Michael Collins msc at freeswitch.org
Tue Sep 8 00:34:03 PDT 2009


On Mon, Sep 7, 2009 at 1:51 AM, Ahmed Munir <ahmedmunir007 at gmail.com> wrote:

> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090908/3fdef91a/attachment-0002.html 


More information about the FreeSWITCH-users mailing list