Index: apps/app_disa.c =================================================================== RCS file: /usr/cvsroot/asterisk/apps/app_disa.c,v retrieving revision 1.30 diff -u -r1.30 app_disa.c --- apps/app_disa.c 15 Jul 2005 23:00:46 -0000 1.30 +++ apps/app_disa.c 18 Jul 2005 20:12:03 -0000 @@ -329,7 +329,9 @@ } strncpy(chan->exten, exten, sizeof(chan->exten) - 1); strncpy(chan->context, ourcontext, sizeof(chan->context) - 1); - strncpy(chan->accountcode, acctcode, sizeof(chan->accountcode) - 1); + if (!ast_strlen_zero(acctcode)) { + strncpy(chan->accountcode, acctcode, sizeof(chan->accountcode) - 1); + } chan->priority = 0; ast_cdr_reset(chan->cdr,AST_CDR_FLAG_POSTED); LOCAL_USER_REMOVE(u);