Don't reject SETUP without missing channel information IE if we're network.

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@69 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Martin Pycko
2003-12-05 23:10:33 +00:00
parent 5f6e12c3e5
commit a36186ce49

9
q931.c
View File

@@ -2091,6 +2091,15 @@ int q931_receive(struct pri *pri, q931_h *h, int len)
missingmand++;
}
}
/* check if there is no channel identyfication when we're configured as network -> that's not an error */
if (missingmand && pri->localtype == PRI_NETWORK && mh->msg == Q931_SETUP) {
for (x=0;x<MAX_MAND_IES;x++) {
if (mandies[x] == Q931_CHANNEL_IDENT) {
missingmand--;
break;
}
}
}
/* Post handling */
switch(mh->msg) {