简体   繁体   English

无法使用星号发起呼叫

[英]Cannot originate call with Asterisk

Hopefully someone can help me out, I've been breaking my head for a few days and have read a ton of threads on the internet to no avail. 希望有人能帮到我,我已经摔了几天了,已经读了很多互联网上的帖子,但无济于事。

My ultimate goal is to use the AMI to originate a call and pass it off to a script. 我的最终目标是使用AMI发起呼叫并将其传递给脚本。 Unfortunately I cannot get originate to work so I have simplified the flow to try and debug the issue. 不幸的是,我无法开始工作,所以我简化了尝试和调试问题的流程。 I am trying to just originate a call from the dialplan now and play a sound file. 我正在尝试仅从拨号计划中发起呼叫并播放声音文件。 After a short time the call gets cancelled and the SIP client that originated the call gets a declined. 短时间后,呼叫被取消,发起呼叫的SIP客户端被拒绝。

This same configuration works perfectly exactly as is using the Dial command instead of the Originate command. 此相同配置与使用Dial命令而不是Originate命令完全一样。

Below I am including a SIP debug from the console of the originate and the relevant sip.conf bits. 在下面,我包括了来自origin控制台和相关sip.conf位的SIP调试。 The sever is using Asterisk v1.8.32.3. 服务器正在使用Asterisk v1.8.3.2.3。

All IPs and phone numbers have been changed to protect the innocent. 所有IP和电话号码均已更改,以保护无辜者。

  • 111.111.111.111 (Asterisk Server IP) 111.111.111.111(星号服务器IP)
  • 222.222.222.222 (SIP Termination Provider) 222.222.222.222(SIP终止提供商)
  • 333.333.333.333 (Originating SIP Client) 333.333.333.333(原始SIP客户端)

sip.conf sip.conf

[vitel-outbound]
type=friend
dtmfmode=auto
host=222.222.222.222
allow=all
canreinvite=no
nat=yes
trustrpid=yes
sendrpid=yes

[front4]
type=friend
context=outgoing-calls
host=dynamic
defaultuser=front4
secret=password
nat=yes
qualify=yes
limitonpeers=yes
call-limit=10
port=5060
canreinvite=no
dtmfmode=rfc2833
disallow=all
allow=ulaw

SIP Debug SIP调试

Looking at your trace, the Asterisk is cancelling the outbound call. 查看您的踪迹,星号正在取消呼出电话。

Without timestamps or more logging it's impossible to say why definitively. 没有时间戳或更多日志记录,就不可能确切地说出原因 However, looking at the timestamps of the outbound INVITE and the OPTIONS from the originating client it would seem that the Originate() command is simply timing out. 但是,从原始客户端查看出站INVITEOPTIONS的时间戳,似乎Originate()命令只是在超时。 The Originate() command has a hard-coded 30-second timeout. Originate()命令具有30秒的硬编码超时。

When the Originate() command terminates then the inbound call from the client hits the Hangup() step in the dialplan. Originate()命令终止时,来自客户端的入站呼叫将在拨号计划中单击Hangup()步骤。 This sends a 603 Declined response since the inbound call was never answered. 由于从未应答入站呼叫,因此这将发送603 Declined响应。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM