It runs but hangs with the output of: perl tbsdial.agi 81101 GET VARIABLE astexten
Right now, it is a simple perl script. Here is the entire script. #!/usr/bin/perl use Asterisk::AGI; my $agi = new Asterisk::AGI; my $dialgroup1 = "DIALGROUP1"; my $dialgroup2 = "DIALGROUP2"; my $vmvariable = "VM"; my $timer = "TIMER"; my $branch = "BRANCH"; my $input; my $dg1value; my $dg2value; my $vmvalue; my $branchvalue; $input = $agi->get_variable("astexten"); #$agi->answer(); #$agi->stream_file("welcome"); $agi->set_variable($dialgroup1, "$dg1value"); $agi->set_variable($dialgroup2, "$dg2value"); $agi->set_variable($vmvariable, "$vmvalue"); $agi->set_variable($timer, "$timervalue"); $agi->set_variable($branch, "$branchvalue"); Thanks, Scott Haley 5-2244 If you are not the intended recipient of this message (including attachments), or if you have received this message in error, immediately notify us and delete it and any attachments. If you do not wish to receive any email messages from us, excluding administrative communications, please email this request to messa...@edwardjones.com along with the email address you wish to unsubscribe. For important additional information related to this email, visit www.edwardjones.com/US_email_disclosure. Edward D. Jones & Co., L.P. d/b/a Edward Jones, 12555 Manchester Road, St. Louis, MO 63131 © Edward Jones. All rights reserved. -----Original Message----- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Eric Wieling Sent: Monday, April 28, 2014 12:07 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Trunk issue Does the script generate an error when run outside of Asterisk? An AGI should simply wait for input when run outside of Asterisk. -----Original Message----- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Haley,Scott A Sent: Monday, April 28, 2014 1:04 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Trunk issue I am trying to run an agi script and asterisk is not finding it. The output of the cli is as follows: -- Executing [s@tbs-utils:7] AGI("SIP/7002-0000001a", "tbsdial.agi") in new stack [Apr 28 12:00:05] WARNING[21812][C-0000000f]: res_agi.c:1681 launch_script: Failed to execute '/var/lib/asterisk/agi-bin/tbsdial.agi': File does not exist. The file is in that directory and is owned by the user "asterisk". Why does it say the file does not exist? -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello 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 -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users