[Asterisk-Dev] how to modify dsp.c so that It can detect busytone outside US?

dev2003 at mail.ustc.edu.cn dev2003 at mail.ustc.edu.cn
Thu Nov 11 23:32:46 MST 2004


how to modify dsp.c so that It can detect busytone outside US?


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






More information about the asterisk-dev mailing list