diff options
author | Mark Michelson <mmichelson@digium.com> | 2012-06-01 13:04:32 +0000 |
---|---|---|
committer | Mark Michelson <mmichelson@digium.com> | 2012-06-01 13:04:32 +0000 |
commit | 463f9d729aed1a5ed538aa3deed1a3fed9462111 (patch) | |
tree | 1f664e6ba2c731057b40b1400ea1ade911c79c39 /configs | |
parent | a7a3050de9b98aea0516e570c93f19da5f00fa61 (diff) |
Help mitigate potential reinvite glare scenarios.
When Asterisk servers are set up back-to-back, and
direct media is to be used betweeen endpoints, it is
fairly common for the two Asterisk servers to send
direct media reinvites to each other simultaneously.
This results in 491s and ACKs being exchanged between
the servers. While the media eventually gets set up
properly, the problem is that there can be a noticeable
delay for the streams to stabilize.
This patch adds a new directmedia option called "outgoing".
With this set, an immediate direct media reinvite will only
be sent if the call direction is outgoing. For incoming
dialogs, an immediate direct media reinvite will not be sent,
but further "reactionary" direct media reinvites may be sent.
Review: https://reviewboard.asterisk.org/r/1954
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368143 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs')
-rw-r--r-- | configs/sip.conf.sample | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample index 0705ad052..e92bba9fe 100644 --- a/configs/sip.conf.sample +++ b/configs/sip.conf.sample @@ -936,6 +936,13 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls ; 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 |