add auth user and doc cleanup

This commit is contained in:
Raymond Chandler 2012-01-20 18:09:12 -05:00
parent 5d4cccd447
commit 6fd2416da7
2 changed files with 4 additions and 3 deletions

View File

@ -234,10 +234,10 @@ temp-action : Change url to submit to. just for the next loop.
<log level clean action>
: 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.
<voicemail action temp-action check auth-only profile domain id/>
: Get a Channel variable (depends on permissions)
: Call the voicemail app without requiring "execute" permissions
ATTRS:
action : Change url to submit to.

View File

@ -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);