From: Anthony Minessale Date: Thu, 17 Jan 2008 16:31:08 +0000 (+0000) Subject: interop X-Git-Tag: v1.0-rc1~641 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f6f99583fde3c1f2e3ff7bc4b3f123349901402;p=thirdparty%2Ffreeswitch.git interop git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7267 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 6bb075d949..11213f6dbc 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -440,6 +440,26 @@ uint8_t sofia_reg_handle_register(nua_t * nua, sofia_profile_t *profile, nua_han } 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 ", + 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 ", + 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));