From ffacfddf461aaec5242c58dec70831ccda5bcd19 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 26 Nov 2008 17:59:14 +0000 Subject: [PATCH] patch for SFSIP-104 git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10541 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_presence.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 45b053608f..361ab42f80 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -1542,13 +1542,18 @@ void sofia_presence_handle_sip_i_subscribe(int status, char *sticky = NULL; if (is_nat) { + char params[128] = ""; + if (contact->m_url->url_params) { + switch_snprintf(params, sizeof(params), ";%s", contact->m_url->url_params); + } ipv6 = strchr(network_ip, ':'); - sticky = switch_mprintf("sip:%s@%s%s%s:%d", + sticky = switch_mprintf("sip:%s@%s%s%s:%d%s", contact_user, ipv6 ? "[" : "", network_ip, ipv6 ? "]" : "", - network_port); + network_port, + params); } nua_respond(nh, SIP_202_ACCEPTED, NUTAG_WITH_THIS(nua), SIPTAG_SUBSCRIPTION_STATE_STR(sstr), TAG_IF(sticky, NUTAG_PROXY(sticky)),