From a6bdbb2c09910fa049a397b8f7f61044365af156 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 22 Aug 2012 16:03:47 -0500 Subject: [PATCH] FS-4559 --resolve --- src/mod/endpoints/mod_sofia/sofia.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);