/* Put a RING-message to all modem-channels who have the RI-bit set. This function is called every second via timer-interrupt from within timer-dispatcher isdn_timer_function()  */
void isdn_tty_modem_ring(void)
/* Put a RING-message to all modem-channels who have the RI-bit set. This function is called every second via timer-interrupt from within timer-dispatcher isdn_timer_function()  */
void isdn_tty_modem_ring(void)
{
	int ton = 0;
	int i;
	for (i = 0; i < ISDN_MAX_CHANNELS; i++) {
		modem_info *info = &dev->mdm.info[i];
		if (info->msr & UART_MSR_RI) {
			ton = 1;
			isdn_tty_modem_result(RESULT_RING, info);
		}
	}
	isdn_timer_ctrl(ISDN_TIMER_MODEMRING, ton);
}