mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-19 18:51:48 +00:00
Merge pull request #1058 in FS/freeswitch from ~LAZEDO/freeswitch:feature/FS-9735 to master
* commit '498ce4fc83953ed53c74f054163c829a439737df': FS-9735 - send unknown headers to switch_ivr_set_user
This commit is contained in:
@@ -10032,7 +10032,12 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
|
||||
|
||||
if (sip && sip->sip_from) {
|
||||
user = switch_core_session_sprintf(session, "%s@%s", sip->sip_from->a_url->url_user, sip->sip_from->a_url->url_host);
|
||||
blind_result = switch_ivr_set_user(session, user);
|
||||
switch_event_create(&v_event, SWITCH_EVENT_REQUEST_PARAMS);
|
||||
for (un = sip->sip_unknown; un; un = un->un_next) {
|
||||
switch_event_add_header_string(v_event, SWITCH_STACK_BOTTOM, un->un_name, un->un_value);
|
||||
};
|
||||
blind_result = switch_ivr_set_user_extended(session, user, v_event);
|
||||
switch_event_destroy(&v_event);
|
||||
}
|
||||
if(!sofia_test_pflag(profile, PFLAG_BLIND_AUTH_ENFORCE_RESULT) || blind_result == SWITCH_STATUS_SUCCESS) {
|
||||
is_auth++;
|
||||
|
||||
Reference in New Issue
Block a user