Index: channels/chan_dahdi.c =================================================================== --- channels/chan_dahdi.c (revision 281686) +++ channels/chan_dahdi.c (working copy) @@ -2758,6 +2758,7 @@ struct dahdi_pvt *p = pvt; if (p->answeronpolarityswitch || p->hanguponpolarityswitch) { + ast_log(LOG_DEBUG, "%s: Normal channel %d\n", __FUNCTION__, p->channel); my_set_polarity(pvt, 0); } } @@ -2770,6 +2771,7 @@ return; } + ast_log(LOG_DEBUG, "%s: Reversed channel %d\n", __FUNCTION__, p->channel); my_set_polarity(pvt, 1); } @@ -2782,8 +2784,10 @@ } if (p->answeronpolarityswitch) { + ast_log(LOG_DEBUG, "%s: Normal channel %d\n", __FUNCTION__, p->channel); my_set_polarity(pvt, 0); } else { + ast_log(LOG_DEBUG, "%s: Reversed channel %d\n", __FUNCTION__, p->channel); my_set_polarity(pvt, 1); } } Index: channels/sig_analog.c =================================================================== --- channels/sig_analog.c (revision 281686) +++ channels/sig_analog.c (working copy) @@ -1158,7 +1158,7 @@ int res; int index, x; - ast_log(LOG_DEBUG, "%s %d\n", __FUNCTION__, p->channel); + ast_log(LOG_DEBUG, "%s chan=%d pol(a=%d h=%d)\n", __FUNCTION__, p->channel, p->answeronpolarityswitch, p->hanguponpolarityswitch); if (!ast->tech_pvt) { ast_log(LOG_WARNING, "Asked to hangup channel not connected\n"); return 0; @@ -1344,7 +1344,7 @@ int res = 0; int index; int oldstate = ast->_state; - ast_log(LOG_DEBUG, "%s %d\n", __FUNCTION__, p->channel); + ast_log(LOG_DEBUG, "%s chan=%d pol(a=%d h=%d)\n", __FUNCTION__, p->channel, p->answeronpolarityswitch, p->hanguponpolarityswitch); ast_setstate(ast, AST_STATE_UP); index = analog_get_index(ast, p, 1); if (index < 0) {