我已经用AsteriskNOW安装了freePBX发行版。我正在尝试为我们现有的软件实现自动拨号。我正在监听电话中的任何问题。唯一有效的办法就是挂断电话。当我试图发起、重定向、持有或做出类似的动作时,我会从星号中得到响应:通道不是在停滞应用中。
var x = client.Channels.Originate("SIP/447", extension: "SIP/446", timeout: 30);
client.Channels.Ring(x.Id);发布于 2017-11-14 09:48:50
首先,您必须使用Channel.Originate方法启动调用,如
var newChannel = ActionClient.Channels.Originate(endpoint, extension, context, priority, null, AppName, null, callerId, timeout, variables, channelId, otherChannelId, originator);newChannel.Id是由上述方法创建的Channel_id。现在您必须使用public void Redirect(string channelId, string endpoint)重定向调用,其中channelId是当前的通道,端点类似于"endpoint:SIP/703"
试试这个..。祝你好运!
https://stackoverflow.com/questions/45005590
复制相似问题