提交 943105b0 authored 作者: Anthony Minessale's avatar Anthony Minessale

few sofia cleanups complements of CtRiX (thanks for pointing them out)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4078 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 db70ef2a
...@@ -543,12 +543,8 @@ static auth_res_t parse_auth(sofia_profile_t *profile, sip_authorization_t const ...@@ -543,12 +543,8 @@ static auth_res_t parse_auth(sofia_profile_t *profile, sip_authorization_t const
} }
end: end:
if (input) { switch_safe_free(input);
switch_safe_free(input); switch_safe_free(input2);
}
if (input2) {
switch_safe_free(input2);
}
switch_safe_free(nonce); switch_safe_free(nonce);
switch_safe_free(uri); switch_safe_free(uri);
switch_safe_free(qop); switch_safe_free(qop);
...@@ -5073,6 +5069,14 @@ static switch_status_t config_sofia(int reload) ...@@ -5073,6 +5069,14 @@ static switch_status_t config_sofia(int reload)
} }
} }
if (!profile->sipip) {
profile->sipip = switch_core_strdup(profile->pool, globals.guess_ip);
}
if (!profile->rtpip) {
profile->rtpip = switch_core_strdup(profile->pool, globals.guess_ip);
}
if (profile->nonce_ttl < 60) { if (profile->nonce_ttl < 60) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Setting nonce TTL to 60 seconds\n"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_INFO, "Setting nonce TTL to 60 seconds\n");
profile->nonce_ttl = 60; profile->nonce_ttl = 60;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论