freetdm: ftmod_r2 - handle FTDM_CHANNEL_STATE_RINGING, just printing a debug message

This commit is contained in:
Arnaldo Pereira 2010-12-10 19:31:11 -02:00
parent 666e9fc2c6
commit 1347983883
1 changed files with 7 additions and 0 deletions

View File

@ -1605,6 +1605,13 @@ static int ftdm_r2_state_advance(ftdm_channel_t *ftdmchan)
}
break;
/* INDICATE_RINGING doesn't apply to MFC/R2. maybe we could generate a tone */
case FTDM_CHANNEL_STATE_RINGING:
{
ftdm_log_chan_msg(ftdmchan, FTDM_LOG_DEBUG, "RINGING indicated, ignoring it as it doesn't apply to MFC/R2\n");
}
break;
default:
{
ftdm_log_chan(ftdmchan, FTDM_LOG_ERROR, "Unhandled channel state change: %s\n", ftdm_channel_state2str(ftdmchan->state));