首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SIP调用被星号拒绝。

SIP调用被星号拒绝。
EN

Stack Overflow用户
提问于 2013-01-30 06:34:54
回答 1查看 2.2K关注 0票数 3

我在用星号和附加号。我创建了ahn应用程序,并完成了以下工作:

dialplan.rb添加到项目的根目录。内容:

代码语言:javascript
复制
adhearsion {
  play 'hello-world'
  hangup
}

config/adhearsion.rb的内容:

代码语言:javascript
复制
  ...
  ##
  # Use with Asterisk
  #
  config.punchblock.platform = :asterisk # Use Asterisk
  config.punchblock.username = "myuser" # Your AMI username
  config.punchblock.password = "mypassword" # Your AMI password
  config.punchblock.host = "127.0.0.1" # Your AMI host
  ...

星号配置文件:

extensions.conf

代码语言:javascript
复制
[adhearsion]
exten => test,1,AGI(agi://127.0.0.1)                                                                                                                                      

[adhearsion-redirect]

sip.conf含量

代码语言:javascript
复制
[general]
context=adhearsion
....

当我从SJPhone应用程序调用(SIP)时,我收到了一个错误:

代码语言:javascript
复制
== Manager 'myuser' logged on from 127.0.0.1
  == Manager 'myuser' logged on from 127.0.0.1
    -- Added extension '1' priority 1 to adhearsion-redirect
  == Using SIP RTP CoS mark 5
    -- Executing [test@adhearsion:1] AGI("SIP/127.0.0.1-00000000", "agi://127.0.0.1") in new stack
[Jan 30 12:02:26] ERROR[4211]: utils.c:1164 ast_carefulwrite: write() returned error: Connection refused
[Jan 30 12:02:26] WARNING[4211]: res_agi.c:1509 launch_netscript: Connect to 'agi://127.0.0.1' failed: Connection refused
    -- Auto fallthrough, channel 'SIP/127.0.0.1-00000000' status is 'UNKNOWN'
EN

回答 1

Stack Overflow用户

发布于 2013-01-30 09:31:59

这意味着星号不能连接附加快捷键脚本。

值得注意的问题是:

  • 坚持不是在跑。开始吧。
  • 防火墙阻塞附件端口。在防火墙中添加端口4573(tcp)允许规则
  • 关联框架中的一些错误,请参阅日志。
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/14598034

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档