mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-15 07:44:13 +00:00
auto-aleg-full and auto-aleg-domain for from_domain field in gateway
This commit is contained in:
1 parent
ca4be66a3e
commit
fda2283bbd
2 files changed
+20
-1
No files matched your search
@@ -1893,6 +1893,8 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
|
||||
const char *invite_full_to = switch_channel_get_variable(tech_pvt->channel, "sip_invite_full_to");
|
||||
const char *handle_full_from = switch_channel_get_variable(tech_pvt->channel, "sip_handle_full_from");
|
||||
const char *handle_full_to = switch_channel_get_variable(tech_pvt->channel, "sip_handle_full_to");
|
||||
const char *force_full_from = switch_channel_get_variable(tech_pvt->channel, "sip_force_full_from");
|
||||
const char *force_full_to = switch_channel_get_variable(tech_pvt->channel, "sip_force_full_to");
|
||||
char *mp = NULL, *mp_type = NULL;
|
||||
|
||||
rep = switch_channel_get_variable(channel, SOFIA_REPLACES_HEADER);
|
||||
@@ -2125,6 +2127,15 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
|
||||
}
|
||||
|
||||
|
||||
if (force_full_from) {
|
||||
from_str = (char *) force_full_from;
|
||||
}
|
||||
|
||||
if (force_full_to) {
|
||||
to_str = (char *) force_full_to;
|
||||
}
|
||||
|
||||
|
||||
if (invite_req_uri) {
|
||||
url_str = (char *) invite_req_uri;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user