From 9640d2aa28e8594f7e3b6d5372c22417431f410a Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sun, 1 Feb 2009 00:49:06 +0000 Subject: [PATCH] 12th time's a charm git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11584 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia_sla.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_sla.c b/src/mod/endpoints/mod_sofia/sofia_sla.c index c8be24a1a7..f980b7ca15 100644 --- a/src/mod/endpoints/mod_sofia/sofia_sla.c +++ b/src/mod/endpoints/mod_sofia/sofia_sla.c @@ -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'; }