mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Merged revisions 65007 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r65007 | crichter | 2007-05-18 13:23:11 +0200 (Fr, 18 Mai 2007) | 1 line fixed a warning regarding Keypad encoding. encode the IE sending_complete at the right position. ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@65039 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -953,7 +953,7 @@ static void enc_ie_keypad(unsigned char **ntmode, msg_t *msg, char *keypad, int
|
||||
|
||||
if (MISDN_IE_DEBG) printf(" keypad='%s'\n", keypad);
|
||||
|
||||
l = strlen((char *)keypad);
|
||||
l = strlen(keypad);
|
||||
p = msg_put(msg, l+2);
|
||||
if (nt)
|
||||
*ntmode = p+1;
|
||||
@@ -961,7 +961,7 @@ static void enc_ie_keypad(unsigned char **ntmode, msg_t *msg, char *keypad, int
|
||||
qi->QI_ELEMENT(keypad) = p - (unsigned char *)qi - sizeof(Q931_info_t);
|
||||
p[0] = IE_KEYPAD;
|
||||
p[1] = l;
|
||||
strncpy((char *)p+2, (char *)keypad, strlen((char *)keypad));
|
||||
strncpy((char *)p+2, keypad, strlen(keypad));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -340,15 +340,13 @@ static msg_t *build_setup (struct isdn_msg msgs[], struct misdn_bchannel *bc, in
|
||||
}
|
||||
|
||||
if (bc->sending_complete) {
|
||||
enc_ie_complete(&setup->BEARER,msg, bc->sending_complete, nt, bc);
|
||||
enc_ie_complete(&setup->COMPLETE,msg, bc->sending_complete, nt, bc);
|
||||
}
|
||||
|
||||
{
|
||||
if (bc->uulen) {
|
||||
int protocol=4;
|
||||
enc_ie_useruser(&setup->USER_USER, msg, protocol, bc->uu, bc->uulen, nt,bc);
|
||||
if (bc->uulen) cb_log(1,bc->port,"ENCODING USERUESRINFO:%s\n",bc->uu);
|
||||
else
|
||||
cb_log(1,bc->port,"NO USERUESRINFO ENCODED\n");
|
||||
cb_log(1,bc->port,"ENCODING USERUESRINFO:%s\n",bc->uu);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
|
Reference in New Issue
Block a user