modules/sipt: fix bug in setting NAI of called party
[sip-router] / 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;