Index: app_disa.c =================================================================== --- app_disa.c (revision 82750) +++ app_disa.c (working copy) @@ -299,7 +299,10 @@ ast_debug(1,"Successful DISA log-in on chan %s\n", chan->name); continue; } - } + } else + if (j == '#') { /* end of extension */ + break; + } exten[i++] = j; /* save digit */ exten[i] = 0;