zapcard: ioctl SetAudioMode to false, ensuring a clear data channel

This commit is contained in:
Manawyrm 2023-09-07 13:01:40 +02:00 committed by Harald Welte
parent 4b47b724ba
commit cb016b244f
1 changed files with 5 additions and 0 deletions

View File

@ -1131,6 +1131,11 @@ bool ZapDevice::open(unsigned int numbufs, unsigned int bufsize)
DDebug(m_owner,DebugNote,"%snumbufs=%u bufsize=%u on channel %u [%p]",
m_name.safe(),numbufs,bufsize,m_channel,m_owner);
// Treat all B channels as clear data channels.
// No echo cancellation, no conferencing hacks, no volume control
int x = 0;
ioctl(SetAudioMode, &x);
return true;
}