similar to: How to finish an AGI

Displaying 20 results from an estimated 11000 matches similar to: "How to finish an AGI"

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
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
2007 Dec 06
1
DeadAgi
hi, all I am new to use DeadAgi, can anybody help me how to use DeadAgi, actually i want this, when caller hangup his/her phone, i want to send packet to my other app that check caller hung up done.
2010 Aug 31
1
Running System() after call completion, not in 'h'?
Greetings all- I have some dialplan code on an Asterisk 1.2.x box that basically dials a call, then after call completion, runs a command via System(). However, I'm finding that roughly 5% of the time, the System() command never executes and seems to be on specific destinations. Simplified/paraphrased example: exten => 1,1,Set(VARIABLE=SOMEVALUE) exten =>
2008 Oct 05
5
asterisk, phpagi and singleton
Hello, I've this situation: 300+ simultaneous calls and dialplan like this: exten => _X.,1,Answer() exten => _X.,2,DEADAGI(check_status.php) exten => _X.,3,Dial(SIP/other/${NUMBER}) exten => _X.,4,Hangup exten => h,1,DEADAGI(cdr.php) When project is running , I had a lot of defunct php scripts (I've exceed mysql connection limits and so on, deadagi help a bit). The
2012 Dec 10
1
deadagi on 11 and 1.4
How can extensions.conf be changed to work with both Asterisk 11 and 1.4.X such that 1.4.X calls deadagi and 11 just calls agi as deadagi is no more. Thanks, jerry
2011 Feb 09
2
queue called by agi doesn't re-enter the script
Hello, I tried this piece of extensions on my Asterisk 1.8: exten => 679,1,NoOp(start) exten => 679,2,AGI(/var/lib/asterisk/bin/test.py) exten => 679,3,NoOp(--- end ---) exten => 679,n,Hangup where test.py executes a queue command. The strange thing is my CLI never shows the '--- end ---' string. It seems that with queues, the normal script flow is not going on to the next
2009 Apr 20
2
Execute after hangup
What is the syntax to progress with a dial plan after hangup please? Michael
2010 Mar 23
4
Safe_asterisk doesn't exists???
Hello my friends, I'm very worry about a problem i'm having...my asterisk got freez some times, every 5 or 6 days with NO trace in /var/log/asterisk/messages What i want to know is if safe_asterisk has something to be with this? This is what i have on my server: [root at mypbx ~]# ps -A | grep asterisk 9118 ? 00:01:30 asterisk [root at dreampbx ~]# ps aux | grep asterisk root
2008 Mar 26
1
AGI-python script
Hi! I have some IVRs made in python. If the caller hangup before the end of the script I can?t register in my database the cdr. Any idea to do this? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080326/1d8cf874/attachment.htm
2012 Apr 04
2
Asterisk 1.8 and DeadAGI
Dears; In asterisk 1.8, it is not more possible to use DeadAGI? Also, I found the below commands in the a2billing and I would to ask why it set the sequence 1 for the Hangup()? Maybe because it is related to the NoOp? How? [a2billing-callingcard] exten => _X.,1,NoOp(A2Billing Start) exten => _X.,n,Answer() exten => _X.,n,Wait(2) exten => _X.,n,DeadAgi(a2billing.php,1) exten =>
2012 Mar 08
1
Using the h and DeadAGI
Hi All; Really I need to know why when using the "h" in the exten =>, then we use DeaAGI with it? I am using vicidial and I see this line alot, so I need to know how it work (when it will be executed): exten => h,1,DeadAGI(agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}) The question is: When
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,
2010 Sep 16
1
How to Understand a pri intense debug span X
Hello my friends, I would like to understand the output from "pri intense debug span X", the Telco always says that their side is OK, but i always receive alarms, loosing connection, take a look: [Sep 16 13:18:19] WARNING[30364] chan_zap.c: Detected alarm on channel 1: Recovering [Sep 16 13:18:19] WARNING[30364] chan_zap.c: Unable to disable echo cancellation on channel 1 [...] [Sep 16
2010 Feb 05
3
Asterisk going down
Hello my friends, My asterisk is going down randomly, following you will find some errors that i could see in the /var/log/asterisk/message at the moment of the crash: [Feb 5 10:32:45] WARNING[6519] chan_sip.c: Maximum retries exceeded on transmission 1850202354 at 10.4.1.152 for seqno 21 (Critical Response) [Feb 5 10:32:45] WARNING[6519] chan_sip.c: Hanging up call 1850202354 at 10.4.1.152 -
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
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
2009 Feb 19
3
AGI script
Dear All, I would like to ask please if someone has a AGI script that select a value from a database and dial this value as a destination number Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090220/e2aa530c/attachment.htm
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
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