[asterisk-users] Question on DeadAGI
Kevin Smith
kevin.smith at mercury.net
Fri Jun 6 19:14:23 CDT 2008
I have always had problems getting the script to run during an active
channel through hang up with DeadAGI. I found it best just to use it on
the hang up extension like below: Maybe that is how it is supposed to be
run, but from what I have read and you have, I don't see any flaws.
exten => h,1,DeadAGI(get-usage.php)
Another thing I do is I put a simple verbose statement letting me know
that the script was called, or entered some part of execution.
Kevin
Nhadie Ramos wrote:
> Hi,
>
> How can i get the deadAGI to work at this scenario
>
> Basically when someonc calls international, i will get the remaining
> balance using AGI get-available.php.
>
> but after the call i would like to get the usage by calling
> get-usage.php so i can update users balance, but looking at the debug
> it seems the AGI was not called. is there som
>
> exten => _00.,1,AGI(get-available.php)
> exten => _00.,n,GotoIf($["${CALLSTATUS}" = "1"]?70)
> exten => _00.,n,GotoIf($["${CALLSTATUS}" = "2"]?80)
> exten => _00.,70,Dial(SIP/${EXTEN}@sb-trunk)
> exten => _00.,n,Hangup
> exten => _00.,n,DEADAGI(get-usage.php)
> exten => _00.,80,Busy
> exten => _00.,n,Hangup
>
>
> Regards,
> Nhadie
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Kevin Smith
---
Mercury Network
Technical Support
Phone: 989.837.3790
Toll Free: 888.866.4638
www.mercury.net
More information about the asterisk-users
mailing list