modules/sipt: fix bug in setting NAI of called party
authorTorrey Searle <torrey@voxbone.com>
Mon, 31 Jul 2017 15:03:52 +0000 (17:03 +0200)
committerTorrey Searle <torrey@voxbone.com>
Mon, 31 Jul 2017 15:03:52 +0000 (17:03 +0200)
src/modules/sipt/ss7_parser.c

index 4659194..2230594 100644 (file)
@@ -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;