]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
OPENZAP-215 --resolve
authorMoises Silva <moy@sangoma.com>
Mon, 24 Jun 2013 01:48:43 +0000 (21:48 -0400)
committerMoises Silva <moy@sangoma.com>
Mon, 24 Jun 2013 01:52:31 +0000 (21:52 -0400)
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

index d65fae170664a330005db8385ab0a39441a73e47..6d31c824e928f5063804c016a6889f3be630c4b7 100644 (file)
@@ -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);
                        }