keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

Can't get callerid from PSTN

12 years 3 months ago #7706 by LazyCharles
你好,
我使用Elastix 2.0.3,目前在台灣,據我所知,台灣的callerid為 ETSI-FSK 及 DTMF兩種。
我安裝了OPENVOX A400P,並且下載了貴公司網站上的 DAHDI_2.3.0_to_2.3.0.1_callerid_patch.tar.gz,也下載
dahdi-2.3.0.1-3.src.rpm 重新編譯,
我不喜歡每次重新單獨安裝 dahdi-2.3.0.1xxxxx.tar.gz,所以,利用修改 srpm裡面的 spec,產生新的rpm安裝檔案,並且強制安裝。
我修改 dahdi.spec,產生了三個RPMs

dahdi-2.3.0.1-3.i386.rpm
dahdi-devel-2.3.0.1-3.i386.rpm
kernel-module-dahdi-2.3.0.1-3_2.6.18_194.3.1.el5.i386.rpm

用 rpm -ivh *.rpm --force

重新安裝了這三個rpm

並且 dahdi_channels 設定如下
;;; line="1 WCTDM/4/0 FXSKS (In use)"
signalling=fxs_ks
callerid=asreceived
usecallerid=yes
cidsignalling=bell (按照貴公司建議的設定值,我也測試過 v23)
cidstart=polarity (按照貴公司建議的設定值,我也測試過 ring)
hidecallerid=no
group=0
context=from-test (我用來顯示callerid的測試context)
channel => 1
callerid=
group=
context=default

我的 extensions.conf 如下
[from-test]
exten => s,1,Wait(3)
exten => s,n,NoOp(${CALLERID(number)})
exten => s,n,NoOp(${CALLERID(name)})
exten => s,n,Wait(5)
exten => s,n,NoOp(${CALLERID(number)})
exten => s,n,NoOp(${CALLERID(name)})
exten => s,n,Hangup

我的 system.conf 如下
fxsks=1
echocanceller=mg2,1 (聽說oslec會影響,所以改為mg2)
# Global data
loadzone = tw
defaultzone = tw


測試撥入,得到的結果如下
-- Starting simple switch on 'DAHDI/1-1'
-- Executing [s@from-test:1] Wait("DAHDI/1-1", "3") in new stack
-- Executing [s@from-test:2] NoOp("DAHDI/1-1", "") in new stack
-- Executing [s@from-test:3] NoOp("DAHDI/1-1", "") in new stack
-- Executing [s@from-test:4] Wait("DAHDI/1-1", "5") in new stack
-- Executing [s@from-test:5] NoOp("DAHDI/1-1", "") in new stack
-- Executing [s@from-test:6] NoOp("DAHDI/1-1", "") in new stack
-- Executing [s@from-test:7] Hangup("DAHDI/1-1", "") in new stack


這樣測試了半天,發現那個patch好像沒甚麼用處。
請問,該怎樣調整?
12 years 3 months ago #7707 by LazyCharles
附上 dahdi_monitor 1 -r rx.pcm -t tx.pcm 所錄製下來的 rx.pcm + tx.pcm
Attachments:
12 years 3 months ago #7708 by tim.june
Hi,
from the record, your cidsignalling is dtmf, pls try this:
cidsignalling=dtmf
cidstart=ring
And pls load the driver like this:
modprobe wctdm cidbeforering=1 opermode=TAIWAN
then try again!
If still not work, pls send SSH to me, i will help you.
My email: This email address is being protected from spambots. You need JavaScript enabled to view it.

Email: This email address is being protected from spambots. You need JavaScript enabled to view it.
Skype: tim.jjune
12 years 3 months ago #7709 by LazyCharles
Where to load this driver with "modprobe wctdm cidbeforering=1 opermode=TAIWAN"?
Just add "wctdm cidbeforering=1 opermode=TAIWAN" after /etc/modprobe.conf ?
Time to create page: 0.033 seconds
Powered by Kunena Forum