]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: delay contact pruning on Asterisk start
authorMichael Neuhauser <mike@firmix.at>
Tue, 14 Jun 2022 09:12:47 +0000 (11:12 +0200)
committerMichael Neuhauser <mike@firmix.at>
Thu, 14 Jul 2022 13:25:36 +0000 (08:25 -0500)
commit37c16f9eef20dd622010adae1b253d388b821b66
treece12712e94878d88b03ff30c8b2e616c0f885420
parentf2f397c1a8cc48913434ebb297f0ff50d96993db
res_pjsip: delay contact pruning on Asterisk start

Move the call to ast_sip_location_prune_boot_contacts() *after* the call
to ast_res_pjsip_init_options_handling() so that
res/res_pjsip/pjsip_options.c is informed about the contact deletion and
updates its sip_options_contact_statuses list. This allows for an AMI
event to be sent by res/res_pjsip/pjsip_options.c if the endpoint
registers again from the same remote address and port (i.e., same URI)
as used before the Asterisk restart.

ASTERISK-30109
Reported-by: Michael Neuhauser
Change-Id: I1ba4478019e4931a7085f62708d9b66837e901a8
res/res_pjsip.c
res/res_pjsip/pjsip_configuration.c