From 8035d498eaec367b14136476b9541de9cba04540 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Fri, 27 May 2011 10:58:51 +0200 Subject: [PATCH] ftmod_zt: Add ZT_EVENT_ABORT event handling and update ZT_EVENT_OVERRUN error message. ZT_EVENT_ABORT and ZT_EVENT_OVERRUN are HDLC events. Signed-off-by: Stefan Knoblich --- libs/freetdm/src/ftmod/ftmod_zt/ftmod_zt.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/libs/freetdm/src/ftmod/ftmod_zt/ftmod_zt.c b/libs/freetdm/src/ftmod/ftmod_zt/ftmod_zt.c index 9c01b41299..b77fde0ffa 100644 --- a/libs/freetdm/src/ftmod/ftmod_zt/ftmod_zt.c +++ b/libs/freetdm/src/ftmod/ftmod_zt/ftmod_zt.c @@ -1066,16 +1066,20 @@ static __inline__ ftdm_status_t zt_channel_process_event(ftdm_channel_t *fchan, break; case ZT_EVENT_BADFCS: { - ftdm_log_chan_msg(fchan, FTDM_LOG_ERROR, "Bad frame checksum (ZT_EVENT_BADFCS)!\n"); - /* What else could we do? */ - *event_id = FTDM_OOB_NOOP; + ftdm_log_chan_msg(fchan, FTDM_LOG_ERROR, "Bad frame checksum (ZT_EVENT_BADFCS)\n"); + *event_id = FTDM_OOB_NOOP; /* What else could we do? */ } break; case ZT_EVENT_OVERRUN: { - ftdm_log_chan_msg(fchan, FTDM_LOG_ERROR, "Driver overrun! (ZT_EVENT_OVERRUN)\n"); - /* What else could we do? */ - *event_id = FTDM_OOB_NOOP; + ftdm_log_chan_msg(fchan, FTDM_LOG_ERROR, "HDLC frame overrun (ZT_EVENT_OVERRUN)\n"); + *event_id = FTDM_OOB_NOOP; /* What else could we do? */ + } + break; + case ZT_EVENT_ABORT: + { + ftdm_log_chan_msg(fchan, FTDM_LOG_ERROR, "HDLC abort frame received (ZT_EVENT_ABORT)\n"); + *event_id = FTDM_OOB_NOOP; /* What else could we do? */ } break; case ZT_EVENT_NONE: