]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_mwi: don't create mwi subscriptions if initial unsolicited disabled
authorAlexei Gradinari <alex2grad@gmail.com>
Mon, 12 Jun 2017 14:57:24 +0000 (10:57 -0400)
committerAlexei Gradinari <alex2grad@gmail.com>
Mon, 12 Jun 2017 14:57:24 +0000 (10:57 -0400)
commit59c9bbe6961a5677ddb13eed2a130d16b6ffc0ee
tree1ab34326b8accc31a455cf2c6f7a595507e7ae64
parent85dff8e26ee9bbe3ce781eefb9b1037e1fb9217a
res_pjsip_mwi: don't create mwi subscriptions if initial unsolicited disabled

If sending unsolicited mwi to all endpoints on startup is disabled
(mwi_disable_initial_unsolicited=yes) do not need to create subscriptions.
If there are many (thousands) realtime endpoints configured with unsolicited mwi
and Vociemail Storage configured as ODBC or IMAP there will be huge number of
DB/IMAP requests on startup.

ASTERISK-26230 #close

Change-Id: I50ae909639e3ee298b931a54def4b2b9e0fb86c5
res/res_pjsip_mwi.c