freetdm: Override regular media with ringback in E&M when a ringback file is specified

This commit is contained in:
Moises Silva 2013-06-26 00:10:04 -04:00
parent 626dd2551a
commit bd4a5914dc
1 changed files with 3 additions and 1 deletions

View File

@ -722,7 +722,9 @@ static void *ftdm_analog_em_channel_run(ftdm_thread_t *me, void *obj)
if (analog_data->ringback_during_collect && ringback_f &&
(ftdmchan->state == FTDM_CHANNEL_STATE_COLLECT ||
ftdmchan->state == FTDM_CHANNEL_STATE_RING ||
ftdmchan->state == FTDM_CHANNEL_STATE_RINGING
ftdmchan->state == FTDM_CHANNEL_STATE_RINGING ||
ftdmchan->state == FTDM_CHANNEL_STATE_PROGRESS ||
ftdmchan->state == FTDM_CHANNEL_STATE_PROGRESS_MEDIA
)) {
indicate = 1;
}