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
This commit is contained in:
Anthony Minessale 2008-04-14 16:10:18 +00:00
parent f095ef0645
commit 9c9fd03300
1 changed files with 1 additions and 1 deletions

View 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());