hello, all of users:
if you have a problem with callerid with DTMF format, please try to download the file and recompile your zaptel. there are few points you need to note:
i test it under zaptel-1.4.10 and asterisk 1.4.8. i think it should work under zaptel-1.4.9.2. what i do is patch three files:
1) wctdm.c for A400P // it is under /zaptel-1.4.XX/kernel
2) opvxa1200.c for A800P/A1200P // you must put it under zaptel-1.4.XX/kernel
3) chan_zap.c for asterisk-1.4.8 // this file is under asterisk/channels/
4) zapata.conf is for sample.
you can replace the chan_zap.c in asterisk source code , wctdm.c and put opvxa1200.c in zaptel/kernel
compiling zaptel in this way for A1200P/A800P
1) add opvxa1200 in topmodule(TOPDIR_MODULES:=) in Makefile
2) add opvxa1200.o: kernel/wctdm.h kernel/zaptel.h
find the line as below:
ztprovision.o: kernel/zaptel.h
ztmonitor.o: kernel/zaptel.h
opvxa1200.o: kernel/zaptel.h kernel/wctdm.h
ztspeed: CFLAGS=
3) If it is wctdm.c, you do not need do step 2, just ignore step 2. you replace original wctdm.c(under zaptel-1.4.XX/kernel) with the new patched wctdm.c.
4) run command: make, make install.
after rebooting it, you can edit the zaptel.conf and zapata.conf and load the module by:
1) you must change the two parameters in zapata.conf to this:
cidsignalling=dtmf
cidstart=polarity
2) modprobe zaptel // load zaptel driver
3) modprobe opvxa1200 cidbeforering=1 ; if loading a400p, please change to wctdm cidbeforering=1
here, users must to know how the callerid has been sent:
if before first ring, no polarity sending, send cid,then first ring:
please set : cidbeforering=1
if after first ring then send cid, you have to set cidbeforering=1 cidbuflen=10
4) ztcfg -vvvvvvvvv
try to make calls, if can not display callerid, please:
1) modprobe -r opvxa1200
2) modprobe opvxa1200 cidbeforering=1 cidbuflen=10; load it again.
3) asterisk -vvvvvvvvvvgc
i post the zip file for you. it contains four files, please put those files in a right place. if you have any problem, please let me know!
Regards!
James.zhu