From 610abad23b97f8e02516c7948abc20aafedc3a42 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Wed, 22 Dec 2004 18:46:23 +0000 Subject: [PATCH] Mods so that PRI_NETWORK side on NI2 switches sends Callername over facility IE git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@170 2fbb986a-6c06-0410-b554-c9c1f0a7f128 --- q931.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/q931.c b/q931.c index 0e46488..a0c221b 100755 --- a/q931.c +++ b/q931.c @@ -1002,7 +1002,9 @@ static FUNC_SEND(transmit_facility) struct rose_component *comp; unsigned char namelen = strlen(call->callername); - if ((namelen > 0) && (pri->switchtype == PRI_SWITCH_QSIG)) { + if ((namelen > 0) && ((pri->switchtype == PRI_SWITCH_QSIG) || + (pri->switchtype == PRI_SWITCH_NI2 && + pri->localtype == PRI_NETWORK) )) { ie->data[i] = ROSE_NETWORK_EXTENSION; i++; /* Interpretation component */