]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Add new AOR option "qualify_2xx_only"
authorKent <kent@amtelco.com>
Tue, 3 Dec 2024 14:24:44 +0000 (08:24 -0600)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 23 Jan 2025 18:36:03 +0000 (18:36 +0000)
commitef66694b7b876ab68b64fb65e8e74145957800a6
tree8eba119eda6da53253942e3fe85a77a84a5bb67f
parente47fb67e5a26fc40bc7d0da4e4b9ea26100e35fb
res_pjsip: Add new AOR option "qualify_2xx_only"

Added a new option "qualify_2xx_only" to the res_pjsip AOR qualify
feature to mark a contact as available only if an OPTIONS request
returns a 2XX response. If the option is not specified or is false,
any response to the OPTIONS request marks the contact as available.

UserNote: The pjsip.conf AOR section now has a "qualify_2xx_only"
option that can be set so that only 2XX responses to OPTIONS requests
used to qualify a contact will mark the contact as available.

(cherry picked from commit 0b30f546bac549fae8cc0c7c3ea2fb433d29d3e5)
configs/samples/pjsip.conf.sample
contrib/ast-db-manage/config/versions/44bd6dd914fa_add_qualify_2xx_only_option.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
res/res_pjsip/location.c
res/res_pjsip/pjsip_config.xml
res/res_pjsip/pjsip_options.c
res/res_pjsip_registrar.c