Support callername being sent over NI2 type switches

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@175 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Matthew Fredrickson 2004-12-27 16:25:29 +00:00
parent b210417743
commit 073bd4fa70

3
q931.c
View File

@ -1005,8 +1005,7 @@ static FUNC_SEND(transmit_facility)
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) )) {
(pri->switchtype == PRI_SWITCH_NI2) )) {
ie->data[i] = ROSE_NETWORK_EXTENSION;
i++;
/* Interpretation component */