[Asterisk-Dev] Callingcard (again, sorry!)

Eric Wieling eric at fnords.org
Tue May 18 21:41:10 MST 2004


On Tue, 2004-05-18 at 23:23, Terence Parker wrote:
> app_agi.c:1511 agi_exec: If you want to run AGI on hungup channels you
> should use DeadAGI!

"show application DeadAGI"

> 2. If find that if a call is terminated in the middle of a script, the
> script will continue running. For example, currently my script reads out a
> bunch of stuff to the user (you are calling x country, your card balance is,
> you have x minutes for this call etc...) - if a user hangs up during that
> the PHP script has no way of knowing and will continue to the end -
> including adding a lock to the MySQL database and a timestamp. So upon
> running the script again, the user will find their account locked.

See the hangup callback function in the sample scripts at
http://www.fnords.org/~eric/asterisk/downloads
-- 
          Eric Wieling * BTEL Consulting * 504-899-1387 x2111
"In a related story, the IRS has recently ruled that the cost of Windows
upgrades can NOT be deducted as a gambling loss."




More information about the asterisk-dev mailing list