dev2003@mail.ustc.edu.cn
2004-Nov-28 23:51 UTC
[Asterisk-Users] how to modify dsp.c so that It can detect busytone outside US?
how to modify dsp.c so that It can detect busytone outside US? I have a X100P connected to my analog PBX. I can´t detect hangups on this line While the line is connected to the PBX, I can never detect busy and the line hangs at the end of every call. How can I adjust the detection routines to the tone I´m getting? I have tried to mess with busy_min, busy_max etc on dsp.c with no luck. in /etc/asterisk/zapata.conf busydetect=yes busycount=4 callprogress=no when set callprogress=yes ,can not answer the call. BUT busydetect can not detect hangup,callprogress can not detect hangup outside US, Tone plan : busy tone 450Mhz 0.35s<On Time(ms)> 0.35<Off Time(ms) how to modify dsp.c to detect busy tone 450Mhz 0.35s<On Time(ms)> 0.35<Off Time(ms)? thanks dsp.c #ifdef BUSYDETECT_MARTIN int ast_dsp_busydetect(struct ast_dsp *dsp) I find that it is not 1 . ((hittone >= dsp->busycount - 1) && (hitsilence >= dsp->busycount - 1) && (avgtone >= BUSY_MIN && avgtone <= BUSY_MAX) && (avgsilence >= BUSY_MIN && avgsilence <= BUSY_MAX) 2004-11-12 14:32:04 DEBUG[26996]: dsp.c:1320 ast_dsp_busydetect: TEST show: dsp->busycount - 1:3,hittone:0 ,hitsilence :0, avgtone 270 , avgsilence 100