[Asterisk-Users] agi exit problem

Brian West brian at bkw.org
Tue Oct 7 11:54:57 MST 2003


exten => h,1, will not work if you park a call then pick it back up.  You
are flipping the call direction from what Mark told me.  Whats wrong with
CDR data?  is that not good enough to tell call lenght?

bkw

On Tue, 7 Oct 2003, mattf wrote:

> The way I worked around this is to log the "uniqueid" in a database when the
> call is placed with the start time and then execute an agi script upon all
> hangups:
>
> exten => h,1,AGI(call_log.agi,${EXTEN})
>
> That script queries the database for the "uniqueid" and if it exists in the
> table it figures out the call length and updates the record
>
> It's a little bit of perl overhead but if you have a fast system and a fast
> DB it should have very little delay.
>
> MATT---
>
> -----Original Message-----
> From: Panny Malialis [mailto:panny at hotlinks.co.uk]
> Sent: Tuesday, October 07, 2003 2:11 PM
> To: asterisk-users at lists.digium.com
> Subject: Re: [Asterisk-Users] agi exit problem
>
>
> > Not sure if it's possible to keep the script running after Dial but
> perhaps
> > you could explain what you're attempting to achieve and there may be a
> > workaround.
> >
>
> I want to know how long the call lasted :)
>
> Panny
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list