Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv20117/apps
Modified Files:
app_voicemail.c
Log Message:
Handle ODBC forwarding properly (bug #5606)
Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.259
retrieving revision 1.260
diff -u -d -r1.259 -r1.260
--- app_voicemail.c 3 Nov 2005 21:19:10 -0000 1.259
+++ app_voicemail.c 6 Nov 2005 05:15:29 -0000 1.260
@@ -1098,7 +1098,7 @@
{
int res;
SQLHSTMT stmt;
- char sql[256];
+ char sql[512];
char msgnums[20];
char msgnumd[20];
odbc_obj *obj;
@@ -3455,6 +3455,7 @@
cmd = leave_voicemail(chan, username, &leave_options);
} else {
/* Forward VoiceMail */
+ RETRIEVE(dir, curmsg);
cmd = vm_forwardoptions(chan, sender, dir, curmsg, vmfmts,
context, record_gain);
if (!cmd) {
while (!res && vmtmp) {
@@ -3485,6 +3486,8 @@
ast_log(LOG_DEBUG, "%s", sys);
ast_safe_system(sys);
snprintf(fn, sizeof(fn), "%s/msg%04d",
todir,todircount);
+
+ STORE(todir, vmtmp->mailbox, vmtmp->context,
todircount);
/* load the information on the source message
so we can send an e-mail like a new message */
snprintf(miffile, sizeof(miffile),
"%s/msg%04d.txt", dir, curmsg);
_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs