I have an existing panasonic analog pbx in use and a asterisk server with digium tdm400p(2 fxs and 2 fxo).
channel 1 -> fxs -> telephone
channel 2 -> fxs -> telephone
channel 3 -> fxo -> extension 15 at panasonic pbx
channel 4 -> fxo -> phone line from telco
We call in to fxo (channel 4) and enter the ivr which prompt us to enter the extension number. After that asterisk will dialout from fxo(channel 3) to other extensions at panasonic pbx(eg ext 16,17,18 etc)
The problem is when the extension 16 at panasonic pbx answers the call, asterisk can only detect the ANSWER after few seconds(range from 2 to 20 seconds).
If the extension 16 is busy, caller gets a busy tone (approximately 10 seconds) before asterisk detects the BUSY status and run the following commands in dialplan.
I have tried
- to call from telephone at fxs(channel 1) to pstn number using channel 4, it can detect the status immediately.
- testing the outcome of settings in zapata.conf(busydetect, busycount, answeronpolarity, hanguponpolarity)
Another question, is there any asterisk utility which can detect the tone on a channel so that we can get its pattern?