Merged revisions 79642 via svnmerge from
authorChristian Richter <christian.richter@beronet.com>
Thu, 16 Aug 2007 09:22:23 +0000 (09:22 +0000)
committerChristian Richter <christian.richter@beronet.com>
Thu, 16 Aug 2007 09:22:23 +0000 (09:22 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r79642 | crichter | 2007-08-16 10:21:21 +0200 (Do, 16 Aug 2007) | 1 line

0x80 + protocol is wrong for USERUSER when we want to send IA5 Chars.
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@79660 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/misdn/ie.c

index 75dd4c7..9c783cd 100644 (file)
@@ -1356,7 +1356,7 @@ static void enc_ie_useruser(unsigned char **ntmode, msg_t *msg, int protocol, ch
                qi->QI_ELEMENT(useruser) = p - (unsigned char *)qi - sizeof(Q931_info_t);
        p[0] = IE_USER_USER;
        p[1] = l;
-       p[2] = 0x80 + protocol;
+       p[2] = protocol;
        memcpy(p+3, user, user_len);
 }
 #endif