]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: add option to enable ContactStatus event when contact is updated
authorAlexei Gradinari <alex2grad@gmail.com>
Tue, 18 Dec 2018 19:47:36 +0000 (14:47 -0500)
committerAlexei Gradinari <alex2grad@gmail.com>
Tue, 8 Jan 2019 15:42:54 +0000 (10:42 -0500)
commit7f22c9f4b7efde0da72c4665cceba380fe1f57b3
treeb9165909c405b3e32bd31e60f5ea4076263321f5
parent9b57199a7a56f9b6ff1d78ad019bd670f8d8d13c
res_pjsip: add option to enable ContactStatus event when contact is updated

The commit I2f97ebfa79969a36a97bb7b9afd5b6268cf1a07d removed sending out
the ContactStatus AMI event when a contact is updated.
Thist change broke things which rely on old behavior.

This patch adds a new PJSIP global configuration option
'send_contact_status_on_update_registration' to be able to preserve old
ContactStatus behavior.
By default new behavior, i.e. the ContactStatus event will not be sent when a
device refreshes its registration.

Change-Id: I706adf7584e7077eb6bde6d9799ca408bc82ce46
CHANGES
configs/samples/pjsip.conf.sample
contrib/ast-db-manage/config/versions/0838f8db6a61_pjsip_add_send_contact_status_on_update_.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip/config_global.c
res/res_pjsip/pjsip_options.c