[asterisk-commits] mnicholson: branch group/res_fax r236142 - /team/group/res_fax/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 22 14:12:57 CST 2009


Author: mnicholson
Date: Tue Dec 22 14:12:55 2009
New Revision: 236142

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=236142
Log:
Make sure the session thread is always created, even for g711 faxes.

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=236142&r1=236141&r2=236142
==============================================================================
--- team/group/res_fax/res/res_fax_spandsp.c (original)
+++ team/group/res_fax/res/res_fax_spandsp.c Tue Dec 22 14:12:55 2009
@@ -511,12 +511,13 @@
 		if (s->details->their_t38_parameters.transcoding_jbig) {
 			t38_set_jbig_transcoding(p->t38_core_state, TRUE);
 		}
-
-		/* XXX create a thread for T.38 and stuffs */
-		if (ast_pthread_create(&p->session_thread, NULL, session_thread, s) < 0) {
-			ast_log(LOG_ERROR, "failed to create FAX thread for session: %d\n", s->id);
-			return -1;
-		}
+	}
+
+
+	/* create the session thread */
+	if (ast_pthread_create(&p->session_thread, NULL, session_thread, s) < 0) {
+		ast_log(LOG_ERROR, "failed to create FAX thread for session: %d\n", s->id);
+		return -1;
 	}
 
 	s->state = AST_FAX_STATE_ACTIVE;




More information about the asterisk-commits mailing list