diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index dc98c5aaf5..317ec28f55 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1721,7 +1721,9 @@ void sofia_event_callback(nua_event_t event, private_object_t *tech_pvt; tech_pvt = (private_object_t *) switch_core_session_alloc(session, sizeof(private_object_t)); - + tech_pvt->profile = profile; + tech_pvt->channel = switch_core_session_get_channel(session); + tech_pvt->session = session; switch_mutex_init(&tech_pvt->flag_mutex, SWITCH_MUTEX_NESTED, switch_core_session_get_pool(session)); switch_mutex_init(&tech_pvt->sofia_mutex, SWITCH_MUTEX_NESTED, switch_core_session_get_pool(session)); switch_core_session_set_private(session, tech_pvt);