From 5a8afcb26766fe85d8a743c5b37be019e329fdab Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 5 Dec 2008 16:02:50 +0000 Subject: [PATCH] MODAPP-176 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10613 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_voicemail/mod_voicemail.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 4049928a19..74b63b6eef 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -1991,8 +1991,10 @@ static void voicemail_check_main(switch_core_session_t *session, const char *pro 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; } }