使用Asterisk发起呼叫-没有发起的分机振铃 [英] Originate a call with Asterisk - without the originating extension ringing

查看:143
本文介绍了使用Asterisk发起呼叫-没有发起的分机振铃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个完全标准的Trixbox安装,上面安装了2个SIP扩展.

I have a completely standard installation of Trixbox with 2 SIP extensions set up on it.

两个分机都是Snom 370 SIP电话.

Both extensions are Snom 370 SIP phones.

我可以使用以下CLI命令从一个分机发起到另一分机的呼叫:

I can originate a call from one extension to the other using the following CLI command:

originate sip/101 extension 102

这会导致101上的电话响铃,然后在拿起该电话时拨打102.

This causes the phone on 101 to ring, then when that phone is picked up it dials 102.

我想让101上的电话自动拨打102,而无需等待101接听.

What I would like is for the phone on 101 to automatically call 102, without 101 waiting to be picked up.

这是可以做到的吗,还是SIP电话在拨打电话之前总是需要振铃吗?

Is this something that can be done, or do the SIP phones always need to ring before they place a call?

推荐答案

我最终在extensions.conf中创建了几个新上下文.

I ended up creating a couple of new contexts in extensions.conf

[clickoutcontext]
exten => _X.,1,NoOp("Click In Context")
exten => _X.,n,SIPAddHeader(Call-Info: <sip:pbx.your-company.de>\;answer-after=0)
exten => _X.,n,Dial(Sip/${EXTEN})

[clickincontext]
exten => _X.,1,NoOp("Click Out Context")
exten => _X.,n,SIPRemoveHeader(Call-Info)
exten => _X.,n,Dial(Sip/${EXTEN})

然后使用AMI操作进行呼叫:

And then using an AMI action to make the call:

ACTION: Originate
Channel: Local/101@clickoutcontext
Exten: 102
Priority: 1
Timeout: 60000
Context: clickincontext

这会将标头发送到Snom电话,让其拨打电话以告知其自动应答,然后在将其拨给第二部电话之前将其删除.

This sends a header to the Snom phone making the call to tell it to auto answer and then removes it before the call is placed to the second phone.

这篇关于使用Asterisk发起呼叫-没有发起的分机振铃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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