mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 12:42:02 +00:00
FS-3686 try this patch on latest GIT
This commit is contained in:
@@ -7355,7 +7355,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
||||
|
||||
transport = sofia_glue_url2transport(sip->sip_contact->m_url);
|
||||
|
||||
tech_pvt->record_route =
|
||||
tech_pvt->record_route=
|
||||
switch_core_session_sprintf(session,
|
||||
"sip:%s@%s%s%s:%d;transport=%s",
|
||||
sip->sip_contact->m_url->url_user,
|
||||
@@ -7434,6 +7434,16 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_
|
||||
}
|
||||
}
|
||||
|
||||
if (sip->sip_record_route) {
|
||||
char *rr = sip_header_as_string(nh->nh_home, (void *) sip->sip_record_route);
|
||||
switch_channel_set_variable(channel, "sip_invite_record_route", rr);
|
||||
}
|
||||
|
||||
if (sip->sip_via) {
|
||||
char *via = sip_header_as_string(nh->nh_home, (void *) sip->sip_via);
|
||||
switch_channel_set_variable(channel, "sip_invite_via", via);
|
||||
}
|
||||
|
||||
if ((rpid = sip_remote_party_id(sip))) {
|
||||
if (rpid->rpid_url && rpid->rpid_url->url_user) {
|
||||
char *full_rpid_header = sip_header_as_string(nh->nh_home, (void *) rpid);
|
||||
|
||||
Reference in New Issue
Block a user