For switches (NI2) that implement GR-1367 callername can't be greater than 15

characters.


git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@174 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Matthew Fredrickson 2004-12-27 16:22:30 +00:00
parent 7f2237532a
commit b210417743

2
q931.c
View File

@ -1002,6 +1002,8 @@ static FUNC_SEND(transmit_facility)
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) )) {