[Asterisk-Dev] Patch for DISA - New voice message dialtone while
using password file
Robert Hendrickx
robert.hendrickx at advalvas.be
Wed Jul 6 14:01:16 MST 2005
> > Hello,
> >
> > Here is a little patch to be able to use the mailbox-number format in
> > a DISA password file.
> >
> > I hope it's correct... it's my first post :-)
>
> Try 'diff -u' format.
>
> --
> Tilghman
>
Better ?
--------------------------------------------------
Index: apps/app_disa.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_disa.c,v
retrieving revision 1.28
diff -u -r1.28 app_disa.c
--- apps/app_disa.c 6 Jun 2005 22:39:31 -0000 1.28
+++ apps/app_disa.c 6 Jul 2005 20:54:00 -0000
@@ -275,6 +275,11 @@
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 */
--------------------------------------------------
Robert
More information about the asterisk-dev
mailing list