]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_sofia] add existing variables when locating user 89/head
authorlazedo <luis.azedo@factorlusitano.com>
Thu, 31 Oct 2019 12:20:33 +0000 (12:20 +0000)
committerlazedo <luis.azedo@factorlusitano.com>
Thu, 31 Oct 2019 12:20:33 +0000 (12:20 +0000)
src/mod/endpoints/mod_sofia/sofia.c

index 38cf504f83e6699313c871c8b9c4c194e8540f67..8b6a88cec2f1f7716f364c39d7f30a2db3304fce 100644 (file)
@@ -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);