]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_session: Add ability to accept multiple sdp answers
authorGeorge Joseph <gjoseph@digium.com>
Tue, 19 Jun 2018 02:22:17 +0000 (20:22 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 26 Jun 2018 12:57:18 +0000 (06:57 -0600)
commit06966e91fe9bd6aa4c9c0bb571f75c86b846d898
treea9f11a64fa7acddc40f2bea1b1174c2d4fc3d788
parentb057932138283f1a3d7d093598a19fbcce04be36
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
13 files changed:
CHANGES
configs/samples/pjsip.conf.sample
configure
configure.ac
contrib/ast-db-manage/config/versions/0be05c3a8225_add_early_media_options.py [new file with mode: 0644]
include/asterisk/autoconfig.h.in
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip/config_system.c
res/res_pjsip/pjsip_configuration.c
res/res_pjsip_session.c
third-party/pjproject/configure.m4
third-party/pjproject/patches/0100-sip_inv-Add-option-to-accept-updated-SDP-on-same-To-.patch [new file with mode: 0644]