Module: kamailio
Branch: master
Commit: 676c96ed860be183bd69ad55c8062523afcc5248
URL:
https://github.com/kamailio/kamailio/commit/676c96ed860be183bd69ad55c806252…
Author: Torrey Searle <torrey(a)voxbone.com>
Committer: Torrey Searle <torrey(a)voxbone.com>
Date: 2017-07-31T17:03:52+02:00
modules/sipt: fix bug in setting NAI of called party
---
Modified: src/modules/sipt/ss7_parser.c
---
Diff:
https://github.com/kamailio/kamailio/commit/676c96ed860be183bd69ad55c806252…
Patch:
https://github.com/kamailio/kamailio/commit/676c96ed860be183bd69ad55c806252…
---
diff --git a/src/modules/sipt/ss7_parser.c b/src/modules/sipt/ss7_parser.c
index 465919440a..2230594a8d 100644
--- a/src/modules/sipt/ss7_parser.c
+++ b/src/modules/sipt/ss7_parser.c
@@ -110,7 +110,7 @@ static int encode_called_party(char * number, unsigned char * flags,
int nai, un
if(nai)
{
buf[0] &= 0x80;
- buf[0] = (unsigned char)(nai&0x7F);
+ buf[0] |= (unsigned char)(nai&0x7F);
}
return numlen + 2;