]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add sip: to nua_options call for nathack thing
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 14 Apr 2008 16:10:18 +0000 (16:10 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 14 Apr 2008 16:10:18 +0000 (16:10 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8104 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia_reg.c

index 2011f22968502d8de4b4f2f172c9c465396b0ec3..9732ede866b6f522994776b39b186e8c85d32a4c 100644 (file)
@@ -175,7 +175,7 @@ int sofia_reg_nat_callback(void *pArg, int argc, char **argv, char **columnNames
        char *contact = NULL;
        char to[128] = "";
 
-       switch_snprintf(to, sizeof(to), "%s@%s", argv[1], argv[2]);
+       switch_snprintf(to, sizeof(to), "sip:%s@%s", argv[1], argv[2]);
        contact = sofia_glue_get_url_from_contact(argv[3], 1);
 
        nh = nua_handle(profile->nua, NULL, SIPTAG_FROM_STR(profile->url), SIPTAG_TO_STR(to), NUTAG_URL(contact), SIPTAG_CONTACT_STR(profile->url), TAG_END());