zapcard: revert buffer length back to 160 (20ms)

while the smaller buffer length had a positive impact on
ISDN data calls, it breaks yate's handling of SIP/RTP to TDM calls.
Yate will start to emit 16ms packets with a buffer length of 128,
which will lead to broken call audio with many SIP providers.
This commit is contained in:
Manawyrm 2023-09-12 21:36:26 +00:00 committed by Harald Welte
parent 498dc6bcc7
commit 099b17459c
1 changed files with 3 additions and 3 deletions

View File

@ -1696,7 +1696,7 @@ ZapInterface::ZapInterface(const NamedList& params)
m_device(ZapDevice::DChan,this,0,0),
m_priority(Thread::Normal),
m_errorMask(255),
m_numbufs(4), m_bufsize(512), m_buffer(0),
m_numbufs(16), m_bufsize(1024), m_buffer(0),
m_readOnly(false), m_sendReadOnly(false),
m_notify(0),
m_timerRxUnder(0)
@ -2247,9 +2247,9 @@ ZapCircuit::ZapCircuit(ZapDevice::Type type, unsigned int code, unsigned int cha
tmp = (unsigned int)config.getIntValue("echotrain",defaults.getIntValue("echotrain",400));
m_echoTrain = tmp >= 0 ? tmp : 0;
m_canSend = !getBoolValue("readonly",config,defaults,params);
m_buflen = (unsigned int)config.getIntValue("buflen",defaults.getIntValue("buflen",128));
m_buflen = (unsigned int)config.getIntValue("buflen",defaults.getIntValue("buflen",160));
if (!m_buflen)
m_buflen = 128;
m_buflen = 160;
m_consBufMax = m_buflen * 4;
m_sourceBuffer.assign(0,m_buflen);
m_idleValue = defaults.getIntValue("idlevalue",0xff);