[Home]

Summary:ASTERISK-02603: Voicemail notification is not sent to e-mail/pager if using realtime config.
Reporter:zebble (zebble)Labels:
Date Opened:2004-10-14 01:03:19Date Closed:2008-01-15 15:10:41.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Voicemail notification is not sent to e-mail/pager if using realtime config.  This can be fixed by modifying find_user_realtime to add the required values to the ast_vm_user.

****** ADDITIONAL INFORMATION ******

Changed app_voicemail.c as follows:

While loop at line 414-ish:

while(tmp) {
printf("%s => %s\n", tmp->name, tmp->value);
if (!strcasecmp(tmp->name, "context")) {
strncpy(retval->context, tmp->value, sizeof(retval->context) - 1);
} else if (!strcasecmp(tmp->name, "mailbox")) {
strncpy(retval->mailbox, tmp->value, sizeof(retval->mailbox) - 1);
} else if (!strcasecmp(tmp->name, "password")) {
strncpy(retval->password, tmp->value, sizeof(retval->password) - 1);
} else if (!strcasecmp(tmp->name, "fullname")) {
strncpy(retval->fullname, tmp->value, sizeof(retval->fullname) - 1);
} else if (!strcasecmp(tmp->name, "email")) {
strncpy(retval->email, tmp->value, sizeof(retval->email) - 1);
} else if (!strcasecmp(tmp->name, "pager")) {
strncpy(retval->pager, tmp->value, sizeof(retval->pager) - 1);
} else if (!strcasecmp(tmp->name, "uniqueid")) {
strncpy(retval->uniqueid, tmp->value, sizeof(retval->uniqueid) - 1);
} else
apply_option(retval, tmp->name, tmp->value);
tmp = tmp->next;
}
Comments:By: Brian West (bkw918) 2004-10-14 01:04:39

This could be combined into one diff with your other bug.

As always diff -u please :)

bkw

By: zebble (zebble) 2004-10-14 01:09:15

Disclaimer on file.  I'll submit a diff in a day or so.

By: Mark Spencer (markster) 2004-10-16 16:02:08

Fixed in CVS

By: Mark Spencer (markster) 2004-10-16 16:02:13

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 15:10:41.000-0600

Repository: asterisk
Revision: 4021

U   trunk/apps/app_voicemail.c

------------------------------------------------------------------------
r4021 | markster | 2008-01-15 15:10:40 -0600 (Tue, 15 Jan 2008) | 2 lines

Handle a few more cases of realtime and voicemail (bug ASTERISK-2603)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4021