提交 fa222d0d authored 作者: Stefan Knoblich's avatar Stefan Knoblich

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
上级 77961a72
......@@ -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;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论