diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-07 22:42:06 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-07-07 22:42:06 +0000 |
commit | 9bdf5377557f2107aa4fba3f5127264145f33539 (patch) | |
tree | 3e18e2e74a998f6969433f157458943a831baccf | |
parent | f4db6c2fe677d5ceb28e207485f9e6f4dcd1154a (diff) |
ensure that mailbox numbers are read correctly from password files (bug #4655)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6049 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | apps/app_disa.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_disa.c b/apps/app_disa.c index 200764478..dadb4d17c 100755 --- a/apps/app_disa.c +++ b/apps/app_disa.c @@ -275,6 +275,11 @@ static int disa_exec(struct ast_channel *chan, void *data) stringp2=strsep(&stringp, "|"); if (stringp2) ourcallerid=stringp2; } + mailbox = strsep(&stringp, "|"); + if (!mailbox) + mailbox = ""; + ast_log(LOG_DEBUG, "Mailbox: %s\n",mailbox); + /* password must be in valid format (numeric) */ if (sscanf(tmp,"%d",&j) < 1) continue; /* if we got it */ |