From e5f2282fe16b125a6b05bf31faf08b71abbf4c08 Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Sun, 23 Jun 2013 21:48:43 -0400 Subject: [PATCH] OPENZAP-215 --resolve The state FTDM_CHANNEL_STATE_RINGING is not used when there is media available. We have FTDM_CHANNEL_PROGRESS_MEDIA for that, therefore the pri_acknowledge() call should not set the info argument to avoid sending an indication of media to the other end, as that may cause the other end to not generate any ringing tone and at that moment we will not be generating any ringing tone either and the caller will hear only silence --- libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c b/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c index d65fae1706..6d31c824e9 100644 --- a/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c +++ b/libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c @@ -1013,7 +1013,7 @@ static ftdm_status_t state_advance(ftdm_channel_t *chan) } } else if (call) { // pri_progress(isdn_data->spri.pri, call, ftdm_channel_get_id(chan), 1); - pri_acknowledge(isdn_data->spri.pri, call, ftdm_channel_get_id(chan), 1); + pri_acknowledge(isdn_data->spri.pri, call, ftdm_channel_get_id(chan), 0); } else { ftdm_set_state_locked(chan, FTDM_CHANNEL_STATE_RESTART); }