问题描述
我想在使用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.
我想绕过星号进行媒体播放.
I want to bypass asterisk for media.
推荐答案
请注意,directrtpsetup不能与nat一起使用,也不能保证sdp为两个同级提供不同的服务.
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设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!