mirror of
https://github.com/asterisk/asterisk.git
synced 2026-05-04 20:33:53 +00:00
res_pjsip_session: Add ability to accept multiple sdp answers
pjproject by default currently will follow media forked during an INVITE on outbound calls if the To tag is different on a subsequent response as that on an earlier response. We handle this correctly. There have been reported cases where the To tag is the same but we still need to follow the media. The pjproject patch in this commit adds the capability to sip_inv and also adds the capability to control it at runtime. The original "different tag" behavior was always controllable at runtime but we never did anything with it and left it to default to TRUE. So, along with the pjproject patch, this commit adds options to both the system and endpoint objects to control the two behaviors, and a small logic change to session_inv_on_media_update in res_pjsip_session to control the behavior at the endpoint level. The default behavior for "different tags" remains the same at TRUE and the default for "same tag" is FALSE. Change-Id: I64d071942b79adb2f0a4e13137389b19404fe3d6 ASTERISK-27936 Reported-by: Ross Beer
This commit is contained in:
@@ -809,6 +809,27 @@
|
||||
; this mailbox will be used when notifying other modules
|
||||
; of MWI status changes. If not set, incoming MWI
|
||||
; NOTIFYs are ignored.
|
||||
;follow_early_media_fork = ; On outgoing calls, if the UAS responds with
|
||||
; different SDP attributes on subsequent 18X or 2XX
|
||||
; responses (such as a port update) AND the To tag
|
||||
; on the subsequent response is different than that
|
||||
; on the previous one, follow it. This usually
|
||||
; happens when the INVITE is forked to multiple UASs
|
||||
; and more than 1 sends an SDP answer.
|
||||
; This option must also be enabled in the system
|
||||
; section.
|
||||
; (default: yes)
|
||||
;accept_multiple_sdp_answers =
|
||||
; On outgoing calls, if the UAS responds with
|
||||
; different SDP attributes on non-100rel 18X or 2XX
|
||||
; responses (such as a port update) AND the To tag on
|
||||
; the subsequent response is the same as that on the
|
||||
; previous one, process it. This can happen when the
|
||||
; UAS needs to change ports for some reason such as
|
||||
; using a separate port for custom ringback.
|
||||
; This option must also be enabled in the system
|
||||
; section.
|
||||
; (default: no)
|
||||
|
||||
;==========================AUTH SECTION OPTIONS=========================
|
||||
;[auth]
|
||||
@@ -961,6 +982,27 @@
|
||||
; Disabling this option has been known to cause interoperability
|
||||
; issues, so disable at your own risk.
|
||||
; (default: "yes")
|
||||
;follow_early_media_fork = ; On outgoing calls, if the UAS responds with
|
||||
; different SDP attributes on subsequent 18X or 2XX
|
||||
; responses (such as a port update) AND the To tag
|
||||
; on the subsequent response is different than that
|
||||
; on the previous one, follow it. This usually
|
||||
; happens when the INVITE is forked to multiple UASs
|
||||
; and more than 1 sends an SDP answer.
|
||||
; This option must also be enabled on endpoints that
|
||||
; require this functionality.
|
||||
; (default: yes)
|
||||
;accept_multiple_sdp_answers =
|
||||
; On outgoing calls, if the UAS responds with
|
||||
; different SDP attributes on non-100rel 18X or 2XX
|
||||
; responses (such as a port update) AND the To tag on
|
||||
; the subsequent response is the same as that on the
|
||||
; previous one, process it. This can happen when the
|
||||
; UAS needs to change ports for some reason such as
|
||||
; using a separate port for custom ringback.
|
||||
; This option must also be enabled on endpoints that
|
||||
; require this functionality.
|
||||
; (default: no)
|
||||
;type= ; Must be of type system (default: "")
|
||||
|
||||
;==========================GLOBAL SECTION OPTIONS=========================
|
||||
|
||||
Reference in New Issue
Block a user