diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-19 09:37:28 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-03-19 09:37:28 +0000 |
commit | 8784ee156882231c52cfb33e8ffe102c11079e26 (patch) | |
tree | 2f5727079f3f55c6989d229e84e03df57e47089e /channel.c | |
parent | 3367fa4b3145f28d5a36fa052d9165b8e578fc2b (diff) |
Add hangupcause to the hangup manager event
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2473 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-x | channel.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |