[Freeswitch-svn] [commit] r7267 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Freeswitch SVN
anthm at freeswitch.org
Thu Jan 17 11:31:08 EST 2008
Author: anthm
Date: Thu Jan 17 11:31:08 2008
New Revision: 7267
Modified:
freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
Log:
interop
Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c (original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia_reg.c Thu Jan 17 11:31:08 2008
@@ -440,6 +440,26 @@
}
cd = 1;
exptime = 20;
+ } else if (!strcasecmp(v_contact_str, "NDLB-tls-connectile-dysfunction")) {
+ const char *pt = contact->m_url->url_port;
+ int port;
+
+ if (!pt) {
+ pt = "5060";
+ }
+
+ port = atoi(pt);
+
+ if (port > 0) {
+ port++;
+ if (contact->m_url->url_params) {
+ switch_snprintf(contact_str, sizeof(contact_str), "%s <sip:%s@%s:%d;%s>",
+ display, contact->m_url->url_user, contact->m_url->url_host, port, contact->m_url->url_params);
+ } else {
+ switch_snprintf(contact_str, sizeof(contact_str), "%s <sip:%s@%s:%d>",
+ display, contact->m_url->url_user, contact->m_url->url_host, port);
+ }
+ }
} else {
char *p;
switch_copy_string(contact_str, v_contact_str, sizeof(contact_str));
More information about the Freeswitch-svn
mailing list