Asterisk,DID 来电故障
我们正在与 Asterisk 合作,但在使用 DID 号码接听电话时遇到一些问题。 当我们拨打号码 Asterisk 时看不到来电。什么也没发生。 我们检查了 VoIP 服务器并收到了呼叫,但 Asterisk 没有接听呼叫。
请在下面找到conf文件:
Extensions.conf
:
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[globals]
CONSOLE=Console/dsp
IAXINFO=guest
TRUNK=Zap/g2
TRUNKMSD=1
[ovh_sip]
;exten => s,1,Ringing(1)
exten => s,2,Answer
exten => s,3,Dial(SIP/201,30)
e xten => s,4,Hangup(16)
[outgoing_calls]
exten => _X.,1,Dial(SIP/${EXTEN:1}@forfait-ovh)
SIP.conf
[general]
context=forfait-ovh
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
register => login:[email protected]
registerattempts=0
registertimeout=3600
[201]
type=friend
username=201
callerid="201" <3223315331>
secret=201
host=dynamic
context=appel_sortant
language=fr
insecure=port
nat=yes
canreinvite=no
dtmfmode=auto
video=no
restrictcid=no
amaflags=default
[email protected]
[202]
type=friend
username=202
callerid="202" <3223315331>
secret=202
host=dynamic
context=appel_sortant
language=fr
insecure=port
nat=yes
canreinvite=no
dtmfmode=auto
video=no
restrictcid=no
amaflags=default
[email protected]
[forfait-ovh]
type=peer
host=sip5.5voip.be
context=ovh_sip
language=fr
insecure=port,invite
username=3223315331
secret=5telecom
nat=yes
canreinvite=no
dtmfmode=auto
video=no
restrictcid=no
amaflags=default
sip帐户并不是一直都注册的,当我们输入“show sipregistry”时它总是为空。
预先感谢您的答复。
We are working with Asterisk and we have some problems to receive call using DID numbers.
When we are calling the did number Asterisk do not see the incoming calls. Nothing happens.
We have checked on the voip server and we get the calls but Asterisk is not taking the calls.
Please find below the conf files:
Extensions.conf
:
[general]
static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no
[globals]
CONSOLE=Console/dsp
IAXINFO=guest
TRUNK=Zap/g2
TRUNKMSD=1
[ovh_sip]
;exten => s,1,Ringing(1)
exten => s,2,Answer
exten => s,3,Dial(SIP/201,30)
e xten => s,4,Hangup(16)
[outgoing_calls]
exten => _X.,1,Dial(SIP/${EXTEN:1}@forfait-ovh)
SIP.conf
[general]
context=forfait-ovh
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
register => login:[email protected]
registerattempts=0
registertimeout=3600
[201]
type=friend
username=201
callerid="201" <3223315331>
secret=201
host=dynamic
context=appel_sortant
language=fr
insecure=port
nat=yes
canreinvite=no
dtmfmode=auto
video=no
restrictcid=no
amaflags=default
[email protected]
[202]
type=friend
username=202
callerid="202" <3223315331>
secret=202
host=dynamic
context=appel_sortant
language=fr
insecure=port
nat=yes
canreinvite=no
dtmfmode=auto
video=no
restrictcid=no
amaflags=default
[email protected]
[forfait-ovh]
type=peer
host=sip5.5voip.be
context=ovh_sip
language=fr
insecure=port,invite
username=3223315331
secret=5telecom
nat=yes
canreinvite=no
dtmfmode=auto
video=no
restrictcid=no
amaflags=default
The sip account is not registered all the time , when we type "show sip registry" it is always empty.
Thank you in advance for your answer.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试将“qualify=yes”添加到上面的 [forfait-ovh] 的 SIP 中继选项中,并(如 payne 所说)打开 SIP 调试。
另外,可以肯定的是:您说您熟悉 VoIP,所以也许这是一个愚蠢的建议,但是...
我猜您的 Asterisk 服务器位于防火墙后面,对吗?所以我想您已经完成了所有明智且必要的步骤,通过在路由器/防火墙上设置必要的端口转发规则,允许将外部发起的呼叫传送到您的 Asterisk 盒子?
这里有一个概述: http://www.voip-info.org/wiki /查看/端口+转发
也在这里:http://forums.whirlpool.net.au/archive/679361
其实这样的事情还有很多...
Try adding "qualify=yes" to your SIP trunk options for [forfait-ovh] above, and (as payne says) turn on SIP debugging.
In addition, just to be sure: you say you're familiar with VoIP so perhaps this is a dumb suggestion, but ...
I guess your Asterisk server is behind a firewall right? So I imagine that you've done all the sensible and necessary steps to allow an externally originated call to be delivered to your Asterisk box, by setting up the necessary port forwarding rules on your router/firewall?
There is an overview here: http://www.voip-info.org/wiki/view/port+forwarding
and also here: http://forums.whirlpool.net.au/archive/679361
In fact there are loads of such things ...
如果 Asterisk 未向您的 VOIP 提供商注册,那么您的 VOIP 提供商将不会向您发送任何呼叫。这就是注册的全部意义所在;它实际上是在说:“我是来接电话的!”
我会弄清楚你为什么不注册。仔细检查您的登录名和密码信息。确保中间没有阻止注册的防火墙或路由器。询问您的 VOIP 提供商,他们是否有任何可以在注册尝试时与您分享的调试信息。打开 Asterisk 详细日志记录(“core set verbose 100”)并查看是否收到有关注册失败的任何有用消息。
If Asterisk is not registered with your VOIP provider, then your VOIP provider won't send any calls to you. That's the whole point of registration; it's in effect saying, "I'm here to take calls!"
I'd figure out why you are not registering. Double check your login and password information. Make sure you don't have a firewall or router in the middle that's preventing registration. Ask your VOIP provider if they have any debugging information they can share with you on registration attempts. Turn on Asterisk verbose logging ('core set verbose 100') and see if you are getting any useful messages regarding registration failures.