]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 14 Feb 2007 20:06:39 +0000 (20:06 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 14 Feb 2007 20:06:39 +0000 (20:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4271 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_wanpipe/mod_wanpipe.c

index fc6e7d46bdf78b1acf4665371bf49640bad7cd3d..d5fb140551431094be59fff4463921c954a0f2b7 100644 (file)
@@ -527,7 +527,6 @@ static switch_status_t wanpipe_read_frame(switch_core_session_t *session, switch
                        return SWITCH_STATUS_GENERR;
                }
 
-
                if (sangoma_socket_waitfor(tech_pvt->wpsock->fd, 1000, POLLIN | POLLERR | POLLHUP) <= 0) {
                        return SWITCH_STATUS_GENERR;
                }
@@ -1150,7 +1149,6 @@ static int on_ringing(struct sangoma_pri *spri, sangoma_pri_event_t event_type,
        switch_core_session_t *session;
        switch_channel_t *channel;
        struct channel_map *chanmap;
-       private_object_t *tech_pvt;
        switch_core_session_message_t *msg;
 
        chanmap = spri->private_info;
@@ -1160,7 +1158,7 @@ static int on_ringing(struct sangoma_pri *spri, sangoma_pri_event_t event_type,
                channel = switch_core_session_get_channel(session);
                assert(channel != NULL);
 
-               switch_core_session_queue_indication(tech_pvt->session, SWITCH_MESSAGE_INDICATE_RINGING);
+               switch_core_session_queue_indication(session, SWITCH_MESSAGE_INDICATE_RINGING);
                switch_channel_mark_ring_ready(channel);
 
                switch_core_session_rwunlock(session);