Fixed audio bridge to mISDN ports

Audio must be bridged, even if the call is not connected, but if
audio data is already available.
This commit is contained in:
Andreas Eversberg 2012-01-19 09:44:48 +01:00
parent ef0eddbfec
commit 145f8adab1
1 changed files with 3 additions and 3 deletions

View File

@ -1447,6 +1447,9 @@ void PmISDN::bchannel_receive(struct mISDNhead *hh, unsigned char *data, int len
if (p_m_inband_receive_on)
inband_receive(data, len);
/* send to remote, if bridged */
bridge_tx(data, len);
/* calls will not process any audio data unless
* the call is connected OR tones feature is enabled.
*/
@ -1484,9 +1487,6 @@ void PmISDN::bchannel_receive(struct mISDNhead *hh, unsigned char *data, int len
cryptman_listen_bch(data, len);
}
/* send to remote, if bridged */
bridge_tx(data, len);
}