星号 ami/agi - 无法接听电话 [英] Asterisk ami/agi - not able to answer call

查看:42
本文介绍了星号 ami/agi - 无法接听电话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照此线程中的说明进行操作:Asterisk AMI - 接听电话.但是,我仍然无法通过 AMI 接听电话.我可以拨打该分机,但该分机对应的电话没有响铃.然后我可以运行 AMI 命令来接听那个电话,它确实接听了,但显然没有任何实际响应.

I have followed the instructions in this thread: Asterisk AMI - pickup call. However, I am still unable to answer calls via AMI. I can make the call to the extension, but corresponding phone for that extension doesn't ring. I can then run the AMI command to answer that call, it does answer, but obviously there isn't any actual response.

拨号方案(使用分机 116 测试):

Dialplan (testing with extension 116):

exten => 116,1,AGI(agi:async)

知道我在这里做错了什么吗?

Any ideas what I am doing wrong here?

推荐答案

找到答案.对于那些想用 API Manager 回答的人,您可以使用以下内容 -

Found the Answer. For those wanting to answer with API Manager you can use the following -

http://ip-address:port/asterisk/rawman?action=Originate&Channel=Local/(exten you want to answer with)@(context)&Application=Exec&Data=Pickup((exten you want to answer with)@PICKUPMARK)

我当然使用 http 来发送我的请求,如果您使用其他东西,则需要更改格式.

I am of course using http to send my requests, if you are using something else you will need to change the format.

或者你可以使用bridge命令.当您从一个分机向另一个分机拨打电话时,将创建两个频道,桥接这些频道,您将获得比代答更好的整体功能.

Or you can use the bridge command. Two channels will be created when you make a call from one extension to the other, bridge those channels and you will have better overall functionality than pickup.

这篇关于星号 ami/agi - 无法接听电话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆