forked from Mirrors/freeswitch
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 <s.knoblich@axsentis.de>
This commit is contained in:
parent
3a918f3333
commit
8035d498ea
@ -1066,16 +1066,20 @@ static __inline__ ftdm_status_t zt_channel_process_event(ftdm_channel_t *fchan,
|
|||||||
break;
|
break;
|
||||||
case ZT_EVENT_BADFCS:
|
case ZT_EVENT_BADFCS:
|
||||||
{
|
{
|
||||||
ftdm_log_chan_msg(fchan, FTDM_LOG_ERROR, "Bad frame checksum (ZT_EVENT_BADFCS)!\n");
|
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; /* What else could we do? */
|
||||||
*event_id = FTDM_OOB_NOOP;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ZT_EVENT_OVERRUN:
|
case ZT_EVENT_OVERRUN:
|
||||||
{
|
{
|
||||||
ftdm_log_chan_msg(fchan, FTDM_LOG_ERROR, "Driver overrun! (ZT_EVENT_OVERRUN)\n");
|
ftdm_log_chan_msg(fchan, FTDM_LOG_ERROR, "HDLC frame overrun (ZT_EVENT_OVERRUN)\n");
|
||||||
/* What else could we do? */
|
*event_id = FTDM_OOB_NOOP; /* What else could we do? */
|
||||||
*event_id = FTDM_OOB_NOOP;
|
}
|
||||||
|
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;
|
break;
|
||||||
case ZT_EVENT_NONE:
|
case ZT_EVENT_NONE:
|
||||||
|
Loading…
Reference in New Issue
Block a user