本文介绍了Asteisk 中的直接媒体和直接 RTP 设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我使用的星号中设置直接对等媒体设置 directrtpsetup=yes
I want to set direct peer to peer media setup in asterisk I used directrtpsetup=yes
我也想在不重新邀请的情况下实现它.所以我使用了这个参数.在 sip.conf 中写到它不需要重新邀请就可以工作,但它对我不起作用.任何人请帮助我如何解决它.
Also I want to achieve it without re-Invite.So I use this parameter.In sip.conf its written that it works without re-Invite,But its not working for me.Any one please help me how to solve it.
我想为媒体绕过星号.
推荐答案
请注意,directrtpsetup 不适用于 nat,如果 sdp 为两个对等端提供 DIFFERENT.
Please note, directrtpsetup not work with nat nor if sdp offer DIFFERENT for both peers.
还需要 directmedia 和 directrtpsetup 指令以及 11 以上的星号版本.*
Also require both directmedia and directrtpsetup directives and asterisk version above 11.*
;directmedia=yes ; Asterisk by default tries to redirect the
; RTP media stream to go directly from
; the caller to the callee. Some devices do not
; support this (especially if one of them is behind a NAT).
; The default setting is YES. If you have all clients
; behind a NAT, or for some other reason want Asterisk to
; stay in the audio path, you may want to turn this off.
; This setting also affect direct RTP
; at call setup (a new feature in 1.4 - setting up the
; call directly between the endpoints instead of sending
; a re-INVITE).
; Additionally this option does not disable all reINVITE operations.
; It only controls Asterisk generating reINVITEs for the specific
; purpose of setting up a direct media path. If a reINVITE is
; needed to switch a media stream to inactive (when placed on
; hold) or to T.38, it will still be done, regardless of this
; setting. Note that direct T.38 is not supported.
;directmedia=nonat ; An additional option is to allow media path redirection
; (reinvite) but only when the peer where the media is being
; sent is known to not be behind a NAT (as the RTP core can
; determine it based on the apparent IP address the media
; arrives from).
;directmedia=update ; Yet a third option... use UPDATE for media path redirection,
; instead of INVITE. This can be combined with 'nonat', as
; 'directmedia=update,nonat'. It implies 'yes'.
;directmedia=outgoing ; When sending directmedia reinvites, do not send an immediate
; reinvite on an incoming call leg. This option is useful when
; peered with another SIP user agent that is known to send
; immediate direct media reinvites upon call establishment. Setting
; the option in this situation helps to prevent potential glares.
; Setting this option implies 'yes'.
.
;directrtpsetup=yes ; Enable the new experimental direct RTP setup. This sets up
; the call directly with media peer-2-peer without re-invites.
; Will not work for video and cases where the callee sends
; RTP payloads and fmtp headers in the 200 OK that does not match the
; callers INVITE. This will also fail if directmedia is enabled when
; the device is actually behind NAT.
这篇关于Asteisk 中的直接媒体和直接 RTP 设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!