Dial.pl is 1. executable 2. owned by asterisk 3. passed perl syntax (perl -wc dial.pl)
_____ From: [email protected] [mailto:[email protected]] On Behalf Of michel freiha Sent: Friday, February 20, 2009 1:41 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] AGI script Dear Sir, I'm facing the below problem: -- Executing [...@did:1] AGI("SIP/123456-08f44c00", "dial.pl|112") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/dial.pl == dial.pl|112: Failed to execute '/var/lib/asterisk/agi-bin/dial.pl': No such file or directory == Auto fallthrough, channel 'SIP/123456-08f44c00' status is 'UNKNOWN' The file dial.pl is already created and exist in the correct location as you can see below: [r...@switch1 agi-bin]# ls agi-test.agi ani.agi dial.pl directory.agi eagi-sphinx-test eagi-test helloworld.php jukebox.agi micho.php my_agi.log [r...@switch1 agi-bin]# pwd /var/lib/asterisk/agi-bin [r...@switch1 agi-bin]# What could be the issue here? Thanks a lot for help On Fri, Feb 20, 2009 at 3:30 PM, Yawar Hadi <[email protected]> wrote: okay this is the dial plan u can test it and let me know if u want more information ... and script is attached. exten=>112,1,AGI(DialNumber.pl|${EXTEN}); exten=>112,2,Dial(SIP/Terminator/${DestNo}|); exten=>112,3,Hangup(); on second in place of termeinator u have to use the ip of terminator to which u r sending ur traffic.if u want to call sip sip of from one soft phone to second soft phone then remoce /terminator ok... like (SIP/${DestNo}) mail be back if any problem. On Fri, Feb 20, 2009 at 1:07 PM, michel freiha <[email protected]> wrote: Dear Yawar, I'll appreciate a lot if you send to me these scripts in order to test Regards On Fri, Feb 20, 2009 at 5:58 AM, Yawar Hadi <[email protected]> wrote: i have in perl AGI script if u want then let me know ...? On Fri, Feb 20, 2009 at 4:59 AM, Steve Edwards <[email protected]> wrote: On Fri, 20 Feb 2009, michel freiha wrote: > I need the following....A customer will dial a specific number like 112,this > will fire a php AGI script...The AGI script will connect to the database and > see if this number (112) is registered in a specific table...If yes, AGI > script will return to asterisk a destination number registered in that table > and match the 112 then asterisk will dial out the number fetched > > Please let me know if you need any other information 1) How much are you paying for us to do your work? 2) Shouldn't this be on -biz? Thanks in advance, ------------------------------------------------------------------------ Steve Edwards [email protected] Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Best regards Yawar Hadi Noshahi QAU Islamabad (+92-0300-5504798) _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Best regards Yawar Hadi Noshahi QAU Islamabad (+92-0300-5504798) _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
