mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 02:48:29 +00:00
Merged revisions 215955 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r215955 | dvossel | 2009-09-03 11:31:54 -0500 (Thu, 03 Sep 2009) | 6 lines Merge code associated with AST-2009-006 (closes issue #12912) Reported by: rathaus Tested by: tilghman, russell, dvossel, dbrooks ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@216003 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -520,6 +520,9 @@ void iax_frame_subclass2str(enum iax_frame_subclass subclass, char *str, size_t
|
||||
case IAX_COMMAND_TXMEDIA:
|
||||
cmd = "TXMEDIA";
|
||||
break;
|
||||
case IAX_COMMAND_CALLTOKEN:
|
||||
cmd = "CTOKEN ";
|
||||
break;
|
||||
}
|
||||
ast_copy_string(str, cmd, len);
|
||||
}
|
||||
@@ -1026,6 +1029,12 @@ int iax_parse_ies(struct iax_ies *ies, unsigned char *data, int datalen)
|
||||
errorf(tmp);
|
||||
}
|
||||
break;
|
||||
case IAX_IE_CALLTOKEN:
|
||||
if (len) {
|
||||
ies->calltokendata = (unsigned char *) data + 2;
|
||||
}
|
||||
ies->calltoken = 1;
|
||||
break;
|
||||
default:
|
||||
snprintf(tmp, (int)sizeof(tmp), "Ignoring unknown information element '%s' (%d) of length %d\n", iax_ie2str(ie), ie, len);
|
||||
outputf(tmp);
|
||||
|
||||
Reference in New Issue
Block a user