[Asterisk-Dev] Module detect hangup?
Matthew Boehm
mboehm at cytelcom.com
Fri Sep 3 21:30:04 MST 2004
nevermind. after copious amounts of ast_log I found out that even if a call
is dropped execution of the module continues all the way to the last return
statement.
Matthew
----- Original Message -----
From: "Matthew Boehm" <mboehm at cytelcom.com>
To: <asterisk-dev at lists.digium.com>
Sent: Friday, September 03, 2004 10:00 PM
Subject: [Asterisk-Dev] Module detect hangup?
> I am writing a module that is writing info to mysql. The problem that I am
> forseeing is that what happens when a caller calls in, they enter some
> digits as their 'login' which updates a 'loggedin' column. The module then
> gets more info, sound files are played back, the loggedin column is
updated
> to a 'logged out' status and the module hangs up the call.
>
> What happens if the person hangs up (or call dropped) in the middle of
this
> linear sequence?
>
> How can the module "catch" or be notified that the person hungup (or the
> call somehow dissappeard) so that I can preform some database cleanup
(like
> logging them out)?
>
> It seems to me (from what I observe of notice and warning logs) is that if
a
> person hangs up inside a module then the module instance that was running
> just dies.
>
> Is this true? Is there no way to clean up a dropped call?
>
> Thanks,
> Matthew
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
More information about the asterisk-dev
mailing list