Don't send callername as CPE

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@181 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Matthew Fredrickson
2005-01-25 00:36:34 +00:00
parent 3cfff2fe15
commit 1cfe36a944

2
q931.c
View File

@@ -1055,7 +1055,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->switchtype == PRI_SWITCH_NI2) && (pri->localtype == PRI_NETWORK)))) {
ie->data[i] = ROSE_NETWORK_EXTENSION;
i++;
/* Interpretation component */