Hi there,
I am trying to make TDU identify three CP tones (dial tone, ringback and busy tone). Actually initial target is DTMF and CP detection together.
DTMF and CP detection works well but separately. However when I add dtmf between dial tone and ringback TDU cannot identify ringback properly. But other CP tones are detected without problems.
My audio tests are (8khz, 16-bit, u-law)
1. dialtone.pcm - fine
2. ringback.pcm - fine
3. busytone.pcm - fine
4. cp_full.pcm (dial, ringtone, busy) - fine
5. dtmf_cp.pcm (dial, dtmf, ringtone, busy) - ringtone is missed.
Question:
1. Is it possible to detect DTMF and CP tones with one TDU instance?
2. If so how to adjust TDU properly?
For test I am using TDU demo (Volib 2_1_0_1)
My settings:
tbool overwrite_scr; /* FALSE: Overwrite scratch buffers between calls */
tduSim.cfgCtl.u.cpt.startFreq = 300; tduSim.cfgCtl.u.cpt.endFreq = 700; tduControl (tduInst, tdu_CTL_CPT_ON, &tduSim.cfgCtl);