summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Fredrickson <creslin@digium.com>2007-05-23 15:37:51 +0000
committerMatthew Fredrickson <creslin@digium.com>2007-05-23 15:37:51 +0000
commitcc016de69640b10d8d843d6c6fc884cec05ab9f1 (patch)
tree226e7d195f3d168457b8f3d51d09a8f41f751fdc
parent5558323d0c399e8d021349241d1f240d992424dc (diff)
Make sure we get the cause code in the REL
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@65640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_zap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c
index 13147b7bb..2359fdeb9 100644
--- a/channels/chan_zap.c
+++ b/channels/chan_zap.c
@@ -8782,9 +8782,10 @@ static void *ss7_linkset(void *data)
}
p = linkset->pvts[chanpos];
ast_mutex_lock(&p->lock);
- if (p->owner)
+ if (p->owner) {
+ p->owner->hangupcause = e->rel.cause;
ast_queue_hangup(p->owner);
- else
+ } else
ast_log(LOG_WARNING, "REL on channel (CIC %d) without owner!\n", p->cic);
isup_rlc(ss7, e->rel.call);