From de24dd76a6953532bef6fc5d23129331f241f239 Mon Sep 17 00:00:00 2001 From: Martin Pycko Date: Tue, 5 Aug 2003 18:42:55 +0000 Subject: [PATCH] Send RELEASE COMPLETE if the cause is UNALLOCATED NUMBER (1) instead of sending DISCONNECT (although that should be ok too) git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@49 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q931.c b/q931.c index 71ef7be..3897a10 100755 --- a/q931.c +++ b/q931.c @@ -1740,7 +1740,7 @@ int q931_hangup(struct pri *pri, q931_call *c, int cause) pri_message("NEW_HANGUP DEBUG: Calling q931_hangup, ourstate %s, peerstate %s\n",callstate2str(c->ourcallstate),callstate2str(c->peercallstate)); if (!pri || !c) return -1; - if (cause == 34 || cause == 44 || cause == 82) { + if (cause == 34 || cause == 44 || cause == 82 || cause == 1) { disconnect = 0; release_compl = 1; }