keywords: ip pbx voip gateway gsm gateway

× Questions about A400/800/1200 Analog Interface Card

patched callerid with A800P/A1200P

12 years 8 months ago #997 by james.zhu
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

Attachments:
12 years 8 months ago #1002 by xunfa
如果用的是
zaptel-1.2.19-3
asterisk-1.2.23-1
能用这个补丁吗
12 years 8 months ago #1003 by miaolin
功能上可以用,但是你得修改一下opvxa1200.c和wctdm.c代码,有些数据结构在1.2上不存在。大部分编译出错的部分只需要注释掉就可以
12 years 8 months ago #1004 by james.zhu
hi:
I think you can not compile it under zaptel-1.2.XXX. if possible, please use the version i used before.
Regards!
James.zhu

12 years 8 months ago #1005 by xunfa
hello James.zhu
你说告诉我调试一些参数试一下,是那里的参数呢?能不能跟我说明一下,我这里可能有些急。
12 years 8 months ago #1007 by lailai
[LD] chan_sip.o -> chan_sip.so
[CC] chan_skinny.c -> chan_skinny.o
[LD] chan_skinny.o -> chan_skinny.so
[CC] chan_zap.c -> chan_zap.o
chan_zap.c: In function `destroy_zt_pvt':
chan_zap.c:2222: error: dereferencing pointer to incomplete type
chan_zap.c:2222: error: dereferencing pointer to incomplete type
chan_zap.c:2222: error: dereferencing pointer to incomplete type
chan_zap.c:2222: error: dereferencing pointer to incomplete type
chan_zap.c:2222: error: dereferencing pointer to incomplete type
chan_zap.c:2222: warning: implicit declaration of function `ast_smdi_interface_destroy'
make[1]: *** [chan_zap.o] Error 1
make: *** [channels] Error 2
按照你说的,我再make install asterisk(1.4.19版本)的时候出现了这个错误
Time to create page: 0.042 seconds
Powered by Kunena Forum