Displaying 20 results from an estimated 5000 matches similar to: "Execute AGI after answered Dial() has ended"
2006 Feb 20
1
Dial from AGI = no ring back ??
Hi everybody,
I sent an e-mail this morning regarding SIP / IAX2
with no ring-back, I now succeeded to pin-point the
problem, here it is, if I dial a provider directly from
extensions.conf I get ring-back, if I dial from an AGI
script I don't get the ring-back but it calls anyway.
I use 1.0.9.
Any hint would be appreciated ! Thanks,
Frederic
;Calling this one does not give me ring back
2009 Jan 28
5
Inbound Call Disconnect in 3 seconds
My Inbound calls lands , but line get disconnect in exactly 3 secs.
Here goes my extension.conf setting :
[from-ipkall]
exten => 901835,1,Ringing ; call ringing
exten => 901835,2,Wait(1) ; Wait 1 second for CID delivery from PRI
exten => 901835,3,Answer ; Answer the line
exten =>
2007 Aug 13
1
AGI answering the channel even though I never asked it to
I am working on a call-back solution where the initiating call should
never be answered.
I was doing this simply through the dial plan, sending a progress
tone, and then dumping the channel, and firing off a DeadAGI which
created a call file to make the callback.
Now I've tried extending this so that an AGI is fired first to check
for things - like no inbound ANI - and play a
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
2006 Jun 20
1
AGI: Dial and Recording my own CDR
Hi folks --
I have a FastAGI Perl script running, handling calls. It works great.
At one point I have a Dial() command. If the called party hangs up, Dial()
returns 0, and when I call my own recordCdr() function using the channel
variables ANSWEREDTIME, DIALEDTIME and DIALSTATUS, everything is fine.
However, if the called party picks up, and then the dialing party hangs up
Dial() returns -1,
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
2008 Aug 21
3
After Dial execution, using DIALEDTIME, ANSWEREDTIME
Hi,
I noticed that when dial terminates it does not return to the dialplan,
and therefore can not execute any entry after Dial().
Is there any trick to overcome this limitation ?
How I am supposed to handle the returned vales DIALEDTIME, ANSWEREDTIME if
I can not execute anything after Dial()?
I made a workaround with DeadAGI (below) but it is unreliable: if 2 calls
end
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
2008 Dec 19
2
Conference with an AGI inside Queue for password change
Hi,
I have a typical call center with queues and agents added via
AddQueueMember. One of my requirement is to implement a forgot
password function. If a caller does not remember the password, he
calls up an unauthenticated line and the agent manually authenticates
him. Then the caller should have a provision to reset his password.
The requirement is that the agent should not know the new password
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 10
2
Action after _caller_ has hungup(cmd Dial 'g'-option)
Hello!
There's the "g"-option for the Dial-cmd that allows to execute the next
extensions in the current context when the callee hangs up.
I would need the same for a call where the caller hangs up, concretely
i have to inform a agi-application of the end of a call. Does someone
know a way to do this from the dialplan?
thanks
Christian
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
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
2006 May 04
1
TDM400P and monoBRI auto-dial call difference: caller phone does not ring
Hi,
I'm using Asterisk 1.2.1 on a Debian Sarge with a TDM400P and a monoBRI
using chan-mISDN from beronet site.
It seems to work all right except for autodial calls, monoBRI ISDN
channel behaves differently waiting for the caller to answer and then
continue.
Asterisk console says:
analog:
-- Attempting call on Zap/2/3391818250 for 104@inbound_originate:1 (Retry 1)
> Channel
2005 Sep 02
1
how to execute something after Dial() ?
let's suppose I have this dialplan :
exten => _X.,1,Playtones(ring)
exten => _X.,2,Dial(CAPI/contr1/${EXTEN},,g)
exten => _X.,3,AGI(update)
where "update" updates some db tables we have based on the type of extension
Now, from the wiki :
If the /g/ option is specified, and the called party hangs up before the
calling party, then Dial exits with a return code of 0 to