如何拨号以从拨号计划中发起呼叫? [英] How to Dial to Originate a Call from Within the Dialplan?

查看:173
本文介绍了如何拨号以从拨号计划中发起呼叫?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

救世主!如何拨打电话号码并让Asterisk从分机sipX发起呼叫sipY?

Salvete! How can I dial a number and have Asterisk originate a call from extension sipX to sipY?

sipX和sipY都出现在我的拨号计划的extensions.conf中.

Both sipX and sipY appear in extensions.conf of my dialplan.

诀窍是,我想在手机上拨打337,然后手机不显示图片,然后sipX呼叫sipY.

The trick is that I want to dial 337 on my phone, and then my phone goes out of the picture, then sipX calls sipY.

说我想能够将337推到手机上,并在另一部手机的免提电话上播放声音,例如,作为警报.

Say I want to be able to push 337 on the phone, and have a sound played over the speakerphone of another phone, say, as an alarm.

另一种考虑方式是,我该怎么做:

Another way to consider it is, how can I do this:

  1. 将337推送到我的手机上
  2. 完成我的通话,即挂断原始呼叫者
  3. 即使队列中没有呼叫,也可以运行宏
  4. 致电sipY
  5. 在sipY上播放声音

在执行#2操作(完成呼叫者的会话)并在此之后完成其余过程时,我们可以使用

When running the #2 action (completing the caller's session) and letting the rest of the process complete afterward, can we use something like the pre-dial handlers in Asterisk 11?

推荐答案

以下是答案. 您将Answer放置为第一部分,并以'hangup'结尾.这样就可以处理忙碌信号".

Here is the answer. You place Answer as the first part, and end with 'hangup'. That takes care of the "busy signal".

没有AGI.这行得通.

No AGI. This works.

[from-internal]
exten => 3334,1,Goto(AngelusBell,startbell,1)


[AngelusBell]
exten => startbell,1,Answer
exten => startbell,n,System(asterisk -rx "channel originate Local/callviking@AngelusBell/n extension playbell@AngelusBell")
exten => startbell,n,Hangup

exten => callviking,1,Dial(SIP/Y,10,D(5))  ;calls my ATA to my paging box and plays 5 tone
exten => callviking,2,Hangup

exten => playbell,1,Answer
exten => playbell,2,Playback(custom/angelusbellWAV)
exten => playbell,3,Hangup

这篇关于如何拨号以从拨号计划中发起呼叫?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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