[Asterisk-Users] agi exit problem
mattf
mattf at vicimarketing.com
Tue Oct 7 13:36:03 MST 2003
Why does having a call go through call parking make the "h" not work?
I currently don't use call parking for other reasons so I've never run into
that.
What is the event to run an agi script after a parked call is hung up?
I don't use CDR data because I have a custom perl/TK interface that grabs
live info from a database and I need a lot more flexibility than CDR can
provide. And I'm spoiled by being able to change the AGI scripts on the fly
without restarting Asterisk.
MATT---
-----Original Message-----
From: Brian West [mailto:brian at bkw.org]
Sent: Tuesday, October 07, 2003 2:55 PM
To: 'asterisk-users at lists.digium.com'
Subject: RE: [Asterisk-Users] agi exit problem
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
>
_______________________________________________
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