From: Anthony Minessale Date: Fri, 10 Feb 2012 17:02:41 +0000 (-0600) Subject: fix publish regression X-Git-Tag: v1.2-rc1~19^2^2~68^2~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff379a97e57a94f11ce75e8894b1ceb79d10a9ed;p=thirdparty%2Ffreeswitch.git fix publish regression --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 794627c4f4..b529b076f4 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -3724,6 +3724,7 @@ void sofia_presence_handle_sip_i_publish(nua_t *nua, sofia_profile_t *profile, n int count = 1, sub_count = 0; char *contact_str; int open = 1; + sofia_nat_parse_t np = { { 0 } }; if (!sip) { return; @@ -3732,7 +3733,8 @@ void sofia_presence_handle_sip_i_publish(nua_t *nua, sofia_profile_t *profile, n from = sip->sip_from; payload = sip->sip_payload; - contact_str = sofia_glue_gen_contact_str(profile, sip, nh, de, NULL); + np.fs_path = 1; + contact_str = sofia_glue_gen_contact_str(profile, sip, nh, de, &np); if (from) { from_user = (char *) from->a_url->url_user;