当我将星号连接到我的提供者时,当我将我的星号连接到我的提供商时,我遇到了一个中继SIP问题,并且失去了Internet连接,中继SIP将无法到达,问题是所有本地扩展都断开,直到Internet连接关闭或我关闭主干。
第二个问题是,有时,在我制作asterisk -rx "reload"之前,互联网连接将被打开,主干仍然处于关闭状态。
如果我重新启动系统,则只有在重新加载星号时才能访问主干,也会检测到同样的问题。
这个问题有什么解决办法吗?
注:我的星号版本是1.8.15 (证书版本)
[general]
vmexten=*97
faxdetect=yes
context=from-sip-external
callerid=Unknown
notifyringing=yes
notifyhold=yes
tos_sip=cs3
tos_audio=ef
tos_video=af41
alwaysauthreject=yes
useragent=MyIPBX
disallow=all
allow=ulaw
allow=alaw
allow=gsm
language=fr
jbenable=no
rtptimeout=30
maxexpiry=3600
allowguest=yes
defaultexpiry=120
minexpiry=60
srvlookup=no
registerattempts=0
registertimeout=20
notifyhold=yes
g726nonstandard=no
t38pt_udptl=yes
videosupport=no
maxcallbitrate=384
canreinvite=no
rtpholdtimeout=300
rtpkeepalive=0
checkmwi=10
notifyringing=yes
register=myippiuser:myippisecret@ippi.fr
[100]
secret=pass100
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
dial=SIP/100
mailbox=100@default
permit=0.0.0.0/0.0.0.0
callcounter=yes
faxdetect=no
[101]
secret=pass101
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
type=friend
nat=yes
port=5060
qualify=yes
dial=SIP/101
mailbox=101@default
permit=0.0.0.0/0.0.0.0
callcounter=yes
faxdetect=no
[ippi_trunk]
username=myippiuser
type=peer
secret=myippisecret
qualify=yes
nat=yes
insecure=invite,port
host=ippi.fr
fromuser=myippiuser
fromdomain=ippi.fr
dtmfmode=rfc2833
context=from-trunk
canreinvite=no
authname=myippiuser发布于 2013-05-30 16:04:08
如果internet连接中断,星号将被阻塞,所有sip端点都被关闭,因为服务器无法通过DNS解析主干主机名地址。
这是一个已知的星号1.8中的错误,解决方案包括在主机文件中添加您的提供者的ip地址,并且在第一次通过dns解析主机名时,如果internet连接正常,则使用主机文件解析主机名。
# /etc/hosts
# I have added this line
ip_provider dns_name_provider然后,我更改了hosts:选项在nsswitch.conf文件中的顺序:
#/etc/nsswitch.conf
# Just I changed the order of dns files
.
.
.
hosts: dns fileshttps://serverfault.com/questions/511124
复制相似问题