Displaying 20 results from an estimated 3000 matches similar to: "AGI answering the channel even though I never asked it to"
2007 May 31
1
Passing call duration to an AGI Script
Hi,
I'm trying to find a way of passing the actual call duration (something like
ANSWEREDTIME) to an AGI
script that runs periodically during a call. Any ideas?
Thanks,
Adi.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070531/115b0aee/attachment.htm
2009 Mar 09
3
problem with an agi in PHP
Hello,
I need to execute an agi in php.
I have that:
== Using SIP RTP CoS mark 5
-- Executing [0170725000 at mnupprx1:1] Answer("SIP/33179977999-b6c18478",
"") in new stack
-- Executing [0170725000 at mnupprx1:2] GotoIf("SIP/33179977999-b6c18478",
"0?6:3)") in new stack
-- Goto (mnupprx1,0170725000,3)
-- Executing
2011 Apr 09
1
Is it the normal behaviore for AGI and DeadAGI to terminate AFTER the "h" extension?
Hi Everyone,
Trying to run a php script after DeadAGI for A2Billing does it's magic. This
is the dialplan:
[a2billing]
exten => _X.,1,System(php pre-call.php ${CALLERID(num)} ${EXTEN}
${UNIQUEID})
exten => _X.,n,AGI(a2billing.php,1)
exten => _X.,n,Hangup()
*exten => h,1,Wait(5)*
*exten => h,n,System(php post-call.php ${CALLERID(num)} ${UNIQUEID})*
As you can see above, I even
2007 Sep 15
2
AGI/PHP: missing arguments
hi folks,
I've built a simple PHP-script utilizing the AGI-interface. in
extensions.conf I trigger the script and pass a single value as first
argument:
exten => h,1,DeadAGI(process.php|${Enter})
On the Asterisk-console, I can actually see that the script is called
correctly (something like "DeadAGI(process.php|1234)"). However, when I read
stdin in the PHP script, I receive
2006 Feb 27
8
AGI Scripts Terminate too Soon
Ok, here's a weird one.
I have an AGI script where one user calls another. The call is answered. Everything is peachy. If the call is terminated by the CALLEE hanging up the call, then Asterisk returns control back to where the Dial() command left off, and I can check the return code of Dial(), ${DIALSTATUS} etc. That's all great.
HOWEVER, if the CALLER hangs up the call, it seems as if
2007 May 14
3
Proper AGI use with MySQL
Hi,
We have a "simple" AGI script that provides some IVR functionality. It connects to a MySQL database in order to create a call record and capture IVR data.
During the IVR process, we need to store the time the call started, so basically we INSERT a new MySQL row with callstart = NOW(), uniqueid = AGI(agi_uniqueid). As the user selects different options, we update the row to reflect
2005 May 25
15
PHP/AGI Problem
Hi
I am currently developing a IVR application using
PHP/AGI. I am using the PHPAGI class at
http://phpagi.sourceforge.net/ to handle the
commuication with my *.
The application basically asks a caller to enter in
some information which is then processed and a answer
is read back out to them. I want the application to
loop back to the beginning after giving the answer so
they can try another
2005 Mar 15
2
How to determine the voicemail file name for an AGI script
I've read several of the Wiki sections on Voicemail and "Asterisk
variables" but could not find an obvious answer to this question.
I would like to run a script that post-processes the voicemail after the
Voicemail application returns (with AGI or DeadAGI), but I cannot figure
out how to easily determine the name of the file written by the
Voicemail application. Does anyone
2007 Dec 07
2
PHP AGI script
I've got a very nice PHP AGI script but I want to be able to do some
database cleanup when the user hangs up the phone. I wish everyone would
hang up when they were suposed to, but some people don't. So what does
Asterisk send to an AGI file when the line has been disconnected? If I
remember reading somewhere correctly, I don't need to use DeadAGI. Instead
I'm able to use
2006 Mar 20
4
simple perl-agi - where's the error?
Hello!
I'm trying to setup a perl-deadagi, but my perl skills lack. can
someone tell me why the following code doesn't work:
#!/usr/bin/perl
use Asterisk::AGI;
$AGI = new Asterisk::AGI;
$dialstring = $AGI->get_variable("DIALSTRING");
$res = $AGI->exec("DIAL $dialstring");
the asterisk output says:
AGI Rx << GET VARIABLE DIALSTRING
AGI Tx >> 200
2008 Dec 10
4
Execute AGI after answered Dial() has ended
Hello,
I am googling for a while but google seems to be broken today, no
solution yet :D I have a PHP script which needs to be started after
Dial() has ended. If there is no answer, busy, etc., it is not a
problem, because dialplan continues after the Dial() application, but
when the call is established (i call macro in Dial() with AGI execution,
working ok) and after the call ends, dialplan
2005 May 11
1
HELP: ASTCC (AGI) meets call forward ERROR
Hi, ALL:
When I use astcc to do the prepaid function, but if I want to enable
"call forward".
The result of CDR seems not correct.
UA 1011 make a call to UA 9999, and UA 9999 forwards this call to a PSTN number.
I think we shall charge the credit from UA 9999 not UA 1011 because UA
1011 don't know where UA 9999 forwards to.
But in CDR, I can only find the from(1011) and
2005 Sep 23
2
Execute php agi after channel hangup
Hi,
following I would like to implement:
1. I receive a call.
2. I hang up the call.
3. I execute a macro
I thought about using call files first... but they don't support macros, or?
Then I figured I could use php agi after I receive the call, hang up the
call with php agi and execute the macro with "exec ...".
Unfortunately, the php agi seems to die with the hangup. Does
2005 Jul 26
1
Perl AGI
I am wondering if anyone can help me figure out how to do something.
I'm running a simple perl AGI which at the end of the call, creates a
MySQL row with some of the tasks done during the AGI session.
However, when the call is unexpectedly dropped (possibly the caller
hangs up before finishing the entire AGI flow), I don't get the MySQL
row created.
I'm wondering if there is
2006 Jan 27
3
paging agi
Hello Everyone,
I've been playing with an agi script for paging sip phones.
page.agi will take all available sip extensions and assign them to the
global variable PAGE_GROUP. Allowing the phones to be paged from the
dialplan with the new Page cmd. Extensions to be excluded are presented as
arguments to the agi. Each time a page is made this agi refreshes the global
variable. This works with
2011 Feb 18
1
[1.4/AGI] CHANNEL STATUS never "down & available"?
Hello
I'm using an AGI script in Lua to make a callback through Zaptel.
For this to work, I must wait until the channel is idle, or I get this
kind of error, even after waiting over 10 seconds after the remote end
rings once and hangs up:
==============
channel.c:2863 __ast_request_and_dial: Unable to request channel
Zap/1/123456
pbx_spool.c:341 attempt_thread: Call failed to go through,
2006 Nov 02
1
AGI Problems
Hi,
I've got a setup whereby calls come into the asterisk server (1.2.7.1)
over a IAX2 trunk and into a dialplan that launches a php AGI script:
[live-full]
exten => _X.,1,Set(TIMEOUT(absolute)=0)
exten => _X.,2,NoOp(${EXTEN})
exten => _X.,3,DEADAGI(live-full.php)
exten => _X.,4,Wait,2
exten => _X.,5,Hangup
The script is using phpagi-2 from http://phpagi.sourceforge.net/ and
2006 Feb 16
3
AGI Flakyness *sigh*
Well, I'm about ready to throw Asterisk across the room.
Can someone tell me WHY, when you've sent a Dial command to Asterisk via AGI, if the callee hangs up the call, Asterisk sends a return code, but if the caller hangs up, it does not???
This means if an agi script services a call, and after the two parties have finished speaking, the person who initiated the call hangs up, the agi
2010 Jul 08
1
AGI get full variable
Dear All,
I have "get full variable" AGI call to get the ANSWEREDTIME channel
variable. I have originated the call to one extension, once answered I have
called DeadAGI to control the call.
I have problem that after hangup the call AGI "GET FULL VARIABLE" returns
-1 for ANSWEREDTIME channel variable.
What is the problem? Where I made wrong. Please suggest me..
2006 Jan 13
1
Re: <Ben Higley> Can you send us your AGI CDR logging application?
I have placed the custom-cdr-V1.0.tar for download
http://www.itsngroup.com/software/asterisk/downloads/
Thanks
> Dear Ben,
> I've also the problems as Chris Mason, Can you send us your own AGI CDR
> logging application?
> Best regards,
> Jian Hong Guan
> France
> www.directcentrex.com
>
>
>