[asterisk-commits] mnicholson: branch irroot/t38gateway-trunk r321536 - /team/irroot/t38gateway-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 1 15:03:23 CDT 2011


Author: mnicholson
Date: Wed Jun  1 15:03:18 2011
New Revision: 321536

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321536
Log:
ast_frisolate() blows away any custom flags set on frames so set our special flag after we call ast_frisolate()

Modified:
    team/irroot/t38gateway-trunk/res/res_fax_spandsp.c

Modified: team/irroot/t38gateway-trunk/res/res_fax_spandsp.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/t38gateway-trunk/res/res_fax_spandsp.c?view=diff&rev=321536&r1=321535&r2=321536
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax_spandsp.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax_spandsp.c Wed Jun  1 15:03:18 2011
@@ -608,7 +608,6 @@
 		.frametype = AST_FRAME_VOICE,
 		.src = "res_fax_spandsp_g711",
 		.samples = samples,
-		.flags = AST_FAX_FRFLAG_GATEWAY,
 	};
 
 	AST_FRAME_SET_BUFFER(&t30_frame, buffer, AST_FRIENDLY_OFFSET, t30_frame.samples * sizeof(int16_t));
@@ -616,6 +615,7 @@
 	/* generate a T.30 packet */
 	ast_format_set(&t30_frame.subclass.format, AST_FORMAT_SLINEAR, 0);
 	f = ast_frisolate(&t30_frame);
+	ast_set_flag(f, AST_FAX_FRFLAG_GATEWAY);
 	if ((f->samples = t38_gateway_tx(&p->t38_gw_state, f->data.ptr, f->samples))) {
 		f->datalen = f->samples * sizeof(int16_t);
 		if (ast_write(chan, f) < 0) {




More information about the asterisk-commits mailing list