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

fix regression from f60fdf65

上级 2d190b37
...@@ -2887,7 +2887,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session, ...@@ -2887,7 +2887,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
switch_call_cause_t *cancel_cause) switch_call_cause_t *cancel_cause)
{ {
switch_xml_t x_domain = NULL, xml = NULL, x_user = NULL, x_group = NULL, x_param, x_params; switch_xml_t x_domain = NULL, xml = NULL, x_user = NULL, x_group = NULL, x_param, x_params;
char *user = NULL, *domain = NULL; char *user = NULL, *domain = NULL, *dup_domain = NULL;
const char *dest = NULL; const char *dest = NULL;
static switch_call_cause_t cause = SWITCH_CAUSE_NONE; static switch_call_cause_t cause = SWITCH_CAUSE_NONE;
unsigned int timelimit = 60; unsigned int timelimit = 60;
...@@ -2908,7 +2908,8 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session, ...@@ -2908,7 +2908,8 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
if ((domain = strchr(user, '@'))) { if ((domain = strchr(user, '@'))) {
*domain++ = '\0'; *domain++ = '\0';
} else { } else {
domain = switch_core_get_variable_pdup("domain", switch_core_session_get_pool(session)); domain = switch_core_get_variable_dup("domain");
dup_domain = domain;
} }
if (!domain) { if (!domain) {
...@@ -3115,6 +3116,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session, ...@@ -3115,6 +3116,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
} }
switch_safe_free(user); switch_safe_free(user);
switch_safe_free(dup_domain);
return cause; return cause;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论