]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_sofia: sofia_handle_sip_i_state needs a valid tech_pvt
authorMathieu Rene <mrene@avgs.ca>
Sun, 16 Aug 2009 18:03:24 +0000 (18:03 +0000)
committerMathieu Rene <mrene@avgs.ca>
Sun, 16 Aug 2009 18:03:24 +0000 (18:03 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14535 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index a3283f373d8896642d93e697ab5c6775f89cfcb0..d95a9410f267df577a5419b753dea8dcd61699b5 100644 (file)
@@ -3252,7 +3252,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
        int offer_recv = 0, answer_recv = 0, offer_sent = 0, answer_sent = 0;
        int ss_state = nua_callstate_init;
        switch_channel_t *channel = NULL;
-       private_object_t *tech_pvt = NULL;
+       private_object_t *tech_pvt = session ? switch_core_session_get_private(session) : NULL;
        const char *replaces_str = NULL;
        const char *uuid;
        switch_core_session_t *other_session = NULL;