MODENDP-291

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16524 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2010-01-27 15:36:24 +00:00
parent b544fbf7ba
commit 0549eee174
1 changed files with 3 additions and 6 deletions

View File

@ -5095,10 +5095,6 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
port = refer_to->r_url->url_port;
}
if (zstr(port)) {
port = "5060";
}
channel = switch_core_session_get_channel(a_session);
if (refer_to->r_params) {
@ -5121,9 +5117,10 @@ void sofia_handle_sip_i_refer(nua_t *nua, sofia_profile_t *profile, nua_handle_t
}
}
exten = switch_core_session_sprintf(session, "sofia/%s/sip:%s@%s",
exten = switch_core_session_sprintf(session, "sofia/%s/sip:%s@%s%s%s",
profile->name, refer_to->r_url->url_user,
refer_to->r_url->url_host);
refer_to->r_url->url_host,
port ? ":" : "", port ? port : "");
switch_core_new_memory_pool(&npool);
nightmare_xfer_helper = switch_core_alloc(npool, sizeof(*nightmare_xfer_helper));