You have to read stdin to accept the data Asterisk sends when the AGI
starts before you can send any AGI commands to Asterisk. Also, "agi
set debug on".
On 6/30/23 21:52, TTT wrote:
I have an AGI script written in PHP that worked great with Asterisk 13.
I’m porting it to an Asterisk 20
I have an AGI script written in PHP that worked great with Asterisk 13. I'm
porting it to an Asterisk 20 site and have a strange problem. I tried
running the script from the command line and it works fine; I see the script
commands written to stdout like
VERBOSE "SmartScreen v1"
But
On Mon, 24 May 2021 at 18:41, Steve Edwards
wrote:
>
> If you're not using a library, you may want to consider it.
'Comma' is not a valid 'digit' so this the same as '#*0123456789'
>
I'm using ts-agi which has served me well. In the docs, it suggests
phonekeys is an array:
On Mon, 24 May 2021, Jonathan H wrote:
any idea why it was done like this, and why someone would ever need the
ascii result
Maybe because ABCD are valid DTMF events? Maybe because 0 means playback
completed, not a 0 was pressed?
IIRC there are some inconsistencies in the AGI API that I
Having been scratching my head the whole morning to find a bug, I now have
an A4 poster on the wall (not joking!) saying:
"get data" = *number*
"wait for digit" and "stream file" = *ascii !!!*
As you can see here:
AGI Rx << STREAM FILE "hello-world" "1,2,3,4,5,6,7,8,9,*,0,#"
AGI Tx >> 200
Hi All,
Does anyone have and can share with me an AGI script to dip thinQ for
cnam? oR perhaps dialplan curl using curlopts?
Thanks.
JR
--
JR Richardson
Engineering for the Masses
Chasing the Azeotrope
--
_
-- Bandwidth and
On 1/30/21 1:18 PM, Alexander Perkins wrote:
the PHP-AGI script fails after it is executed and simply returns
'returning 4'.
On Sat, 30 Jan 2021, Michal Rybarik wrote:
I think this can happen by hanging up the call by one party, when SIGHUP
is sent to AGI script. PHP will exit on SIGHUP. It
Dňa 30. 1. 2021 o 20:18 Alexander Perkins napísal(a):
> HI All. I have a really strange issue that I'm two months into
> troubleshooting; however, I cannot figure it out. I have an AGI
> Script (PHP) that runs every time a call comes into my Asterisk box.
> Most of the time, it runs without any
Out of RAM/swap?
j
On 1/30/21 1:18 PM, Alexander Perkins wrote:
HI All. I have a really strange issue that I'm two months into
troubleshooting; however, I cannot figure it out. I have an AGI
Script (PHP) that runs every time a call comes into my Asterisk box.
Most of the time, it runs
HI All. I have a really strange issue that I'm two months into
troubleshooting; however, I cannot figure it out. I have an AGI Script
(PHP) that runs every time a call comes into my Asterisk box. Most of the
time, it runs without any issue. However, every now and then, the PHP-AGI
script fails
On 12/27/2019 2:56 PM, Jonathan H wrote:
OK, that works - looks like a documentation bug? (Also very confusing!)
Should I report it on the page at
https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+AGICommand_get+full+variable or
on the main tracker?
These wiki pages are automatically
OK, that works - looks like a documentation bug? (Also very confusing!)
Should I report it on the page at
https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+AGICommand_get+full+variable
or
on the main tracker?
Many thanks - couldn't figure out what was wrong!
On Fri, 27 Dec 2019 at 19:36,
On 12/27/2019 2:24 PM, Jonathan H wrote:
AGI Rx << SET VARIABLE myVar "Hello
World!!!"
AGI Tx >> 200 result=1
AGI Rx << GET FULL VARIABLE myVar
AGI Tx >> 200 result=1 (myVar)
Is this a bug, poor documentation, or my poor understanding of them?
I believe the syntax you are looking for is:
Just trying out a node agi package (https://github.com/sergey12313/ts-agi/ ,
and it wasn't behaving as I expected, but when turning on agi debug, it
looks like it might be Asterisk (using 17.1.0)
This works as expected
AGI Rx << SET VARIABLE myVar "Hello World!!!"
AGI Tx >> 200 result=1
AGI Rx
On Mon, Oct 21, 2019, at 2:34 PM, Gee Jacobs wrote:
> Hi,
>
> I am struggling with DTMF detection in Asterisk 16.3.
>
> With the Asterisk read dialplan command I get excellent detection. With
> the AGI GET DATA function the DTMF detection is however often bad.
>
> Is the underlying DTMF
Hi,
I am struggling with DTMF detection in Asterisk 16.3.
With the Asterisk read dialplan command I get excellent detection. With the AGI
GET DATA function the DTMF detection is however often bad.
Is the underlying DTMF detection code the same in both functions?
Thanks for your help.
Best
Sorry you know i'm student and i'm the end of my studies i must present a
memory on taxing voip services
Le mar. 18 sept. 2018 à 19:11, Matthew Fredrickson a
écrit :
> Hey,
>
> I would suggest starting a new thread with this question instead of
> inserting this into another existing thread like
Hey,
I would suggest starting a new thread with this question instead of
inserting this into another existing thread like this.
Matthew Fredrickson
On Tue, Sep 18, 2018, 11:16 AM modou lo wrote:
> Please can i ask you i want to know which code can help me to provide the
> taxation of
Please can i ask you i want to know which code can help me to provide the
taxation of voip/toip services in asterisk
Le mar. 18 sept. 2018 à 01:36, Patrick Wakano a écrit :
> Thanks everyone for the answers!
> I did explored some options at the PHP level and probably will do
> something in this
Thanks everyone for the answers!
I did explored some options at the PHP level and probably will do something
in this direction, but in fact what I was really looking was something in
the Asterisk side, not in the script side.
Because in my opinion regardless of the language or AGI type, Asterisk
I don't know AGIspeedy, but I have some PHP scripts where I set a
connect timeout using streams.
Example using https, but should be easily adaptable to non-s http.:
$pbxsh_bin = @file_get_contents("https://blah.blah.blah;, FALSE,
@stream_context_create(array('https' => array('timeout' => 5,
On 9/13/2018 8:04 PM, Patrick Wakano wrote:
Hello list,
Hope you all doing well!
Recently, I had an issue with a FastAGI PHP script, which under some
specific situation would run into an infinity loop, consuming all CPU
resources. This also was preventing Asterisk to terminated the call
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf
Of Patrick Wakano
Sent: Thursday, September 13, 2018 09:05 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] AGI timeout option
Hello list,
Hope you all doing well!
Recently, I had an issue
Hello list,
Hope you all doing well!
Recently, I had an issue with a FastAGI PHP script, which under some
specific situation would run into an infinity loop, consuming all CPU
resources. This also was preventing Asterisk to terminated the call
properly because it was waiting for the AGI to
On Fri, 23 Feb 2018, Saint Michael wrote:
Launched AGI Script /var/lib/asterisk/agi-bin/adddnc.php
adddnc.php: Failed to execute '/var/lib/asterisk/agi-bin/adddnc.php':
Permission denied
The file is of course chmod +x /var/lib/asterisk/agi-bin/*.php
This is how a sysadmin opened up a web
Launched AGI Script /var/lib/asterisk/agi-bin/adddnc.php
adddnc.php: Failed to execute '/var/lib/asterisk/agi-bin/adddnc.php':
Permission denied
The file is of course chmod +x /var/lib/asterisk/agi-bin/*.php
Selinux is disabled
asterisk is running as root with
live_dangerously=yes
in
-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jeff
LaCoursiere
Sent: Wednesday, April 12, 2017 1:09 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
<asterisk-users@lists.digium.com>
Subject: [asterisk-users] AG
List - Non-Commercial Discussion
<asterisk-users@lists.digium.com>
Subject: [asterisk-users] AGI Exec Voicemail
Hi,
I have a voicemail broadcast AGI that has been running fine for years - it
collects extensions and then EXECs the Voicemail app, like this:
EXEC Voicemail \&quo
Hi,
I have a voicemail broadcast AGI that has been running fine for years -
it collects extensions and then EXECs the Voicemail app, like this:
EXEC Voicemail \"%s\"
(%s is the extension list like AAA etc)
This works fine, but after leaving the message and pressing "#", I just
get "Thank
Arrrgh! You are correct, of course. I hadn't realised you could do it
that way - I was assuming it was a variable that was returned to the
dialplan/channel.
Some of the finer points of AGI are still a slight mystery to me!
Thank you very much - working perfectly now, with your help and the
On Mon, 10 Oct 2016, at 22:47, Jonathan H wrote:
> For reasons best known to myself, I call a python agi (PYST2 - love
> it!) which streams a series of very short files in quick succession.
>
> Like this:
>
> escape_digits = str("0")
> agi.stream_file(promptFile,escape_digits)
>
> and this is
For reasons best known to myself, I call a python agi (PYST2 - love
it!) which streams a series of very short files in quick succession.
Like this:
escape_digits = str("0")
agi.stream_file(promptFile,escape_digits)
and this is what I see on the AGI debug:
AGI Tx >> 200 result=0 endpos=6784
AGI
Hello,
I need to leave an audio running in the background while other commands are
executed. I have an AGI that does some checks and tamed around a5s, need
to leave a audio running in the meantime. Does anyone know any
way? already I tried hard and so far nothing.
I tried to tip below using
From inside a Perl script, Asterisk 1.4, I am trying to get this information
$xipaddress = $AGI-get_full_variable('CHANNEL(recvip)');
or using pan get_variable
But I get nothing. How do I read the IP address of origin from an AGI Perl
script?
I cannot update the version, for this is an old system
I'm writing some code that needs to access AMI in PHP. (I'll probably be
doing AGI later as well.)
I'm looking at phpagi (2.20), but it hasn't been updated since 2010 and
appears to be a bit behind current Asterisk -- No event handler for event
'fullybooted'.
What PHP framework/library are
To: Asterisk Users Mailing List
Subject: [asterisk-users] AGI and AMI in PHP -- What's current?
I'm writing some code that needs to access AMI in PHP. (I'll probably be
doing AGI later as well.)
I'm looking at phpagi (2.20), but it hasn't been updated since 2010 and
appears to be a bit behind
On Tue, 18 Nov 2014, Eric Wieling wrote:
Other than a few minor patches, we use stock phpagi.
Can you spare me a flat spot on my forehead and share the wealth?
--
Thanks in advance,
-
Steve Edwards
On Tue, 18 Nov 2014, Eric Wieling wrote:
diff at http://pastebin.com/wfDR6u0a
--
Thanks in advance,
-
Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST
Newline
Den 2014-11-18 21:33, Steve Edwards skrev:
I'm writing some code that needs to access AMI in PHP. (I'll probably be
doing AGI later as well.)
I'm looking at phpagi (2.20), but it hasn't been updated since 2010 and
appears to be a bit behind current Asterisk -- No event handler for
event
Am 02.09.2014 07:09, schrieb Bryant Zimmerman:
Hey All
We have several AGI scripts that access databases. These work well
most of the time.
The issue we are having is that on rare occasion our script must fail
to a backup database server.
When this occurs it may take up to two seconds to do
Hey All
We have several AGI scripts that access databases. These work well most of
the time.
The issue we are having is that on rare occasion our script must fail to a
backup database server.
When this occurs it may take up to two seconds to do so. The issue is
when there is this
[mailto:asterisk-users-boun...@lists.digium.com
mailto:asterisk-users-boun...@lists.digium.com] *On Behalf Of
*Rafael Visser
*Sent:* Tuesday, August 12, 2014 7:24 PM
*To:* Asterisk Users Mailing List - Non-Commercial Discussion
*Subject:* Re: [asterisk-users] agi get_data
*Subject:* [asterisk-users] agi get_data noanswer
Hi Guys..
I am making an anoucement machine that is not allowed to answer the call
due to a billing issue.
I found that Playback with noanwser is usefull in this case.
$AGI-exec('Playback',$message,noanswer)}
But when i request some values
Discussion
Subject: Re: [asterisk-users] agi get_data noanswer
Eric is correct. There is no way to send dtmf while the call has not been
answered.
But us very confusing the read command, in specific option = n(noanswer) to
read digits even if the line is not up
My AGI line is the following
$AGI
] *On Behalf Of *Rafael Visser
*Sent:* Tuesday, August 12, 2014 7:24 PM
*To:* Asterisk Users Mailing List - Non-Commercial Discussion
*Subject:* Re: [asterisk-users] agi get_data noanswer
Eric is correct. There is no way to send dtmf while the call has not been
answered.
But us very
Hi Guys..
I am making an anoucement machine that is not allowed to answer the call
due to a billing issue.
I found that Playback with noanwser is usefull in this case.
$AGI-exec('Playback',$message,noanswer)}
But when i request some values to the user with get_data, i think there is
an answer
: Thursday, August 07, 2014 4:56 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] agi get_data noanswer
Hi Guys..
I am making an anoucement machine that is not allowed to answer the call due
to a billing issue.
I found that Playback with noanwser
Mailing List - Non-Commercial Discussion
*Subject:* [asterisk-users] agi get_data noanswer
Hi Guys..
I am making an anoucement machine that is not allowed to answer the call
due to a billing issue.
I found that Playback with noanwser is usefull in this case.
$AGI-exec('Playback',$message
-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Rafael Visser
Sent: Thursday, August 07, 2014 4:56 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] agi get_data noanswer
Hi Guys..
I am making an anoucement machine
Hi,
I have a question about this here:
Asterisk-Version: 11.10.2
File: res/res_agi.c
Line: 2377
[...]
static int handle_recordfile(struct ast_channel *chan, AGI *agi, int
argc, const char * const argv[])
2304 {
2305 struct ast_filestream *fs;
2306 struct ast_frame *f;
2307
I am working on an AGI script and all is going well except I can not get
any of my VERBOSE commands to display.
Is there any undocumented reason for this to occur? I am able to set
variables, call other commands ect..
I am sending my verbose command in the following format (VERBOSE
what if yoy change the verbose on the cli?
cli core set verbose 4
and then try again
i usually put on my perl agi something like
$verbose=5;
AGI-verbose(the number is $number, $verbose);
hope it helps.
rv
2014-06-27 11:24 GMT-04:00 Bryant Zimmerman brya...@zktech.com:
I am working on an
Hey all
Please disregard my question. I was looking for the word Verbose to show
up. I was just being dense.
There was no real issue it is working just different than what I was
expecting.
Thanks
Bryant
From: Bryant Zimmerman
Hello,
Yes, it is fairly simple, really.
And I found out about the return code of Asterisk enabling the agi
debugging, precisely.
The documentation of the GET DATA entry specifies that Asterisk should
either return -1, nothing, or the actual result of what the user
entered, but never 0, am I
Le 30/04/2014 13:10, Thorsten Göllner a écrit :
Is your script really so simple?
Enable agi debugging (agi set debug on) and take look at it when this
happens.
On Thu, 1 May 2014, Hoggins! wrote:
Yes, it is fairly simple, really.
The problem is that Asterisk's behavior is not constant :
Hello all,
I have a strange problem with a very simple AGI script, using the GET
DATA command.
When using this command, Asterisk often returns 0 as a result after a
GET DATA beep 5000 command, without even waiting for input from the
calling party.
It is quite random : sometimes Asterisk behaves
Is your script really so simple?
Enable agi debugging (agi set debug on) and take look at it when this
happens.
-Thorsten-
Am 30.04.2014 11:47, schrieb Hoggins!:
Hello all,
I have a strange problem with a very simple AGI script, using the GET
DATA command.
When using this command,
Discussion
Subject: [asterisk-users] AGI Script not working
I have a Perl AGI script updating some values to database like recorded
file path, unique ID and callerid. When I run the script with test
dialplan, its not updating to database.
Whereas database connection is fine, when I run agi
- Non-Commercial Discussion
Subject: [asterisk-users] AGI Script not working
I have a Perl AGI script updating some values to database like recorded
file path, unique ID and callerid. When I run the script with test
dialplan, its not updating to database.
Whereas database connection is fine, when
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [asterisk-users] AGI Script not working
I have a Perl AGI script updating some values to database like recorded file
path, unique ID and callerid. When I run the script with test dialplan, its not
updating to database.
Whereas database
I have a Perl AGI script updating some values to database like recorded
file path, unique ID and callerid. When I run the script with test
dialplan, its not updating to database.
Whereas database connection is fine, when I run agi debug I see only Tx
packets not Rx packets, firewall is also OFF.
Hi
Does anyone know what the different return codes from AGI script
execution mean? I'm getting a lot of
AGI Script script-name completed, returning 4
I'm using asterisk 1.8.7.0
Thanks in advance
--
Ishfaq Malik i...@pack-net.co.uk
Department: VOIP Support
Company: Packnet Limited
t: +44
On Wednesday 20 March 2013, Ishfaq Malik wrote:
Hi
Does anyone know what the different return codes from AGI script
execution mean? I'm getting a lot of
AGI Script script-name completed, returning 4
I'm using asterisk 1.8.7.0
Thanks in advance
You need to check the exit statements
On Wed, 2013-03-20 at 11:07 +, A J Stiles wrote:
On Wednesday 20 March 2013, Ishfaq Malik wrote:
Hi
Does anyone know what the different return codes from AGI script
execution mean? I'm getting a lot of
AGI Script script-name completed, returning 4
I'm using asterisk 1.8.7.0
On 20/03/2013, at 10:15 PM, Ishfaq Malik i...@pack-net.co.uk wrote:
I wrote the script! I've not put exit status values in it either.
I've been having a look the source for res_agi_c (as a non c coder) and
there is a variable called returnstatus which is instantiated with the
value
On Wed, 2013-03-20 at 22:32 +1100, Andrew Yager wrote:
On 20/03/2013, at 10:15 PM, Ishfaq Malik i...@pack-net.co.uk wrote:
I wrote the script! I've not put exit status values in it either.
I've been having a look the source for res_agi_c (as a non c coder) and
there is a variable
Hi Ishfaq,
On 20/03/2013, at 10:46 PM, Ishfaq Malik i...@pack-net.co.uk wrote:
On Wed, 2013-03-20 at 22:32 +1100, Andrew Yager wrote:
Hi Andrew
Thanks for the advice, I will look into it (I'm using php)
The script executes successfully over 99% of the time, it is run very
very
On Wed, 2013-03-20 at 22:52 +1100, Andrew Yager wrote:
Hi Ishfaq,
On 20/03/2013, at 10:46 PM, Ishfaq Malik i...@pack-net.co.uk wrote:
On Wed, 2013-03-20 at 22:32 +1100, Andrew Yager wrote:
Hi Andrew
Thanks for the advice, I will look into it (I'm using php)
The script executes
Hi ishfaq,
if you want just loging some info into db you can do in dialplan without
any AGI.
i am doing billing on the fly in dialplan and mysql for every single user
without AGI and enhanced call capacity almost double.
let me know you need some examples.
On Wed, Mar 20, 2013 at 12:56 PM, Ishfaq
On Wednesday 20 March 2013, Ishfaq Malik wrote:
I have an even simpler fix for this particular script. This one isn't
really a true AGI script, all it's doing is taking the arguments
presented to it and logging them in a db table.
I'm going to try the system command instead, should have done
Thanks,
You are right, the bash version should be:
#!bin/bash
#Get and spawn AGI variables
declare -a array
while read -e ARG [ $ARG ]; do
array=(` echo $ARG | sed -e 's/://'`)
export ${array[0]}={array[1]}
done
echo EXEC \Dial\ \DAHDI/g2/$agi_dnid\
#Get execution answer
answer=read
Hi,
Thank you. The reason I have not to use an AGI library and also use bash shells
is because the asterisk box I'm working on, have not AGI library, there is
installed on a basic first version of Centos, and it is not an asterisk pure
box. It's from a vendor, and also have some annoyances
Please don't top post.
On Fri, 15 Mar 2013, Gustavo Salvador wrote:
The reason I have not to use an AGI library and also use bash shells is
because the asterisk box I'm working on, have not AGI library, there is
installed on a basic first version of Centos, and it is not an asterisk
pure
Hi everybody,
Does any one knows how to place a call from a shell agi? I guess is something
like echo Exec Dial(DAHDI/g2/2010,,W). Algo how i get the dnid variable?
Thanks.
--
_
-- Bandwidth and Colocation Provided by
(A more specific subject may yield better answers -- better bait == better
fish.)
On Thu, 14 Mar 2013, Gustavo Salvador wrote:
Does any one knows how to place a call from a shell agi? I guess is
something like echo Exec Dial(DAHDI/g2/2010,,W).
While you can write an AGI in any language that
Hi, thanks.
.Did that include 'agi set debug on?'
Yes, that include this command.
Can you 'cut-n-paste' the relevant 'sanitized' console output?
Ok. This is:
trixbox146002*CLI
-- Launched AGI Script /var/lib/asterisk/agi-bin/agi-test.agi
trixbox146002*CLI
Hi every body,
Please if some one could help me with this:
I'm writing an AGU Perl Script which basically makes a call using an
extension provided by other asterisk box to an E1. The asterisk version is
1.6.0.28, so it hasn't the Wellington know AGI class. The code is as follows:
Might be a codec issue, try allow=all in your sip.conf
Sent from my iPhone
On 6 mrt. 2013, at 17:49, Gustavo Salvador
gustavo.salvador...@gmail.com wrote:
Hi every body,
Please if some one could help me with this:
I'm writing an AGU Perl Script which basically makes a call using an
Thanks,
But SIP uses the caller box to send the call to the second box where is running
the AGI script, the second box uses DAHDI to routes the call to E1. I've tested
the codec routing a call between a E1 extension and a local one with the
originate extension command and works.
So that is
On Wed, 6 Mar 2013, Gustavo Salvador wrote:
I'm writing an AGI Perl Script...
=
#!/usr/bin/perl
use strict;
my %AGI;
:
print EXEC Dial(DAHDI/g2/$AGI{dnid},,W);
=
Is this your entire script or just a snippet? If this is all, this is
Thanks Steve,
That was just a snippet, the complete script is as follow:
#!/usr/bin/perl
use strict;
$|=1;
# Setup some variables
my %AGI; my $tests = 0; my $fail = 0; my $pass = 0;
my $key; my $value;
while(STDIN) {
chomp;
last unless length($_);
if
Please don't top-post...
On 06/03/2013, at 13:24, Steve Edwards asterisk@sedwards.com
wrote:
Can you enable AGI debugging on the Asterisk console and see if that
yields any clues?
On Wed, 6 Mar 2013, Gustavo Salvador wrote:
I have run asterisk in verbose mode, and also set on the
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,
I'm trying to understand how AGI works.
I'm using php-agi library from sf.net.
*CLI agi show commands
Yes exec Executes a given Application
*CLI core show application set
My PHP-AGI script contains:
$AGI-exec(Set, CUSTOM_VAR=2);
$AGI-exec(NoOp, \DEBUG -
Never mind. Figured it out.
Sorry for the noise.
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
Hey, all. I'm interested in doing some simple, very specific web pages
for some of my users -- things like call groups, setting forwarding, and
for the receptionist to transfer calls and see calls. Probably do this
in Ruby or PHP, though I'm open-minded. Anyway, if someone could point
me to
1 - 100 of 1104 matches
Mail list logo