[svn-commits] mnicholson: branch group/res_fax r238178 - /team/group/res_fax/res/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jan 6 13:50:23 CST 2010


Author: mnicholson
Date: Wed Jan  6 13:50:20 2010
New Revision: 238178

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=238178
Log:
Reverted previous commit (return ast_null_frame where there is no data), and configured the fax stack to return silence when there is no data.

Modified:
    team/group/res_fax/res/res_fax_spandsp.c

Modified: team/group/res_fax/res/res_fax_spandsp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/res_fax/res/res_fax_spandsp.c?view=diff&rev=238178&r1=238177&r2=238178
==============================================================================
--- team/group/res_fax/res/res_fax_spandsp.c (original)
+++ team/group/res_fax/res/res_fax_spandsp.c Wed Jan  6 13:50:20 2010
@@ -432,8 +432,6 @@
 			f->samples = samples;
 			AST_FRAME_SET_BUFFER(f, buffer, AST_FRIENDLY_OFFSET, samples * sizeof(int16_t));
 			return ast_frisolate(f);
-		} else {
-			return &ast_null_frame;
 		}
 	}
 
@@ -521,6 +519,9 @@
 		if (s->details->their_t38_parameters.transcoding_jbig) {
 			t38_set_jbig_transcoding(p->t38_core_state, TRUE);
 		}
+	} else {
+		/* have the fax stack generate silence if it has no data to send */
+		fax_set_transmit_on_idle(&p->fax_state, 1);
 	}
 
 




More information about the svn-commits mailing list