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

Peter Beckman beckman at purplecow.com
Tue Jun 20 19:54:39 MST 2006


On Wed, 21 Jun 2006, Jean-Michel Hiver wrote:

> Peter Beckman a écrit :
>
>> 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.

  So if I change my AGI call from AGI to DeadAGI, when the caller hangs up,
  the variables I mentioned above will pretend like the call is still going,
  and record the right info?  Hey, worth a shot.

  Documents read:

     http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+DeadAGI

Beckman
---------------------------------------------------------------------------
Peter Beckman                                                  Internet Guy
beckman at purplecow.com                             http://www.purplecow.com/
---------------------------------------------------------------------------


More information about the asterisk-users mailing list