mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
FS-5009
This commit is contained in:
parent
42bb1040de
commit
80c2465a75
@ -7746,6 +7746,21 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
|
||||
}
|
||||
}
|
||||
|
||||
if (!is_auth && sofia_test_pflag(profile, PFLAG_AUTH_CALLS) && sofia_test_pflag(profile, PFLAG_BLIND_AUTH)) {
|
||||
char *user;
|
||||
|
||||
if (!strcmp(network_ip, profile->sipip) && network_port == profile->sip_port) {
|
||||
calling_myself++;
|
||||
}
|
||||
|
||||
if (sip && sip->sip_to) {
|
||||
user = switch_core_session_sprintf(session, "%s@%s", sip->sip_to->a_url->url_user, sip->sip_to->a_url->url_host);
|
||||
switch_ivr_set_user(session, user);
|
||||
}
|
||||
|
||||
is_auth++;
|
||||
}
|
||||
|
||||
if (!is_auth &&
|
||||
(sofia_test_pflag(profile, PFLAG_AUTH_CALLS)
|
||||
|| (!sofia_test_pflag(profile, PFLAG_BLIND_AUTH) && (sip->sip_proxy_authorization || sip->sip_authorization)))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user