[Asterisk-cvs] libpri q931.c,1.119,1.120
mattf at lists.digium.com
mattf at lists.digium.com
Thu Mar 31 15:03:25 CST 2005
Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv25949
Modified Files:
q931.c
Log Message:
Fix callernumber IE to be read only once
Index: q931.c
===================================================================
RCS file: /usr/cvsroot/libpri/q931.c,v
retrieving revision 1.119
retrieving revision 1.120
diff -u -d -r1.119 -r1.120
--- q931.c 17 Mar 2005 15:46:23 -0000 1.119
+++ q931.c 31 Mar 2005 20:56:52 -0000 1.120
@@ -911,6 +911,12 @@
call->callerplan = ie->data[0] & 0x7f;
extbit = (ie->data[0] >> 7) & 0x01;
+ /* Somebody's broken PRI stack sent a calling
+ party number IE twice. One with the callernam
+ and one without. */
+ if (strlen(call->callernum))
+ return 0;
+
if (extbit) {
q931_get_number(call->callernum, sizeof(call->callernum), ie->data + 1, len - 3);
call->callerpres = 0; /* PI presentation allowed
More information about the svn-commits
mailing list