res_pjsip_outbound_publish: state potential dropped on reloads/realtime fetches
authorKevin Harwell <kharwell@digium.com>
Tue, 3 May 2016 20:43:16 +0000 (15:43 -0500)
committerKevin Harwell <kharwell@digium.com>
Thu, 5 May 2016 21:41:50 +0000 (16:41 -0500)
commit64e058f75ad6e1dd81e43200344b759fd45a3cde
tree9c141861d3a39c5c96fb71fb4c3651b5bf601771
parentadc82a2260382383bfb6593adfaa8b8b7ef7d7d8
res_pjsip_outbound_publish: state potential dropped on reloads/realtime fetches

When reloading, or fetching realtime data, if the "apply" failed for any
numerous reasons the current state object would not be maintained. This
potentially resulted in publishes being stopped for some states/clients when
they should not have been.

This patch makes it so the current state object is kept upon any type of reload/
fetch failures.

Change-Id: Iab6020c116d628ed2ae81183e987e2eaa3c90b30
res/res_pjsip_outbound_publish.c