[Asterisk-cvs] libpri q931.c,1.103,1.104

mattf at lists.digium.com mattf at lists.digium.com
Mon Dec 27 11:27:29 CST 2004


Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv5674

Modified Files:
	q931.c 
Log Message:
For switches (NI2) that implement GR-1367 callername can't be greater than 15 
characters.


Index: q931.c
===================================================================
RCS file: /usr/cvsroot/libpri/q931.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -d -r1.103 -r1.104
--- q931.c	23 Dec 2004 01:55:51 -0000	1.103
+++ q931.c	27 Dec 2004 16:22:30 -0000	1.104
@@ -1002,6 +1002,8 @@
 	struct rose_component *comp;
 	unsigned char namelen = strlen(call->callername);
 
+	if (namelen > 15) 
+		namelen = 15; /* According to GR-1367, for NI2 switches it can't be > 15 characters */
 	if ((namelen > 0) && ((pri->switchtype == PRI_SWITCH_QSIG) ||
 			(pri->switchtype == PRI_SWITCH_NI2 && 
 			 pri->localtype == PRI_NETWORK) )) {




More information about the svn-commits mailing list