[asterisk-dev] Detecting disconnect from AGI script

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Mon Jan 8 09:22:00 MST 2007


This is not a developer question.  Please direct future questions of
this sort to asterisk-users.

On Monday 08 January 2007 09:30, GDrayer at guesswho.com wrote:
> I am writing a callcenter conferencing app and I'm looking for a way
> to detect a line disconnect from within an AGI script.  I need to
> determine when a call ended to record the total time of the call,
> remove the caller from my databases indicating what conference
> they're in, etc.  Is there a global variable or a dialplan call I can
> reference to detect this?

A SIGHUP is sent to the AGI when a hangup occurs.

-- 
Tilghman


More information about the asterisk-dev mailing list