--- chan_dahdi2.c 2010-04-30 13:07:47.152909945 -0500 +++ chan_dahdi.c 2010-04-30 13:07:21.964909630 -0500 @@ -3110,6 +3110,11 @@ ast_mutex_lock(&p->lock); ast_copy_string(dest, rdest, sizeof(dest)); ast_copy_string(p->dialdest, rdest, sizeof(p->dialdest)); + c = strchr(dest, '/'); + if (c){ + c++; + ast_copy_string(p->exten, c,sizeof(p->exten)); + } if ((ast->_state == AST_STATE_BUSY)) { p->subs[SUB_REAL].needbusy = 1; ast_mutex_unlock(&p->lock);