Merge branch 'v1.2.stable' of ssh://git.freeswitch.org:222/freeswitch into v1.2.stable
This commit is contained in:
commit
74581e3c97
|
@ -2444,7 +2444,6 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
|
|||
switch_channel_set_variable(channel, "sip_to_host", sofia_glue_get_host(to_str, switch_core_session_get_pool(session)));
|
||||
switch_channel_set_variable(channel, "sip_from_host", sofia_glue_get_host(from_str, switch_core_session_get_pool(session)));
|
||||
|
||||
|
||||
if (!(tech_pvt->nh = nua_handle(tech_pvt->profile->nua, NULL,
|
||||
NUTAG_URL(url_str),
|
||||
TAG_IF(call_id, SIPTAG_CALL_ID_STR(call_id)),
|
||||
|
@ -2679,6 +2678,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
|
|||
"Local SDP:\n%s\n", tech_pvt->local_sdp_str);
|
||||
}
|
||||
|
||||
|
||||
if (sofia_use_soa(tech_pvt)) {
|
||||
nua_invite(tech_pvt->nh,
|
||||
NUTAG_AUTOANSWER(0),
|
||||
|
@ -5961,10 +5961,13 @@ int sofia_recover_callback(switch_core_session_t *session)
|
|||
tech_pvt->redirected = switch_core_session_sprintf(session, "sip:%s", switch_channel_get_variable(channel, "sip_contact_uri"));
|
||||
|
||||
if (zstr(rr)) {
|
||||
switch_channel_set_variable_printf(channel, "sip_invite_route_uri", "<sip:%s@%s:%s;lr>",
|
||||
switch_channel_set_variable_printf(channel, "sip_invite_route_uri", "<sip:%s@%s:%s;transport=%s>",
|
||||
switch_channel_get_variable(channel, "sip_from_user"),
|
||||
switch_channel_get_variable(channel, "sip_network_ip"), switch_channel_get_variable(channel, "sip_network_port")
|
||||
switch_channel_get_variable(channel, "sip_network_ip"),
|
||||
switch_channel_get_variable(channel, "sip_network_port"),
|
||||
switch_channel_get_variable(channel,"sip_via_protocol")
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
tech_pvt->dest = switch_core_session_sprintf(session, "sip:%s", switch_channel_get_variable(channel, "sip_from_uri"));
|
||||
|
|
Loading…
Reference in New Issue