From c53f63e1c423d971f142fec04d1bcca912f5bcf8 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Wed, 20 Feb 2008 21:36:04 +0000 Subject: [PATCH] Don't send a status error when we receive connect acknowledge during an active state git-svn-id: https://origsvn.digium.com/svn/libpri/branches/1.2@527 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q931.c b/q931.c index 77dae5d..8076bcc 100644 --- a/q931.c +++ b/q931.c @@ -3547,7 +3547,7 @@ int q931_receive(struct pri *pri, q931_h *h, int len) q931_release_complete(pri,c,PRI_CAUSE_INVALID_CALL_REFERENCE); break; } - if (c->ourcallstate != Q931_CALL_STATE_CONNECT_REQUEST) { + if ((c->ourcallstate != Q931_CALL_STATE_CONNECT_REQUEST) && (c->ourcallstate != Q931_CALL_STATE_ACTIVE)) { q931_status(pri,c,PRI_CAUSE_WRONG_MESSAGE); break; }