Dear list,<br>I am trying perl esl by this link<br><a href="http://wiki.freeswitch.org/wiki/Perl_ESL">http://wiki.freeswitch.org/wiki/Perl_ESL</a> <br clear="all">my dialplan is <br>&lt;extension name=&quot;ivrd-example1&quot;&gt;<br>
   <br>&lt;condition field=&quot;destination_number&quot; expression=&quot;^99$&quot;&gt;<br>     &lt;action application=&quot;log&quot; data=&quot;INFO Let&#39;s do some ivrd, shall we?&quot;/&gt;<br>     &lt;action application=&quot;set&quot; data=&quot;ivr_path=/usr/local/freeswitch/conf/<a href="http://ivr1.pl">ivr1.pl</a>&quot;/&gt;<br>
     &lt;action application=&quot;socket&quot; data=&quot;<a href="http://127.0.0.1:9090">127.0.0.1:9090</a> full&quot;/&gt;<br>   &lt;/condition&gt;                     <br> &lt;/extension&gt;<br><br>when i call to the freeswitch box it reads the ivr file and hangs up the call and even doesn&#39;t print the line &quot;Starting ivrd-hello_world.pl...\n\n&quot; as written in <a href="http://ivr1.pl">ivr1.pl</a><br>
<br>2010-07-19 11:43:35.352121 [INFO] mod_dptools.c:984 Let&#39;s do some ivrd, shall we?<br>EXECUTE sofia/external/<a href="mailto:5555@74.55.234.106">5555@74.55.234.106</a> set(ivr_path=/usr/local/freeswitch/scripts/<a href="http://ivr1.pl">ivr1.pl</a>)<br>
2010-07-19 11:43:35.352121 [DEBUG] mod_dptools.c:854 sofia/external/<a href="mailto:5555@74.55.234.106">5555@74.55.234.106</a> SET [ivr_path]=[/usr/local/freeswitch/scripts/<a href="http://ivr1.pl">ivr1.pl</a>]<br>EXECUTE sofia/external/<a href="mailto:5555@74.55.234.106">5555@74.55.234.106</a> socket(<a href="http://127.0.0.1:9090">127.0.0.1:9090</a> full)<br>
2010-07-19 11:43:35.360110 [NOTICE] switch_core_state_machine.c:185 sofia/external/<a href="mailto:5555@74.55.234.106">5555@74.55.234.106</a> has executed the last dialplan instruction, hanging up.<br>2010-07-19 11:43:35.360110 [DEBUG] switch_channel.c:2261 (sofia/external/<a href="mailto:5555@74.55.234.106">5555@74.55.234.106</a>) Callstate Change RINGING -&gt; HANGUP<br>
<br><br>my <a href="http://ivr1.pl">ivr1.pl</a> is <br><br>#!/usr/bin/perl<br>#<br># <a href="http://ivrd-hello_world.pl">ivrd-hello_world.pl</a>                 <br>#<br># Launched from FreeSWITCH using socket app and ${ivr_path} variable<br>
#<br>use strict;<br>use warnings;<br><br># Use lib is easy, but you can also install your ESL.pm and esl/perl/ESL/* into site_perl<br>use lib &#39;/root/freeswitch/libs/esl/perl&#39;;  <br>use ESL::IVR<br>                        <br>
$| = 1;        # Turn off buffering<br>select STDERR; # We&#39;ll take this stream, thanks<br>print &quot;Starting ivrd-hello_world.pl...\n\n&quot;;<br><br>## Set the root dir for sound files<br>my $sound_root = &#39;/usr/local/freeswitch/sounds/en/us/callie&#39;;<br>
                         <br>## Create the connection object which is basically an IVR<br>my $con = new ESL::IVR;  <br><br>## Get this channel&#39;s uuid and dialed number<br>my $uuid = $con-&gt;{_uuid};<br>my $dest = $con-&gt;getVar(&#39;destination_number&#39;};<br>
                         <br>## Answer call, sleep for half second to let media get up and running<br>$con-&gt;execute(&#39;answer&#39;,&#39;&#39;,$uuid);<br>$con-&gt;execute(&#39;sleep&#39;,&#39;500&#39;);<br>                                                                                           <br>
## Play a simple greeting        <br>$con-&gt;playback(&#39;/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-welcome_to_freeswitch.wav&#39;); <br><br>## Tell the call what he/she dialed<br>$con-&gt;execute(&#39;sleep&#39;,&#39;500&#39;);<br>
$con-&gt;execute(&#39;say&#39;, &quot;en number iterated $dest&quot;);<br><br>## Politely disconnect             <br>$con-&gt;execute(&#39;sleep&#39;,&#39;1000&#39;);<br>$con-&gt;playback(&#39;/usr/local/freeswitch/sounds/en/us/callie/ivr/8000/ivr-thank_you.wav&#39;);<br>
$con-&gt;execute(&#39;sleep&#39;,&#39;500&#39;);<br>$con-&gt;playback(&#39;voicemail/vm-goodbye.wav&#39;);<br><br>-- <br><br>Can any one suggest me from where i  am going wrong.<br>