]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_freetdm/libpri: Fix problem with some destination using early-media for IVR....
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Fri, 28 Oct 2011 19:18:58 +0000 (15:18 -0400)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Fri, 28 Oct 2011 19:18:58 +0000 (15:18 -0400)
libs/freetdm/src/ftmod/ftmod_libpri/ftmod_libpri.c

index f31eafd42e5ed6abcee17d27e81f5152325f6b65..a2c3cd604c8d0b403f2c8ba6ab636613a86214ee 100644 (file)
@@ -1165,7 +1165,7 @@ static int on_proceeding(lpwrap_pri_t *spri, lpwrap_pri_event_t event_type, pri_
 
        if (chan) {
                /* Open channel if inband information is available */
-               if (pevent->proceeding.progressmask & PRI_PROG_INBAND_AVAILABLE) {
+               if (pevent->proceeding.progressmask & PRI_PROG_INBAND_AVAILABLE || pevent->proceeding.progressmask & PRI_PROG_CALL_NOT_E2E_ISDN) {
                        ftdm_log(FTDM_LOG_DEBUG, "-- In-band information available, B-Channel %d:%d\n",
                                ftdm_channel_get_span_id(chan),
                                ftdm_channel_get_id(chan));
@@ -1207,7 +1207,7 @@ static int on_progress(lpwrap_pri_t *spri, lpwrap_pri_event_t event_type, pri_ev
 
        if (chan) {
                /* Open channel if inband information is available */
-               if (pevent->proceeding.progressmask & PRI_PROG_INBAND_AVAILABLE) {
+               if (pevent->proceeding.progressmask & PRI_PROG_INBAND_AVAILABLE || pevent->proceeding.progressmask & PRI_PROG_CALL_NOT_E2E_ISDN) {
                        ftdm_log(FTDM_LOG_DEBUG, "-- In-band information available, B-Channel %d:%d\n",
                                ftdm_channel_get_span_id(chan),
                                ftdm_channel_get_id(chan));