Re: [asterisk-users] AGI command

2013-01-20 Thread Muhammad
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);

Re: [asterisk-users] AGI command

2013-01-20 Thread Eric Wieling
...@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

Re: [asterisk-users] AGI command

2013-01-20 Thread Chris Bagnall
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.

Re: [asterisk-users] AGI command

2013-01-19 Thread Muhammad
*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

Re: [asterisk-users] AGI command

2013-01-19 Thread Muhammad
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,

Re: [asterisk-users] AGI command

2013-01-19 Thread Salman Zafar
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,

Re: [asterisk-users] AGI command

2013-01-16 Thread Steve Edwards
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),

Re: [asterisk-users] AGI command

2013-01-16 Thread Muhammad
***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 =

Re: [asterisk-users] AGI command

2013-01-16 Thread Steve Edwards
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

[asterisk-users] AGI command

2013-01-15 Thread Muhammad
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

Re: [asterisk-users] AGI command

2013-01-15 Thread Zohair Raza
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

Re: [asterisk-users] AGI command

2013-01-15 Thread Muhammad
*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

Re: [asterisk-users] AGI command

2013-01-15 Thread Zohair Raza
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

Re: [asterisk-users] AGI command

2013-01-15 Thread SamyGo
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.

Re: [asterisk-users] AGI command

2013-01-15 Thread Steve Edwards
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

[asterisk-users] AGI command

2007-06-18 Thread Ronaldo Z. Afonso
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

Re: [asterisk-users] AGI command

2007-06-18 Thread Martin B. Smith
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

Re: [Asterisk-Users] agi command 'stream file' not working?

2005-02-08 Thread Paul Zimm
. 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

[Asterisk-Users] agi command 'stream file' not working?

2005-02-07 Thread Paul Zimm
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 =

Re: [Asterisk-Users] agi command 'stream file' not working?

2005-02-07 Thread Steven Critchfield
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 =