From: Moises Silva Date: Mon, 24 Jun 2013 01:48:43 +0000 (-0400) Subject: OPENZAP-215 --resolve X-Git-Tag: v1.5.2~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5f2282fe16b125a6b05bf31faf08b71abbf4c08;p=thirdparty%2Ffreeswitch.git 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 --- 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); }