提交 ccb9a4eb authored 作者: Anthony Minessale's avatar Anthony Minessale

fix seg in user_recurse_variables=false edge case

上级 fb9d60fc
...@@ -2781,7 +2781,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session, ...@@ -2781,7 +2781,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
if (session) { if (session) {
channel = switch_core_session_get_channel(session); channel = switch_core_session_get_channel(session);
if ((varval = switch_channel_get_variable(channel, SWITCH_CALL_TIMEOUT_VARIABLE)) if ((varval = switch_channel_get_variable(channel, SWITCH_CALL_TIMEOUT_VARIABLE))
|| (varval = switch_event_get_header(var_event, "leg_timeout"))) { || (var_event && (varval = switch_event_get_header(var_event, "leg_timeout")))) {
timelimit = atoi(varval); timelimit = atoi(varval);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论