This crept up during gateway testing where the gateway would receive
the request to negotiate and assume it came from the remote side, causing
the gateway state machine to go a little, to a use a technical term,
"wonky".
........
Merged revisions 403364 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403365
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
data->session = session;
ao2_ref(session, +1);
-
- if (!(data->frame = ast_frdup(frame))) {
- ao2_cleanup(data);
- return NULL;
- }
+ data->frame = frame;
return data;
}
if (ast_sip_push_task(session->serializer, t38_interpret_parameters, data)) {
ao2_ref(data, -1);
}
+
+ f = &ast_null_frame;
} else if (f->frametype == AST_FRAME_MODEM) {
RAII_VAR(struct ast_sip_session_media *, session_media, NULL, ao2_cleanup);