ensure that mailbox numbers are read correctly from password files (bug #4655)
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 7 Jul 2005 22:42:06 +0000 (22:42 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 7 Jul 2005 22:42:06 +0000 (22:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6049 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_disa.c

index 2007644..dadb4d1 100755 (executable)
@@ -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 */