MODENDP-291
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16524 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b544fbf7ba
commit
0549eee174
|
@ -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;
|
port = refer_to->r_url->url_port;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (zstr(port)) {
|
|
||||||
port = "5060";
|
|
||||||
}
|
|
||||||
|
|
||||||
channel = switch_core_session_get_channel(a_session);
|
channel = switch_core_session_get_channel(a_session);
|
||||||
|
|
||||||
if (refer_to->r_params) {
|
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,
|
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);
|
switch_core_new_memory_pool(&npool);
|
||||||
nightmare_xfer_helper = switch_core_alloc(npool, sizeof(*nightmare_xfer_helper));
|
nightmare_xfer_helper = switch_core_alloc(npool, sizeof(*nightmare_xfer_helper));
|
||||||
|
|
Loading…
Reference in New Issue