From 09645488d628f0d71e6922d5276229ec6e60191f Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Wed, 25 Feb 2004 20:02:04 +0000 Subject: [PATCH] Don't send release complete on the global call identifier git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@77 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/q931.c b/q931.c index 7423d11..cccaf42 100755 --- a/q931.c +++ b/q931.c @@ -2247,7 +2247,8 @@ int q931_receive(struct pri *pri, q931_h *h, int len) break; } if (c->newcall) { - q931_release_complete(pri,c,PRI_CAUSE_WRONG_CALL_STATE); + if (c->cr & 0x7fff) + q931_release_complete(pri,c,PRI_CAUSE_WRONG_CALL_STATE); break; } /* Do nothing */