[Asterisk-cvs] libpri q931.c,1.40,1.41
martinp at lists.digium.com
martinp at lists.digium.com
Fri Dec 5 17:19:07 CST 2003
Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv27710
Modified Files:
q931.c
Log Message:
Don't reject SETUP without missing channel information IE if we're network.
Index: q931.c
===================================================================
RCS file: /usr/cvsroot/libpri/q931.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- q931.c 24 Nov 2003 14:36:46 -0000 1.40
+++ q931.c 5 Dec 2003 23:10:33 -0000 1.41
@@ -2091,6 +2091,15 @@
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) {
More information about the svn-commits
mailing list