Asterisk 星号&;免费电话
我是星号的初学者,所以我不能把电话从主线转到星号线,有人能帮我吗?? 我有星号卡,它有Asterisk 星号&;免费电话,asterisk,voip,pbx,freepbx,Asterisk,Voip,Pbx,Freepbx,我是星号的初学者,所以我不能把电话从主线转到星号线,有人能帮我吗?? 我有星号卡,它有4个端口,2个用于FXO,2个用于FXS,我在FXS端口上附加了2条地线,在FXO端口上插入了PSTN线路,我为这两条地线生成了DAHDI扩展,第一条是101,第二条是102,我检查两个都可以成功地相互通话,使用软电话也可以拨打101和102,但问题是当有人打陆路电话时,他们无法拨打,也无法接听电话,所以请给我一些拨号平面 我还配置了 extension.conf 但还是没有成功。。。。 所以请帮助我 关于您的
4个端口
,2个用于FXO
,2个用于FXS
,我在FXS端口
上附加了2条地线,在FXO端口
上插入了PSTN线路,我为这两条地线生成了DAHDI
扩展,第一条是101
,第二条是102
,我检查两个都可以成功地相互通话,使用软电话
也可以拨打101
和102
,但问题是当有人打陆路电话时,他们无法拨打,也无法接听电话,所以请给我一些拨号平面
我还配置了
extension.conf
但还是没有成功。。。。
所以请帮助我
关于您的更多信息,我将粘贴其他一些.conf文件
/etc/dahdi/system.conf 如上面的文件
system.conf
所示,在这个fxsks频道是1和2,fxoks频道是3和4,fxoks频道是3和4,fxoks频道是1和2,freePBX
用于gui模式,当我搜索Connectivity=>Dahdi
时,我得到了fxsks频道是3和4,fxoks频道是1和2,哪一个是对的?
/etc/asterisk/chan_dahdi.conf
/etc/asterisk/dahdi-channels.conf
我在开始讨论时提到的
extension.conf
中做了更多的更改
我想分享更多信息,我在服务器PC上安装了freePBX
,基于CentOS
,没有gui界面,我在其他PC上使用了freePBX
,使用了服务器的IP地址。
我在SIP
和Dahdi
的基础上做了一些扩展,如果我用软电话从105(SIP扩展)
呼叫101(Dahdi扩展)
它的工作,我会成功地进行扩展。
但当我试着从我的电话打到固定电话时,Dahdi分机线并没有响。
我还试图修改我在上述评论中提到的extension.conf
文件。。
告诉一件事,使用freePBX或在conf文件中使用修改哪个方法更好??
谢谢..明白了--您没有按照dahdi channels.conf
在freePBX之外,原始星号配置是,在您的extensions.conf
中,您需要添加如下部分:
[from-pstn]
exten => _X.,1,Noop(Incoming call "from PSTN")
same => n,Answer()
same => n,Playback(demo-congrats)
same => n,Hangup()
在dahdi channels.conf
的前两部分中,有一个来自pstn的context=from
的定义,您需要在extensions.conf
[bracketed]
项是星号中的“上下文”,用于指定拨号计划操作的特定上下文。可以找到更多信息,特别是从(免费)的书中找到的——您没有为pstn中的定义上下文,如dahdi channels.conf
在freePBX之外,原始星号配置是,在您的extensions.conf
中,您需要添加如下部分:
[from-pstn]
exten => _X.,1,Noop(Incoming call "from PSTN")
same => n,Answer()
same => n,Playback(demo-congrats)
same => n,Hangup()
在dahdi channels.conf
的前两部分中,有一个来自pstn的context=from
的定义,您需要在extensions.conf
[bracketed]
项是星号中的“上下文”,用于指定拨号计划操作的特定上下文。更多信息可以从(免费)的书中找到
[general]
#include chan_dahdi_general.conf
#include chan_dahdi_general_custome.conf
[channels]
language=en
busydetect=yes
busycount=10
usecallerid=yes
callwaiting=yes
usecallingpres=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=no
immediate=no
faxdetect=no
rxgain=0.0
txgain=0.0
#include chan_dahdi_channels_custem.conf
#include chan_dahdi_groups.conf
#include chan_dahdi_additional.conf
;line="1 WCTDM/4/0 FXSKS (in use) (EC:MG2-INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel=>1
callerid=
group=
context=default
;line="2 WCTDM/4/1 FXSKS (in use) (EC:MG2-INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel=>2
callerid=
group=
context=default
;line="3 WCTDM/4/2 FXOKS (in use) (EC:MG2-INACTIVE)"
signalling=fxo_ks
callerid="channel 3" <4003>
mailbox=4003
group=5
context=from-internal
channel=>3
callerid=
mailbox=
group=
context=default
;line="4 WCTDM/4/3 FXOKS (in use) (EC:MG2-INACTIVE)"
signalling=fxo_ks
callerid="channel 4" <4004>
mailbox=4004
group=5
context=from-internal
channel=>4
callerid=
mailbox=
group=
context=default
[channels]
language=en
#include zapata_additional.conf
context=from-pstn
signalling=fxs_ks
faxdetect=incoming
usecallerid=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
group=0
channel=1-2
[from-pstn]
exten => _X.,1,Noop(Incoming call "from PSTN")
same => n,Answer()
same => n,Playback(demo-congrats)
same => n,Hangup()