[Freeswitch-svn] [commit] r10613 - freeswitch/trunk/src/mod/applications/mod_voicemail

FreeSWITCH SVN anthm at freeswitch.org
Fri Dec 5 08:02:51 PST 2008


Author: anthm
Date: Fri Dec  5 11:02:50 2008
New Revision: 10613

Log:
MODAPP-176

Modified:
   freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c

Modified: freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_voicemail/mod_voicemail.c	Fri Dec  5 11:02:50 2008
@@ -1991,8 +1991,10 @@
 						if (x_box) {
 							myid = switch_core_session_strdup(session, x_box);
 						}
-
-						if (!(actual_id = switch_xml_attr(x_user, "id"))) {
+						
+						if ((actual_id = switch_xml_attr(x_user, "id"))) {
+							actual_id = switch_core_session_strdup(session, actual_id);
+						} else {
 							actual_id = id;
 						}
 					}



More information about the Freeswitch-svn mailing list