Thanks Salman.
Here is my cli debug when run agi:
-- Launched AGI Script /var/lib/asterisk/agi-bin/testAGI.php
-- SIP/101-0007AGI Script testAGI.php completed, returning 0
and here is my php agi source code:
#!/usr/bin/php -q
?php
error_reporting(E_ALL);
ob_implicit_flush(false);
...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Muhammad
Sent: Sunday, January 20, 2013 6:46 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] AGI command
Thanks Salman.
Here is my cli debug when run agi
On 20/1/13 4:15 pm, Eric Wieling wrote:
Personally, I use the PHPAGI library and don't worry about all the low level
stuff.
This. It also gives you a nice logging function you can use to output
debug information to the asterisk CLI so you don't have to kill and
start asterisk interactively.
*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
Thanks Steve.
but explain me more about your dialplan codes. Im a beginner.
exten = _X.,1,NOOP(Invoking AGI Script now)
what is Invoking AGI Script now and what should I do in this method?
what is _X. it seems it is dynamic extension number.
and n?
Thanks
On Wed, Jan 16, 2013 at 11:12 AM,
You seriously need to go through Asterisk text books available online or
at-least read the manual.
NoOP is just a No Operation, so its just printing text in your case.
To execute an AGI you need to call it from dialpan like exten =
_X.,n,AGI(name_of_AGI), agi should be appropriate directory,
On Wed, 16 Jan 2013, Zohair Raza wrote:
Make sure Asterisk has access to your AGI script, and make it executable
(chmod u+x agi.php). Also make sure it has shebang (!#/usr/bin/php)
Make sure that the user executing the Asterisk process can execute your
script. Ownership (user and group),
***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.
Here is my php code:
#!/usr/bin/php -q
?php
error_reporting(E_ALL);
ob_implicit_flush(false);
set_time_limit(6);
$stdin =
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
Hi,
in CLI, I type agi show or other agi commad, but response me command not
found.
How can see agi is work normally in my server?
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join
you need to run full command, like
agi show commands topic answer
agi show commands topic gosub
agi set debug on
Regards,
Zohair Raza
On Tue, Jan 15, 2013 at 1:05 PM, Muhammad mohammad.ghaz...@gmail.comwrote:
Hi,
in CLI, I type agi show or other agi commad, but response me command not
*Thanks Zohair!
I wrote some php code to working with AGI, but it dosen't work.
I don't know how can run it. please explain me when I put my php code inside
/var/lib/asterisk/agi-bin so, what should I do after that. and the second
one, how can limit users to call just my number in list at
On Wed, Jan 16, 2013 at 11:01 AM, Muhammad mohammad.ghaz...@gmail.comwrote:
*Thanks Zohair!
I wrote some php code to working with AGI, but it dosen't work.
*
*I don't know how can run it. please explain me when I put my php code inside
/var/lib/asterisk/agi-bin so, what should I do after
Hi,
Please see my comments in line.
Regards,
Sammy
On Wed, Jan 16, 2013 at 12:13 PM, Zohair Raza
engineerzuhairr...@gmail.comwrote:
On Wed, Jan 16, 2013 at 11:01 AM, Muhammad mohammad.ghaz...@gmail.comwrote:
*Thanks Zohair!
I wrote some php code to working with AGI, but it dosen't work.
On Wed, 16 Jan 2013, Muhammad wrote:
I wrote some php code to working with AGI, but it dosen't work.
When you say 'doesn't work' do you mean 'doesn't do what I want' or 'does
not execute?'
If you enable AGI debugging, what does the Asterisk console log look like?
Did you use an
Hi all,
Does anybody know why my asterisk doesn't have a show agi command?
Do I have to load any module for it?
Thanks
Ronaldo.
___
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options
Hi all,
Greetings,
Does anybody know why my asterisk doesn't have a show agi command?
Do I have to load any module for it?
It's definitely in there in the source in res_agi.c. My res directories have
their own Makefiles, and it looks like menuselect has an option for
res_agi.c to be
.
Specifically, X is not a digit, you must either use for no
interuptions permitted or use 0123456789 for all digits available to
interupt.
I also 'discovered' that you cannot send a sequence of commands to
asterisk without
reading the results between each command submission. Similar to the
I'm running Asterisk CVS-v1-0-12/28/04
I use a short php agi script to get the temperature from an opto22 module.
STREAM FILE temperature does nothing, but SAY NUMBER works fine.
What am I doing wrong?
#!/usr/bin/php -q
?
$output = @shell_exec('eiocl 192.168.10.212 2001 10 44 r ap');
$words =
On Mon, 2005-02-07 at 15:18 -0500, Paul Zimm wrote:
I'm running Asterisk CVS-v1-0-12/28/04
I use a short php agi script to get the temperature from an opto22 module.
STREAM FILE temperature does nothing, but SAY NUMBER works fine.
What am I doing wrong?
#!/usr/bin/php -q
?
$output =
20 matches
Mail list logo