<div dir="ltr">if that is the case then check again Perl Asterisk AGI.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 28, 2014 at 7:33 PM, Haley,Scott A <span dir="ltr"><<a href="mailto:scott.haley@edwardjones.com" target="_blank">scott.haley@edwardjones.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">One more thing. I have this exact same script working on an Asterisk 1.8 box. This is a new Asterisk 11.7 box.<br>
<div class="im HOEnZb"><br>
Thanks,<br>
Scott Haley<br>
5-2244<br>
<br>
<br>
-----Original Message-----<br>
</div><div class="im HOEnZb">From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Haley,Scott A<br>
</div><div class="HOEnZb"><div class="h5">Sent: Monday, April 28, 2014 12:32 PM<br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
Subject: Re: [asterisk-users] Trunk issue<br>
<br>
Here is the directory listing:<br>
<br>
[root@nxdasterisk-3 agi-bin]# ls -al<br>
total 12<br>
drwxr-xr-x. 2 asterisk asterisk 4096 Apr 28 12:11 .<br>
drwxr-xr-x. 12 asterisk asterisk 4096 Apr 28 12:26 ..<br>
-rwxrwxr-x. 1 asterisk asterisk 590 Apr 28 11:55 tbsdial.agi<br>
<br>
Thanks,<br>
Scott Haley<br>
5-2244<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Eric Wieling<br>
Sent: Monday, April 28, 2014 12:25 PM<br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
Subject: Re: [asterisk-users] Trunk issue<br>
<br>
<br>
Odd. AGI scripts should hang waiting for input when run from the CLI. They should not output anything. If the script is not set as executable you'd get an error.<br>
<br>
If you were not running it as the same user as asterisk runs as you should still get a different error.<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Haley,Scott A<br>
Sent: Monday, April 28, 2014 1:13 PM<br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
Subject: Re: [asterisk-users] Trunk issue<br>
<br>
It runs but hangs with the output of:<br>
perl tbsdial.agi 81101<br>
GET VARIABLE astexten<br>
<br>
<br>
Right now, it is a simple perl script. Here is the entire script.<br>
<br>
#!/usr/bin/perl<br>
<br>
<br>
use Asterisk::AGI;<br>
<br>
my $agi = new Asterisk::AGI;<br>
<br>
my $dialgroup1 = "DIALGROUP1";<br>
my $dialgroup2 = "DIALGROUP2";<br>
my $vmvariable = "VM";<br>
my $timer = "TIMER";<br>
my $branch = "BRANCH";<br>
my $input;<br>
my $dg1value;<br>
my $dg2value;<br>
my $vmvalue;<br>
my $branchvalue;<br>
<br>
<br>
<br>
$input = $agi->get_variable("astexten");<br>
<br>
#$agi->answer();<br>
#$agi->stream_file("welcome");<br>
<br>
<br>
<br>
<br>
<br>
<br>
$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");<br>
<br>
Thanks,<br>
Scott Haley<br>
5-2244<br>
<br>
<br>
<br>
<br>
<br>
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.<br>
<br>
If you do not wish to receive any email messages from us, excluding administrative communications, please email this request to <a href="mailto:messages@edwardjones.com">messages@edwardjones.com</a> along with the email address you wish to unsubscribe.<br>
<br>
For important additional information related to this email, visit <a href="http://www.edwardjones.com/US_email_disclosure" target="_blank">www.edwardjones.com/US_email_disclosure</a>. Edward D. Jones & Co., L.P. d/b/a Edward Jones, 12555 Manchester Road, St. Louis, MO 63131 © Edward Jones. All rights reserved.<br>
<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Eric Wieling<br>
Sent: Monday, April 28, 2014 12:07 PM<br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
Subject: Re: [asterisk-users] Trunk issue<br>
<br>
Does the script generate an error when run outside of Asterisk? An AGI should simply wait for input when run outside of Asterisk.<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Haley,Scott A<br>
Sent: Monday, April 28, 2014 1:04 PM<br>
To: Asterisk Users Mailing List - Non-Commercial Discussion<br>
Subject: Re: [asterisk-users] Trunk issue<br>
<br>
I am trying to run an agi script and asterisk is not finding it. The output of the cli is as follows:<br>
<br>
-- 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.<br>
<br>
The file is in that directory and is owned by the user "asterisk". Why does it say the file does not exist?<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> -- New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> -- New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> -- New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> -- New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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></div></div></blockquote></div><br></div>