[Freeswitch-svn] [commit] r10546 - freeswitch/trunk/src/mod/endpoints/mod_sofia
FreeSWITCH SVN
mikej at freeswitch.org
Wed Nov 26 11:52:39 PST 2008
Author: mikej
Date: Wed Nov 26 14:52:38 2008
New Revision: 10546
Log:
more pres transport handling
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Wed Nov 26 14:52:38 2008
@@ -2072,8 +2072,6 @@
}
profile->tcp_contact = switch_core_sprintf(profile->pool, "%s;transport=tcp", profile->url);
- profile->tls_contact = switch_core_sprintf(profile->pool, "%s;transport=tls", profile->url);
-
if (profile->bind_params) {
char *bindurl = profile->bindurl;
@@ -2130,6 +2128,7 @@
if (!profile->tls_cert_dir) {
profile->tls_cert_dir = switch_core_sprintf(profile->pool, "%s/ssl", SWITCH_GLOBAL_dirs.conf_dir);
}
+ profile->tls_contact = switch_core_sprintf(profile->pool, "%s;transport=tls", profile->tls_url);
}
}
if (profile) {
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_presence.c Wed Nov 26 14:52:38 2008
@@ -1540,7 +1540,7 @@
if (status < 200) {
char *sticky = NULL;
- char *contact_str = profile->url;
+ char *contactstr = profile->url;
if (is_nat) {
char params[128] = "";
@@ -1558,9 +1558,9 @@
}
if (switch_stristr("port=tcp", contact->m_url->url_params)) {
- contact_str = profile->tcp_contact;
+ contactstr = profile->tcp_contact;
} else if (switch_stristr("port=tls", contact->m_url->url_params)) {
- contact_str = profile->tls_contact;
+ contactstr = profile->tls_contact;
}
More information about the Freeswitch-svn
mailing list