From: Anthony Minessale Date: Thu, 23 Feb 2012 23:59:01 +0000 (-0600) Subject: fix issue with blf over a sip proxy X-Git-Tag: v1.2-rc1~19^2^2~68^2~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ac4557ffc9d89962893e04b6abfd18158d0be72;p=thirdparty%2Ffreeswitch.git fix issue with blf over a sip proxy --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 1a4196e2ff..e8440eb647 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -1924,7 +1924,7 @@ static void _send_presence_notify(sofia_profile_t *profile, route_uri = sofia_glue_strip_uri(dst->route_uri); } else { if (remote_ip && remote_port) { - route_uri = switch_mprintf("sip:%s:%s;transport=%s", remote_ip, remote_port, tp); + route_uri = switch_mprintf("sip:user@%s:%s;transport=%s", remote_ip, remote_port, tp); } } @@ -1987,7 +1987,8 @@ static void _send_presence_notify(sofia_profile_t *profile, nua_notify(nh, NUTAG_NEWSUB(1), - TAG_IF(dst->route_uri, NUTAG_PROXY(route_uri)), TAG_IF(dst->route, SIPTAG_ROUTE_STR(dst->route)), + TAG_IF(route_uri, NUTAG_PROXY(route_uri)), + TAG_IF(dst->route, SIPTAG_ROUTE_STR(dst->route)), TAG_IF(user_via, SIPTAG_VIA_STR(user_via)),