]> 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:45:59 +0000 (14:45 -0500)
commit15265aeea9846544bef3983bf0a31b00e8096085
treef2cb9e0f604983ba9d29710e623153a76a938d9d
parent95bb23ce4c1fdfa1223542194b3155296a96d620
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