From b210417743377ede8b6d87b0f383b82c95988764 Mon Sep 17 00:00:00 2001 From: Matthew Fredrickson Date: Mon, 27 Dec 2004 16:22:30 +0000 Subject: [PATCH] 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 --- q931.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/q931.c b/q931.c index bce01cb..148ac2c 100755 --- a/q931.c +++ b/q931.c @@ -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) )) {