[asterisk-users] AGI command
Muhammad
mohammad.ghazavi at gmail.com
Sat Jan 19 02:02:55 CST 2013
*Hi,
sorry to delay.**
here is my answers.
1) What does the Asterisk console log look like when you try to execute
the AGI?
**first let me know how can I execute the AGI?**
2) If you enter '/usr/bin/php -v', what do you get? I get:
**$ "php -v" give me:
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:37)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies**
**but not in path "/usr/bin/php -v"**
3) If you enter the following command in a shell, what do you get?
sudo -u asterisk /var/lib/asterisk/agi-bin/testAGI.php
**Asterisk already running on /var/run/asterisk/asterisk.ctl. Use
'asterisk -r' to connect.**
*
On Wed, Jan 16, 2013 at 8:33 PM, Steve Edwards <asterisk.org at sedwards.com>wrote:
> On Wed, 16 Jan 2013, Muhammad wrote:
>
> **When you say 'doesn't work' do you mean 'doesn't do what I want' or
>> 'does not execute?'
>>
>> I mean I do all steps in Mr. Nir presentation documents and not works.
>>
>
> Your PHP script executes correctly on my dev box, but I would change the
> log file path to something absolute like '/tmp/agi_log.log' so we know
> where it is.
>
> 1) What does the Asterisk console log look like when you try to execute
> the AGI?
>
> 2) If you enter '/usr/bin/php -v', what do you get? I get:
>
> PHP 5.1.6 (cli) (built: Feb 22 2012 19:34:21)
> Copyright (c) 1997-2006 The PHP Group
> Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
>
> 3) If you enter the following command in a shell, what do you get?
>
> sudo -u asterisk /var/lib/asterisk/agi-bin/**testAGI.php
> </dev/null
>
> (If you run Asterisk as another user, use that user name in the command
> above.)
>
> I get:
>
> PHP Notice: Undefined offset: 1 in /var/lib/asterisk/agi-bin/**testAGI.php
> on line 31
> STREAM FILE demo-congrats #
> SAY NUMBER 123456 #
>
> The 'notice' is because we passed an empty AGI environment.
>
>
> --
> Thanks in advance,
> ------------------------------**------------------------------**
> -------------
> Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867<https://2.177.142.31/_AMI/tidy.php?exten=147&number=%2B17604683867>PST
> Newline Fax: +1-760-731-3000<https://2.177.142.31/_AMI/tidy.php?exten=147&number=%2B17607313000>
>
> --
> ______________________________**______________________________**_________
> -- 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<http://lists.digium.com/mailman/listinfo/asterisk-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130119/d08ffa77/attachment.htm>
More information about the asterisk-users
mailing list