Asterisk Letting SIP clients connect directly

本文介绍如何在Asterisk中配置SIP电话间的直接媒体路径连接,实现更高效的通话转移,并解释了如何禁用Asterisk在通话中的媒体流介入。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Asterisk by default connects all media streams through asterisk to be able to connect various protocols and media to each other.

If you have two SIP phones, the media path can be connected directly between the phones without going through Asterisk. Asterisk in this case only handles signalling. It requires that both extensions are using SIP and support the same codecs.

Disable transfer

If you want to transfer calls by pressing the # key during a call, Asterisk will stay in the media stream to be able to listen for # signals. Remove the "tT" from the dial() command to disable this.

Configuration

This is done in sip.conf by using
canreinvite=yes

in the configuration of the SIP extension. This is the default behaviour.

Example


[morgan]
secret=thesweet43
type=friend
host=dynamic
context=sipexts
mailbox=1050
callerid="morgan@yourdomain.com"<1050>
dmtfmode=rfc2833
canreinvite=yes

Please note

  • There are SIP clients that do not work well with these settings, like the Cisco ATA 186.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值