[asterisk-commits] tilghman: branch tilghman/realtime_update2 r147679 - /team/tilghman/realtime_...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 8 16:33:44 CDT 2008


Author: tilghman
Date: Wed Oct  8 16:33:44 2008
New Revision: 147679

URL: http://svn.digium.com/view/asterisk?view=rev&rev=147679
Log:
The one module in standard Asterisk that needs the update2 method...

Modified:
    team/tilghman/realtime_update2/apps/app_voicemail.c

Modified: team/tilghman/realtime_update2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/tilghman/realtime_update2/apps/app_voicemail.c?view=diff&rev=147679&r1=147678&r2=147679
==============================================================================
--- team/tilghman/realtime_update2/apps/app_voicemail.c (original)
+++ team/tilghman/realtime_update2/apps/app_voicemail.c Wed Oct  8 16:33:44 2008
@@ -948,7 +948,7 @@
 		if (strlen(password) > 10) {
 			ast_realtime_require_field("voicemail", "password", RQ_CHAR, strlen(password), SENTINEL);
 		}
-		res = ast_update_realtime("voicemail", "uniqueid", vmu->uniqueid, "password", password, SENTINEL);
+		res = ast_update2_realtime("voicemail", "context", vmu->context, "mailbox", vmu->mailbox, SENTINEL, "password", password, SENTINEL);
 		if (res > 0) {
 			ast_copy_string(vmu->password, password, sizeof(vmu->password));
 			res = 0;




More information about the asterisk-commits mailing list