From 110062aef6f01a04319dbe4d8210695c0999d9df Mon Sep 17 00:00:00 2001 From: Martin Pycko Date: Tue, 5 Aug 2003 19:26:07 +0000 Subject: [PATCH] Allow to send the CAUSE IE along with RELEASE_COMPLETE message git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@50 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/q931.c b/q931.c index 3897a10..24504ed 100755 --- a/q931.c +++ b/q931.c @@ -1717,9 +1717,11 @@ static int q931_release_complete(struct pri *pri, q931_call *c, int cause) c->cause = cause; c->causecode = CODE_CCITT; c->causeloc = LOC_PRIV_NET_LOCAL_USER; - } + /* release_ies has CAUSE in it */ + res = send_message(pri, c, Q931_RELEASE_COMPLETE, release_ies); + } else + res = send_message(pri, c, Q931_RELEASE_COMPLETE, release_complete_ies); c->alive = 0; - res = send_message(pri, c, Q931_RELEASE_COMPLETE, release_complete_ies); /* release the structure */ res += q931_hangup(pri,c,cause); return res;