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

put sip: into register-proxy when it's not specified

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10431 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 321c4686
...@@ -913,8 +913,12 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag) ...@@ -913,8 +913,12 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
} }
if (!switch_strlen_zero(register_proxy)) { if (!switch_strlen_zero(register_proxy)) {
if (strncasecmp(register_proxy, "sip:", 4) && strncasecmp(register_proxy, "sips:", 5)) {
gateway->register_sticky_proxy = switch_core_sprintf(gateway->pool, "sip:%s", register_proxy);
} else {
gateway->register_sticky_proxy = switch_core_strdup(gateway->pool, register_proxy); gateway->register_sticky_proxy = switch_core_strdup(gateway->pool, register_proxy);
} }
}
gateway->retry_seconds = atoi(retry_seconds); gateway->retry_seconds = atoi(retry_seconds);
if (gateway->retry_seconds < 10) { if (gateway->retry_seconds < 10) {
......
...@@ -976,6 +976,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_inband_dtmf_session(switch_core_sessi ...@@ -976,6 +976,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_inband_dtmf_session(switch_core_sessi
} }
teletone_dtmf_detect_init(&pvt->dtmf_detect, read_codec->implementation->actual_samples_per_second); teletone_dtmf_detect_init(&pvt->dtmf_detect, read_codec->implementation->actual_samples_per_second);
printf ("WTF %d\n", read_codec->implementation->actual_samples_per_second);
pvt->session = session; pvt->session = session;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论