]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
12th time's a charm
authorAnthony Minessale <anthony.minessale@gmail.com>
Sun, 1 Feb 2009 00:49:06 +0000 (00:49 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sun, 1 Feb 2009 00:49:06 +0000 (00:49 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11584 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_sla.c

index c8be24a1a7e05b5797cdf5663a6ba8c4116d0775..f980b7ca154e19efd7a0c86375a242baeac01261 100644 (file)
@@ -129,7 +129,7 @@ void sofia_sla_handle_sip_i_subscribe(nua_t *nua, const char *contact_str, sofia
 
        if (strstr(contact_str, ";fs_nat")) {
                char *p;
-               route_uri = strdup(contact_str);
+               route_uri = sofia_glue_get_url_from_contact((char *)contact_str, 1);
                if ((p = strstr(contact_str, ";fs_"))) {
                        *p = '\0';
                }
@@ -257,7 +257,7 @@ static int sofia_sla_sub_callback(void *pArg, int argc, char **argv, char **colu
 
                if (strstr(contact_str, ";fs_nat")) {
                        char *p;
-                       route_uri = strdup(contact_str);
+                       route_uri = sofia_glue_get_url_from_contact(contact_str, 1);
                        if ((p = strstr(contact_str, ";fs_"))) {
                                *p = '\0';
                        }