Skip to content

Commit

Permalink
zapcard: ioctl SetAudioMode to false, ensuring a clear data channel
Browse files Browse the repository at this point in the history
  • Loading branch information
Manawyrm authored and laf0rge committed Sep 19, 2023
1 parent c51cf96 commit 7b5745f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/server/zapcard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,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;
}

Expand Down

0 comments on commit 7b5745f

Please sign in to comment.