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

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

问题描述

我已按照此线程中的说明进行操作:星号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.

Dialplan(使用扩展名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天全站免登陆