]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
worth a shot
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 24 Oct 2007 01:27:58 +0000 (01:27 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 24 Oct 2007 01:27:58 +0000 (01:27 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6043 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_presence.c

index ba18d40222daea5775e91c49c78e9bd7591a3a87..8d8769a21ad2ed9d62426d7530a131436108ef17 100644 (file)
@@ -532,6 +532,8 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
        }
 
        to = switch_mprintf("sip:%s@%s", user, host);
+       tmp = contact;
+       contact = sofia_glue_get_url_from_contact(tmp, 0);
        pl = switch_mprintf("<?xml version='1.0' encoding='UTF-8'?>\r\n"
                                                "<presence xmlns='urn:ietf:params:xml:ns:pidf'\r\n"
                                                "xmlns:dm='urn:ietf:params:xml:ns:pidf:data-model'\r\n"
@@ -558,8 +560,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char *
 
 
        nh = nua_handle(profile->nua, NULL, TAG_END());
-       tmp = contact;
-       contact = sofia_glue_get_url_from_contact(tmp, 0);
+
 
        nua_notify(nh,
                           NUTAG_NEWSUB(1),