git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4271 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-02-14 20:06:39 +00:00
parent 318914124b
commit fcfb34989d

View File

@ -527,7 +527,6 @@ static switch_status_t wanpipe_read_frame(switch_core_session_t *session, switch
return SWITCH_STATUS_GENERR; return SWITCH_STATUS_GENERR;
} }
if (sangoma_socket_waitfor(tech_pvt->wpsock->fd, 1000, POLLIN | POLLERR | POLLHUP) <= 0) { if (sangoma_socket_waitfor(tech_pvt->wpsock->fd, 1000, POLLIN | POLLERR | POLLHUP) <= 0) {
return SWITCH_STATUS_GENERR; 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_core_session_t *session;
switch_channel_t *channel; switch_channel_t *channel;
struct channel_map *chanmap; struct channel_map *chanmap;
private_object_t *tech_pvt;
switch_core_session_message_t *msg; switch_core_session_message_t *msg;
chanmap = spri->private_info; 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); channel = switch_core_session_get_channel(session);
assert(channel != NULL); 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_channel_mark_ring_ready(channel);
switch_core_session_rwunlock(session); switch_core_session_rwunlock(session);