gpt4 book ai didi

asterisk - Asterisk 中的直接媒体和直接 RTP 设置

转载 作者:行者123 更新时间:2023-12-02 09:28:30 32 4
gpt4 key购买 nike

我想在我使用的 Asterisk 中设置直接点对点媒体设置
directrtpsetup=yes

我也想在不重新邀请的情况下实现它。所以我使用了这个参数。在 sip.conf 中写到它不需要重新邀请就可以工作,但它对我不起作用。请任何人帮助我如何解决它。

我想绕过媒体的 Asterisk 。

最佳答案

请注意,directrtpsetup 不适用于 nat,也不适用于 sdp 为两个对等端提供 DIFFERENT。

还需要 directmedia 和 directrtpsetup 指令以及 11.* 以上的 Asterisk 版本

;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.

关于asterisk - Asterisk 中的直接媒体和直接 RTP 设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35497913/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com