From 6fd2416da7ca58ff4bb80d7e5b3d1727937b78d0 Mon Sep 17 00:00:00 2001 From: Raymond Chandler Date: Fri, 20 Jan 2012 18:09:12 -0500 Subject: [PATCH] add auth user and doc cleanup --- src/mod/applications/mod_httapi/mod_httapi_doc.txt | 6 +++--- src/mod/applications/mod_voicemail/mod_voicemail.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mod/applications/mod_httapi/mod_httapi_doc.txt b/src/mod/applications/mod_httapi/mod_httapi_doc.txt index 92f24409a4..7e45896bd3 100644 --- a/src/mod/applications/mod_httapi/mod_httapi_doc.txt +++ b/src/mod/applications/mod_httapi/mod_httapi_doc.txt @@ -234,10 +234,10 @@ temp-action : Change url to submit to. just for the next loop. - : Exit the httapi application and continue in the dialplan. + : Write a log line to fs_cli, console, logs, etc. ATTRS: level : The log level to use. -clean : If true do not pring log prefix. +clean : If true do not print log prefix. action : Change url to submit to. temp-action : Change url to submit to. just for the next loop. @@ -259,7 +259,7 @@ permanent : Add as a permanent param or just once. - : Get a Channel variable (depends on permissions) + : Call the voicemail app without requiring "execute" permissions ATTRS: action : Change url to submit to. diff --git a/src/mod/applications/mod_voicemail/mod_voicemail.c b/src/mod/applications/mod_voicemail/mod_voicemail.c index 9fc68c657e..53007a3abc 100644 --- a/src/mod/applications/mod_voicemail/mod_voicemail.c +++ b/src/mod/applications/mod_voicemail/mod_voicemail.c @@ -2521,6 +2521,7 @@ static void voicemail_check_main(switch_core_session_t *session, vm_profile_t *p if (auth_only) { if (authed) { switch_channel_set_variable(channel, "user_pin_authenticated", "true"); + switch_channel_set_variable(channel, "user_pin_authenticated_user", myid); if (!zstr(myid)) switch_ivr_set_user(session, myid); } else { switch_channel_hangup(channel, SWITCH_CAUSE_USER_CHALLENGE);