From 9c9fd033005b9252d8b3ce5061a3dbc7382ca095 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 14 Apr 2008 16:10:18 +0000 Subject: [PATCH] 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 --- src/mod/endpoints/mod_sofia/sofia_reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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());