Thread
Print

2 FXO 来电区分和PHS显示问题

2 FXO 来电区分和PHS显示问题

硬件: Openvox A400P 2FXO+2FXS  Grandstream GXP200
1/2 端口为FXSO,3/4端口 为FXS

拨入,拨出基本正常。
软件:Trixbox 2.8.0.4
问题:
1) 外线1和外线2 号码不同(2外线均为上海电信PSTN),但是GXP200上来电显示都是 device <caller id>
     这儿是否能区分外线1和外线2。

2) 如果外线1接了一个 PHS 平台(上海电信小灵通),但是无法获取来电,用电话机正常。
     如何调整?


[ Last edited by sparkwan at 2010-7-26 17:56 ]

TOP

附上: chan_dahdi_additional.conf

附上: chan_dahdi_additional.conf
;;;;;;[801]
signalling=fxo_ks
pickupgroup=
mailbox=801@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=device <801>
busydetect=yes
busycount=3
accountcode=
channel=>3

;;;;;;[802]
signalling=fxo_ks
pickupgroup=
mailbox=802@device
immediate=no
echotraining=800
echocancelwhenbridged=no
echocancel=yes
context=from-internal
callprogress=no
callgroup=
callerid=device <802>
busydetect=no
busycount=7
accountcode=
channel=>4

TOP

chan_dahdi.conf

;# Flash Operator Panel will parse this file for dahdi trunk buttons
;# AMPLABEL will be used for the display labels on the buttons

;# %c Dahdi Channel number
;# %n Line number
;# %N Line number, but restart counter
;# Example:
;# ;AMPLABEL:Channel %c - Button %n

;# For Dahdi/* buttons use the following
;# (where x=number of buttons to dislpay)
;# ;AMPWILDCARDLABEL(x):MyLabel   


[channels]
language=en

; include dahdi extensions defined in FreePBX
#include dahdi-channels.conf
#include chan_dahdi_additional.conf

; XTDM20B Port #1,2 plugged into PSTN
;AMPLABEL:Channel %c - Button %n
context=from-pstn
signalling=fxs_ks
faxdetect=no
usecallerid=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
group=0
channel=1-2
busydetect=yes
busycount=3
answeronpolarityswitch=yes
hunguponpolarityswitch=yes
callerid=asreceived

TOP

你好
     麻烦你把你的SSH到我邮箱,我帮你检查一下!
               
                       email:svolta.tang@openvox.cn
                                                msn:svolta@hotmail.com

TOP

你dahdi的配置文件context里少了这个:
Copy to clipboard
Code:
usecallerid=yes
不要手工指定callerid

TOP

to zhangr:

有一个callerid=asreceived啊。
另外

chan_dahdi_additional.conf 中的callerid=device <801>类似的东西好像是自动生成的(FreePBX还是dahdi_genconf?应该是freepbx我在添加了2个FXS Extension之后)

[ Last edited by sparkwan at 2010-7-27 22:06 ]

TOP

to svolta

SSH主机,用户名和密码已经发到你邮箱

TOP

谢谢大家
问题1 不好解决,好像trixbox里面并没有考虑外线区分问题。
问题2, 因为PHS平台传递的信号时DTMF,不是FSK,
Asterisk默认是FSK,所以显示不了。
     解决方法:1)买了一个DTMF TO FSK转换器就OK了(taobao上有卖的,大概40一个),这个也是我现在的解决方法
                       2)修改源代码,重新编译,这个网上也有相关代码,修改dahdi的默认制式,但是没有尝试。

TOP

Thread
Visited forums ...