[asterisk-commits] file: branch 12 r403364 - /branches/12/res/res_pjsip_t38.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 4 14:53:34 CST 2013


Author: file
Date: Wed Dec  4 14:53:32 2013
New Revision: 403364

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=403364
Log:
res_pjsip_t38: Don't pass T.38 control frames through to other hooks.

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".

Modified:
    branches/12/res/res_pjsip_t38.c

Modified: branches/12/res/res_pjsip_t38.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip_t38.c?view=diff&rev=403364&r1=403363&r2=403364
==============================================================================
--- branches/12/res/res_pjsip_t38.c (original)
+++ branches/12/res/res_pjsip_t38.c Wed Dec  4 14:53:32 2013
@@ -113,11 +113,7 @@
 
 	data->session = session;
 	ao2_ref(session, +1);
-
-	if (!(data->frame = ast_frdup(frame))) {
-		ao2_cleanup(data);
-		return NULL;
-	}
+	data->frame = frame;
 
 	return data;
 }
@@ -396,6 +392,8 @@
 		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);
 




More information about the asterisk-commits mailing list