Make error message more descriptive, and less antagonistic.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3060 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b2ac3d1bdc
commit
786cfc4557
|
@ -124,7 +124,7 @@ static void privacy_function(switch_core_session_t *session, char *data)
|
||||||
} else if (!strcasecmp(arg, "number")) {
|
} else if (!strcasecmp(arg, "number")) {
|
||||||
switch_set_flag(caller_profile, SWITCH_CPF_HIDE_NUMBER);
|
switch_set_flag(caller_profile, SWITCH_CPF_HIDE_NUMBER);
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "INVALID privacy mode specified. Use a valid mode ASSHAT\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "INVALID privacy mode specified. Use a valid mode [no|yes|name|full|number].\n");
|
||||||
}
|
}
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Set Privacy to %s [%d]\n", arg, caller_profile->flags);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Set Privacy to %s [%d]\n", arg, caller_profile->flags);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue