freeswitch电话代接

本文介绍Asterisk中的Dialplan Tools拦截工具的使用方法。该工具允许一个通道桥接到另一个呼叫的A或B腿,同时挂断原始呼叫的剩余腿。文章详细解释了如何通过不同方式应用此功能,并提供了设置条件拦截的示例。

Misc. Dialplan Tools intercept

Description

Allows one channel to bridge itself to the a or b leg of another call. The remaining leg of the original call gets hungup (or does this only happen with hangup_after_bridge?)

Usage

intercept [-bleg] <uuid>

Examples

<action application="intercept" data="myUUID"/>

To intercept the b leg of the call:

<action application="intercept" data="-bleg myUUID"/>

Via sendmsg on the event socket:

sendmsg <the uuid of the channel you want to control (inbound leg) >
call-command: execute
execute-app-name: intercept
execute-app-arg: <the uuid of the call you want to bridge to (outbound leg)

Intercept additional variables

To intercept only if the call is not bridged (available since git-58fe45a):

<action application="set" data="intercept_unbridged_only=true"/>
<action application="intercept" data="myUUID"/>

To intercept only if the call was not answered:

<action application="set" data="intercept_unanswered_only=true"/>
<action application="intercept" data="myUUID"/>

intercept_unbridged_only is useful e.g. in scenarious where the initial call has been answered and transferred and is ringing at the transfered extensions. With intercept_unanswered_only=true this call could no longer be intercepted, but with intercept_unbridged_only=true it still can be.

转载于:https://www.cnblogs.com/dancheblog/p/3531209.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值