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
This commit is contained in:
Matthew Fredrickson
2008-02-20 21:36:04 +00:00
parent 268ce63ab8
commit c53f63e1c4

2
q931.c
View File

@@ -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;
}