Dial Plan Action Perl Example
About
The following is an example of how you can have Perl assume the role of your dial plan.
Script requirements
* mod_perl
Example script
<?xml version="1.0" encoding="utf-8"?>
<\!--
In this XML file (/usr/local/freeswitch/conf/dialplan/default.xm),
we're passing everything over to a perl script called "controller.pl".
by Kareem Hamdy 2009-01-21
--\>
<include>
<context name="default">
<extension name="perl_ivr">
<condition field="destination_number" expression=".">
<action application="perl" data="/usr/local/freeswitch/conf/controller.pl" />
</condition>
</extension>
</context>
</include>