]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_outbound_registration: Fix race condition when reloading and listing regist...
authorJoshua Colp <jcolp@digium.com>
Thu, 15 Jan 2015 12:11:07 +0000 (12:11 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 15 Jan 2015 12:11:07 +0000 (12:11 +0000)
commit446da9177e20630ec4c02965e164d63ca63da2a8
tree42cccb78b5b008cf19bf6b3b8cf9296d7aded002
parent316a8a17dcea5b19998677e984956829ba9d11fd
res_pjsip_outbound_registration: Fix race condition when reloading and listing registrations.

Due to the split of outbound registration state from configuration it is possible during
a reload for a "pjsip show registrations" CLI command to be executed which gets an older
snapshot of the configuration. This configuration may include outbound registrations which
have been removed due to a reload operation occurring at the same time. The code for
printing the outbound registration did not take this into account but now it does.

AST-1506 #close

Review: https://reviewboard.asterisk.org/r/4338/
........

Merged revisions 430664 from http://svn.asterisk.org/svn/asterisk/branches/13

git-svn-id: https://origsvn.digium.com/svn/asterisk/certified/branches/13.1@430666 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_outbound_registration.c