AMI Asterisk 管理器界面发起操作
我目前正在为 Asterisk 接口管理器构建一个 C#.NET 包装器。
我可以做一些简单的事情,比如转接和挂断电话。我现在正在建立电话会议。我可以建立一个 n 用户会议,但我必须根据现有活动通道上的“操作:重定向”来执行此操作。
我想做的是将现在不存在的呼叫(即“核心显示频道”中没有频道)路由到我的上下文/分机,将人们放入会议室。
但我无法让“Action:originate”发挥任何作用。当还没有通道时,originate 将通道作为参数是什么?您传递给通道标头的是什么? SIP/ 对我不起作用。
提前致谢。
I am currently constructing a C#.NET wrapper for the Asterisk Interface Manager.
I can do simple things like transfers and hangups. I am now in the process of building conference calling. I can set up an n-user conference, but I have to do so in terms of "Action: redirect" on existing active channels.
What I'd like to do is route as now non-existent calls (i.e. there is no channel in "core show channels") to my context/extension that puts people in conference rooms.
But I cannot get "Action: originate" to work for anything. What does originate take a channel as an argument when there is not channel yet? What is it that you pass to the channel header? SIP/ does not work for me.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您到底想做什么?您不能使用不存在的通道桥接到会议室。如果您想创建一个会议,然后让人们拨打他们的分机(或任何号码,实际上)并放入会议室,这很简单。
我假设您使用的是 Asterisk.NET。 originate 命令需要一个要拨打的号码(这是通道)、一个上下文以及一个在拨号方案中将呼叫连接到的分机(这可以是硬编码的,也可以通过 AMI 创建)。
假设您在分机 300 上设置了一个会议室。您的原始命令将如下所示:
瞧!您现在已向预期的会议参与者发起呼叫,接听后他们将被引导到您的会议室。
What exactly are you trying to do? You can't use a non-existent channel to bridge into a conference room. If you're looking to create a conference, then have people called on their extensions (or on any number, really) and placed into the conference room, that's simple.
I assume you're using Asterisk.NET. The originate command expects a number to dial (this is the channel), a context, and an extension to connect the call to within the dialplan (this can be hard-coded or can presumably be created through the AMI).
Say you set up a conference room on extension 300. Your originate command would look something like this:
Voila! You have now originated a call to your intended conference participant, and upon answering they will be directed into your conference room.