E1线拨外地的号正常,本地固话和手机都要加拨区号才行-[已解决]

 

调武汉电信的E1线路时,发现能够正常拨打外地固话、手机,但是本地的固话和手机都需要加拨027(武汉的区号),很奇怪

,我心想如果只是武汉的固话需要加027还好办,我在呼出路由里加上就ok了,但是武汉的手机号怎么办,我要去数据库里查,如果是武汉的手机也给它加拨027吗?这样显然不行

后来电话的说,要把E1的制式由“国内”改成“用户”,哦,突然想起来,以前在武汉调ss7的时候也遇到过类似的问题,james说要改pridialplan

编辑 /etc/asterisk/chan_dahdi.conf文件

增加了pridialplan=unknown  这个参数

搞定

完成的文件如下

 

; Auto-generated by /usr/sbin/hardware_detector

[trunkgroups]

 

[channels]

pridialplan=unknown  ;zhangtuo edit 2011-3-14

context=from-pstn

signalling=fxs_ks

rxwink=300              ; Atlas seems to use long (250ms) winks

usecallerid=yes

hidecallerid=no

callwaiting=yes

usecallingpres=yes

callwaitingcallerid=yes

threewaycalling=yes

transfer=yes

canpark=yes

cancallforward=yes

callreturn=yes

echocancel=yes

echocancelwhenbridged=no

faxdetect=incoming

echotraining=800

rxgain=0.0

txgain=0.0

callgroup=1

pickupgroup=1

 

;Uncomment these lines if you have problems with the disconection of your analog lines

;busydetect=yes

;busycount=3

 

language=cn

immediate=no

 

#include dahdi-channels.conf

#include chan_dahdi_additional.conf

 

你可能感兴趣的:(Sangoma语音卡相关,asterisk,Linux)