From: Jeremy McNamara Date: Fri, 19 Mar 2004 09:37:28 +0000 (+0000) Subject: Add hangupcause to the hangup manager event X-Git-Tag: 1.0.0-rc1~907 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0ddcb1f6663f09f43995691609bcea0ae70abdb8;p=thirdparty%2Fasterisk.git Add hangupcause to the hangup manager event git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2473 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channel.c b/channel.c index 02e0049359..f5b9fc3d1a 100755 --- a/channel.c +++ b/channel.c @@ -681,8 +681,9 @@ int ast_hangup(struct ast_channel *chan) ast_mutex_unlock(&chan->lock); manager_event(EVENT_FLAG_CALL, "Hangup", "Channel: %s\r\n" - "Uniqueid: %s\r\n", - chan->name, chan->uniqueid); + "Uniqueid: %s\r\n" + "Cause: %i\r\n", + chan->name, chan->uniqueid, chan->hangupcause); ast_channel_free(chan); return res; }