--- chan_zap.c.orig 2005-09-21 00:34:38.000000000 +0200 +++ chan_zap.c 2005-09-21 20:03:38.000000000 +0200 @@ -1019,19 +1019,16 @@ p->dialdest[res++] = digit; p->dialdest[res] = '\0'; } - } else { -#else - { + } #endif - zo.op = ZT_DIAL_OP_APPEND; - zo.dialstr[0] = 'T'; - zo.dialstr[1] = digit; - zo.dialstr[2] = 0; - if ((res = ioctl(p->subs[SUB_REAL].zfd, ZT_DIAL, &zo))) - ast_log(LOG_WARNING, "Couldn't dial digit %c\n", digit); - else - p->dialing = 1; - } + zo.op = ZT_DIAL_OP_APPEND; + zo.dialstr[0] = 'T'; + zo.dialstr[1] = digit; + zo.dialstr[2] = 0; + if ((res = ioctl(p->subs[SUB_REAL].zfd, ZT_DIAL, &zo))) + ast_log(LOG_WARNING, "Couldn't dial digit %c\n", digit); + else + p->dialing = 1; } ast_mutex_unlock(&p->lock); return res;