From: Anthony Minessale Date: Wed, 14 Feb 2007 20:06:39 +0000 (+0000) Subject: fix X-Git-Tag: v1.0-beta1~1097 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcfb34989d6bcb4d94198d44d706bb44d8de7b41;p=thirdparty%2Ffreeswitch.git fix git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4271 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c b/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c index fc6e7d46bd..d5fb140551 100644 --- a/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c +++ b/src/mod/endpoints/mod_wanpipe/mod_wanpipe.c @@ -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);