[Asterisk-Users] AGI: Dial and Recording my own CDR

Jean-Michel Hiver jhiver at ykoz.net
Tue Jun 20 17:05:54 MST 2006


Peter Beckman a écrit :

> 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, ANSWEREDTIME and DIALEDTIME == 0 (or something like
> that) and DIALSTATUS returns AGI::No Response.
>
> How do I make sure to get the right billing information if the dialing
> party hangs up?

I think you're supposed to use DeadAGI rather than AGI.

Cheers,
Jean-Michel.

-- 
Jean-Michel Hiver - http://ykoz.net/
Découvrez la Réunion des Technologies IP & Telecom
TEL: +262 (0)262 55 03 98 - RCS 434 273 330 SAINT PIERRE




More information about the asterisk-users mailing list