Print error message if session for a channel could not be found
git-svn-id: http://svn.openzap.org/svn/openzap/trunk@827 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
bcd0c286a1
commit
1e7c524748
|
@ -1678,6 +1678,9 @@ static ZIO_SIGNAL_CB_FUNCTION(on_clear_channel_signal)
|
|||
zap_log(ZAP_LOG_ERROR, "TONE ERROR\n");
|
||||
}
|
||||
switch_core_session_rwunlock(session);
|
||||
} else {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Session for channel %d:%d not found\n",
|
||||
sigmsg->channel->span_id, sigmsg->channel->chan_id);
|
||||
}
|
||||
}
|
||||
case ZAP_SIGEVENT_PROGRESS_MEDIA:
|
||||
|
@ -1686,6 +1689,9 @@ static ZIO_SIGNAL_CB_FUNCTION(on_clear_channel_signal)
|
|||
channel = switch_core_session_get_channel(session);
|
||||
switch_channel_mark_pre_answered(channel);
|
||||
switch_core_session_rwunlock(session);
|
||||
} else {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Session for channel %d:%d not found\n",
|
||||
sigmsg->channel->span_id, sigmsg->channel->chan_id);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
@ -1695,6 +1701,9 @@ static ZIO_SIGNAL_CB_FUNCTION(on_clear_channel_signal)
|
|||
channel = switch_core_session_get_channel(session);
|
||||
switch_channel_mark_ring_ready(channel);
|
||||
switch_core_session_rwunlock(session);
|
||||
} else {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Session for channel %d:%d not found\n",
|
||||
sigmsg->channel->span_id, sigmsg->channel->chan_id);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue