diff -urN asterisk-11.2.1.orig/channels/chan_dahdi.c asterisk-11.2.1/channels/chan_dahdi.c --- asterisk-11.2.1.orig/channels/chan_dahdi.c 2013-01-09 12:43:00.000000000 -0800 +++ asterisk-11.2.1/channels/chan_dahdi.c 2013-03-04 13:02:13.422194411 -0800 @@ -2163,18 +2163,16 @@ ast_channel_unlock(ast); if (ast_exists_extension(ast, target_context, "fax", 1, S_COR(ast_channel_caller(ast)->id.number.valid, ast_channel_caller(ast)->id.number.str, NULL))) { - ast_channel_lock(ast); - ast_mutex_lock(&p->lock); ast_verb(3, "Redirecting %s to fax extension\n", ast_channel_name(ast)); /* Save the DID/DNIS when we transfer the fax call to a "fax" extension */ pbx_builtin_setvar_helper(ast, "FAXEXTEN", ast_channel_exten(ast)); if (ast_async_goto(ast, target_context, "fax", 1)) ast_log(LOG_WARNING, "Failed to async goto '%s' into fax of '%s'\n", ast_channel_name(ast), target_context); } else { - ast_channel_lock(ast); - ast_mutex_lock(&p->lock); ast_log(LOG_NOTICE, "Fax detected, but no fax extension\n"); } + ast_channel_lock(ast); + ast_mutex_lock(&p->lock); } else { ast_debug(1, "Already in a fax extension, not redirecting\n"); } diff -urN asterisk-11.2.1.orig/channels/chan_sip.c asterisk-11.2.1/channels/chan_sip.c --- asterisk-11.2.1.orig/channels/chan_sip.c 2013-01-09 12:43:00.000000000 -0800 +++ asterisk-11.2.1/channels/chan_sip.c 2013-03-04 13:02:47.909194227 -0800 @@ -8397,8 +8397,6 @@ ast_channel_unlock(ast); if (ast_exists_extension(ast, target_context, "fax", 1, S_COR(ast_channel_caller(ast)->id.number.valid, ast_channel_caller(ast)->id.number.str, NULL))) { - ast_channel_lock(ast); - sip_pvt_lock(p); ast_verb(2, "Redirecting '%s' to fax extension due to CNG detection\n", ast_channel_name(ast)); pbx_builtin_setvar_helper(ast, "FAXEXTEN", ast_channel_exten(ast)); if (ast_async_goto(ast, target_context, "fax", 1)) { @@ -8407,10 +8405,10 @@ ast_frfree(fr); fr = &ast_null_frame; } else { - ast_channel_lock(ast); - sip_pvt_lock(p); ast_log(LOG_NOTICE, "FAX CNG detected but no fax extension\n"); } + ast_channel_lock(ast); + sip_pvt_lock(p); } }