提交 f796ff4b authored 作者: Chris Parker's avatar Chris Parker

Use const char, instead of passing func to switch_true

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10793 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 3a3274aa
...@@ -156,7 +156,8 @@ static switch_status_t my_on_routing(switch_core_session_t *session) ...@@ -156,7 +156,8 @@ static switch_status_t my_on_routing(switch_core_session_t *session)
} }
if(channel) { if(channel) {
if(switch_true(switch_channel_get_variable(channel, "disable_radius_start"))) { const char *disable_flag = switch_channel_get_variable(channel, "disable_radius_start");
if(switch_true(disable_flag)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[mod_radius_cdr] Not Sending RADIUS Start\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[mod_radius_cdr] Not Sending RADIUS Start\n");
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
...@@ -394,7 +395,8 @@ static switch_status_t my_on_hangup(switch_core_session_t *session) ...@@ -394,7 +395,8 @@ static switch_status_t my_on_hangup(switch_core_session_t *session)
if(channel) { if(channel) {
if(switch_true(switch_channel_get_variable(channel, "disable_radius_stop"))) { const char *disable_flag = switch_channel_get_variable(channel, "disable_radius_stop");
if(switch_true(disable_flag)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[mod_radius_cdr] Not Sending RADIUS Stop\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[mod_radius_cdr] Not Sending RADIUS Stop\n");
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论