# activate/deactivate the account or start/stop/reload the registration process
if self._started:
if 'enabled' in notification.data.modified:
if self.enabled:
self._activate()
else:
self._deactivate()
elif self.enabled and 'sip.register' in notification.data.modified:
if self.sip.register:
self._registrar.activate()
else:
self._registrar.deactivate()
elif self.enabled and set(['message_summary.enabled', 'message_summary.voicemail_uri']).intersection(notification.data.modified):
if self.message_summary.enabled:
self._mwi_handler.activate()
else:
self._mwi_handler.deactivate()
elif self.enabled:
if set(['auth.password', 'auth.username', 'sip.outbound_proxy', 'sip.transport_list', 'sip.register_interval']).intersection(notification.data.modified) and self.sip.register:
self._registrar.reload_settings()
if set(['auth.password', 'auth.username', 'sip.outbound_proxy', 'sip.transport_list', 'sip.subscribe_interval']).intersection(notification.data.modified) and self.message_summary.enabled: