]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix issue with blf over a sip proxy
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 23 Feb 2012 23:59:01 +0000 (17:59 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 23 Feb 2012 23:59:01 +0000 (17:59 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 1a4196e2ffcebd352595e28dc25ca7d429a54856..e8440eb64715b15418dc0788d98be13a3f860f75 100644 (file)
@@ -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)),