From: lazedo Date: Thu, 31 Oct 2019 12:20:33 +0000 (+0000) Subject: [mod_sofia] add existing variables when locating user X-Git-Tag: v1.10.2^2~79^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F89%2Fhead;p=thirdparty%2Ffreeswitch.git [mod_sofia] add existing variables when locating user --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 38cf504f83..8b6a88cec2 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -10131,6 +10131,7 @@ switch_status_t sofia_locate_user(char* user, switch_core_session_t *session, si 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); }; + switch_channel_event_set_data(switch_core_session_get_channel(session), v_event); } result = switch_xml_locate_user_merged("id", username, domain, NULL, x_user, v_event);