cosmetic pickyness of me
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9930 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5cea654e2e
commit
906b7e52d0
|
@ -833,7 +833,7 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_running_state(
|
||||||
const char *file, const char *func, int line)
|
const char *file, const char *func, int line)
|
||||||
{
|
{
|
||||||
switch_mutex_lock(channel->flag_mutex);
|
switch_mutex_lock(channel->flag_mutex);
|
||||||
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_DEBUG, "%s Running State Change %s\n", channel->name, state_names[state]);
|
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_DEBUG, "(%s) Running State Change %s\n", channel->name, state_names[state]);
|
||||||
channel->running_state = state;
|
channel->running_state = state;
|
||||||
|
|
||||||
if (channel->state_flags) {
|
if (channel->state_flags) {
|
||||||
|
@ -1065,7 +1065,7 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_state(switch_c
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ok) {
|
if (ok) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_DEBUG, "%s State Change %s -> %s\n",
|
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_DEBUG, "(%s) State Change %s -> %s\n",
|
||||||
channel->name, state_names[last_state], state_names[state]);
|
channel->name, state_names[last_state], state_names[state]);
|
||||||
switch_mutex_lock(channel->flag_mutex);
|
switch_mutex_lock(channel->flag_mutex);
|
||||||
channel->state = state;
|
channel->state = state;
|
||||||
|
@ -1080,7 +1080,7 @@ SWITCH_DECLARE(switch_channel_state_t) switch_channel_perform_set_state(switch_c
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_WARNING,
|
switch_log_printf(SWITCH_CHANNEL_ID_LOG, file, func, line, NULL, SWITCH_LOG_WARNING,
|
||||||
"%s Invalid State Change %s -> %s\n", channel->name, state_names[last_state], state_names[state]);
|
"(%s) Invalid State Change %s -> %s\n", channel->name, state_names[last_state], state_names[state]);
|
||||||
/* we won't tolerate an invalid state change so we can make sure we are as robust as a nice cup of dark coffee! */
|
/* we won't tolerate an invalid state change so we can make sure we are as robust as a nice cup of dark coffee! */
|
||||||
/* not cool lets crash this bad boy and figure out wtf is going on */
|
/* not cool lets crash this bad boy and figure out wtf is going on */
|
||||||
switch_assert(channel->state >= CS_HANGUP);
|
switch_assert(channel->state >= CS_HANGUP);
|
||||||
|
|
Loading…
Reference in New Issue