]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: return all codecs on a re-INVITE without SDP
authorHenning Westerholt <hw@gilawa.com>
Fri, 26 Aug 2022 08:59:16 +0000 (08:59 +0000)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 27 Oct 2022 19:46:36 +0000 (14:46 -0500)
commit7b2d3a64112e99b6bf2c1992d126b526253165ef
tree6384a3d62d0f4a5a35cd2e1c5ff50a859990fdb7
parent005b6c8d50441ef6e3bed70c71807a5a8861bb45
res_pjsip: return all codecs on a re-INVITE without SDP

Currently chan_pjsip on receiving a re-INVITE without SDP will only
return the codecs that are previously negotiated and not offering
all enabled codecs.

This causes interoperability issues with different equipment (e.g.
from Cisco) for some of our customers and probably also in other
scenarios involving 3PCC infrastructure.

According to RFC 3261, section 14.2 we SHOULD return all codecs
on a re-INVITE without SDP

The PR proposes a new parameter to configure this behaviour:
all_codecs_on_empty_reinvite. It includes the code, documentation,
alembic migrations, CHANGES file and example configuration additions.

ASTERISK-30193 #close

Change-Id: I69763708d5039d512f391e296ee8a4d43a1e2148
configs/samples/pjsip.conf.sample
contrib/ast-db-manage/config/versions/ccf795ee535f_all_codecs_on_empty_reinvite.py [new file with mode: 0644]
doc/CHANGES-staging/res_pjsip_all_codecs_on_empty_reinvite_option.txt [new file with mode: 0644]
include/asterisk/res_pjsip.h
res/res_pjsip/config_global.c
res/res_pjsip/pjsip_config.xml
res/res_pjsip_session.c