From: Anthony Minessale Date: Mon, 14 Apr 2008 16:10:18 +0000 (+0000) Subject: add sip: to nua_options call for nathack thing X-Git-Tag: v1.0-rc4~126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c9fd033005b9252d8b3ce5061a3dbc7382ca095;p=thirdparty%2Ffreeswitch.git add sip: to nua_options call for nathack thing git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8104 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 2011f22968..9732ede866 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -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());