<div dir="ltr">Dear All,<br><br>Please find below my dialplan:<br>[did]<br>exten=>112,1,AGI(dial.pl|${EXTEN});<br>exten => 112,1,Dial(SIP/${<a href="mailto:DestNo%7D@80.169.210.181">DestNo}@80.169.210.181</a>,60)<br>
exten=>112,3,Hangup();<br><br>And below are commands results sent by steve:<br><br>[root@switch1 ~]# sudo su<br>[root@switch1 ~]# /etc/init.d/asterisk restart<br>Shutting down asterisk: [ OK ]<br>Starting asterisk: [ OK ]<br>
[root@switch1 ~]# ps -aef | grep asterisk | grep -v grep<br>root 10470 1 0 22:18 pts/0 00:00:00 /bin/sh /usr/sbin/safe_asterisk<br>root 10473 10470 0 22:18 pts/0 00:00:00 /usr/sbin/asterisk -f -vvvg -c<br>
[root@switch1 ~]# ls -l /var/lib/asterisk/agi-bin/dial.pl<br>-rwxrwxrwx 1 root root 1865 Feb 20 21:18 /var/lib/asterisk/agi-bin/dial.pl<br>[root@switch1 ~]# head -1 /var/lib/asterisk/agi-bin/dial.pl<br>#!user/bin/perl<br>
<br><br>The file dial.pl is executable as you can see below:<br><br>-rwxrwxrwx 1 root root 1865 Feb 20 21:18 dial.pl<br><br>Regards<br><br><div class="gmail_quote">On Fri, Feb 20, 2009 at 10:15 PM, Steve Edwards <span dir="ltr"><<a href="http://asterisk.org">asterisk.org</a>@<a href="http://sedwards.com">sedwards.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Fri, 20 Feb 2009, michel freiha wrote:<br>
<br>
</div><div class="Ih2E3d">> I'm facing the below problem:<br>
</div>> == dial.pl|112: Failed to execute '/var/lib/asterisk/agi-bin/dial.pl': No<br>
> such file or directory<br>
><br>
<div class="Ih2E3d">> What could be the issue here?<br>
<br>
</div>These commands may point you in the right direction:<br>
<br>
1) ps -aef | grep asterisk | grep -v grep<br>
<br>
2) ls -l /var/lib/asterisk/agi-bin/dial.pl<br>
<br>
3) head -1 /var/lib/asterisk/agi-bin/dial.pl<br>
<br>
Also, note that you copied the "example" dialplan snippet verbatim. The<br>
script as provided does not look at the "passed extension," it looks at<br>
the AGI environment variable.<br>
<br>
A suggestion -- you should not be logging in as root. You should be using<br>
the "sudo" command.<br>
<div><div></div><div class="Wj3C7c"><br>
Thanks in advance,<br>
------------------------------------------------------------------------<br>
Steve Edwards <a href="mailto:sedwards@sedwards.com">sedwards@sedwards.com</a> Voice: +1-760-468-3867 PST<br>
Newline Fax: +1-760-731-3000<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>