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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 22 14:26:33 CDT 2011


Author: mnicholson
Date: Wed Jun 22 14:26:23 2011
New Revision: 324526

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=324526
Log:
remove the gateway flag if attaching a gateway to a channel fails

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

Modified: team/irroot/t38gateway-trunk/res/res_fax.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/t38gateway-trunk/res/res_fax.c?view=diff&rev=324526&r1=324525&r2=324526
==============================================================================
--- team/irroot/t38gateway-trunk/res/res_fax.c (original)
+++ team/irroot/t38gateway-trunk/res/res_fax.c Wed Jun 22 14:26:23 2011
@@ -2372,6 +2372,7 @@
 
 	details->caps = AST_FAX_TECH_GATEWAY;
 	if (!(gateway->s = fax_session_reserve(details, &gateway->token))) {
+		details->caps |= ~AST_FAX_TECH_GATEWAY;
 		ast_log(LOG_ERROR, "Can't reserve a FAX session, gateway attempt failed.\n");
 		ao2_ref(gateway, -1);
 		return NULL;




More information about the asterisk-commits mailing list