dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
kpfleming 2005-07-07 22:42:06 +00:00
parent f4db6c2fe6
commit 9bdf537755
1 changed files with 5 additions and 0 deletions

View File

@ -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 */