mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
FS-9300: Add support for disabling sofia's 100 Trying via configuration, and sending 100 Trying from dialplan
This commit is contained in:
@@ -3155,6 +3155,7 @@ void *SWITCH_THREAD_FUNC sofia_profile_thread_run(switch_thread_t *thread, void
|
||||
NTATAG_TCP_RPORT(0),
|
||||
NTATAG_TLS_RPORT(0),
|
||||
NUTAG_RETRY_AFTER_ENABLE(0),
|
||||
NUTAG_AUTO_INVITE_100(0),
|
||||
TAG_IF(!strchr(profile->sipip, ':'),
|
||||
SOATAG_AF(SOA_AF_IP4_ONLY)),
|
||||
TAG_IF(strchr(profile->sipip, ':'),
|
||||
@@ -4517,6 +4518,7 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
|
||||
}
|
||||
|
||||
profile->tls_verify_policy = TPTLS_VERIFY_NONE;
|
||||
sofia_set_pflag(profile, PFLAG_AUTO_INVITE_100);
|
||||
/* lib default */
|
||||
profile->tls_verify_depth = 2;
|
||||
|
||||
@@ -5326,6 +5328,12 @@ switch_status_t config_sofia(sofia_config_t reload, char *profile_name)
|
||||
} else {
|
||||
sofia_clear_pflag(profile, PFLAG_SECURE);
|
||||
}
|
||||
} else if (!strcasecmp(var, "auto-invite-100")) {
|
||||
if (switch_true(val)) {
|
||||
sofia_set_pflag(profile, PFLAG_AUTO_INVITE_100);
|
||||
} else {
|
||||
sofia_clear_pflag(profile, PFLAG_AUTO_INVITE_100);
|
||||
}
|
||||
} else {
|
||||
found = 0;
|
||||
}
|
||||
@@ -9833,6 +9841,8 @@ void sofia_handle_sip_i_reinvite(switch_core_session_t *session,
|
||||
switch_channel_t *channel = NULL;
|
||||
private_object_t *tech_pvt = NULL;
|
||||
|
||||
nua_respond(nh, SIP_100_TRYING, TAG_END());
|
||||
|
||||
if (session) {
|
||||
channel = switch_core_session_get_channel(session);
|
||||
tech_pvt = switch_core_session_get_private(session);
|
||||
|
||||
Reference in New Issue
Block a user