[Asterisk-code-review] res pjsip: improve realtime performance #2 (asterisk[13])
Alexei Gradinari
asteriskteam at digium.com
Wed May 25 15:50:41 CDT 2016
Alexei Gradinari has uploaded a new change for review.
https://gerrit.asterisk.org/2906
Change subject: res_pjsip: improve realtime performance #2
......................................................................
res_pjsip: improve realtime performance #2
This patch removes updating all Endpoints' status on startup.
The endpoint status should be updated by 'qualify' functions.
The 'qualify' functions are already patched to improve performance.
ASTERISK-26061 #close
Change-Id: Id324c1776fa55d3741e0c5457ecac0304cb1a0df
---
M res/res_pjsip/pjsip_configuration.c
1 file changed, 1 insertion(+), 5 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/06/2906/1
diff --git a/res/res_pjsip/pjsip_configuration.c b/res/res_pjsip/pjsip_configuration.c
index 2e0df75..afcfbb8 100644
--- a/res/res_pjsip/pjsip_configuration.c
+++ b/res/res_pjsip/pjsip_configuration.c
@@ -1201,11 +1201,7 @@
persistent->aors = ast_strdup(endpoint->aors);
- if (ast_strlen_zero(persistent->aors)) {
- ast_endpoint_set_state(persistent->endpoint, AST_ENDPOINT_UNKNOWN);
- } else {
- persistent_endpoint_update_state(persistent, NULL, 0);
- }
+ ast_endpoint_set_state(persistent->endpoint, AST_ENDPOINT_UNKNOWN);
ao2_link_flags(persistent_endpoints, persistent, OBJ_NOLOCK);
}
--
To view, visit https://gerrit.asterisk.org/2906
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id324c1776fa55d3741e0c5457ecac0304cb1a0df
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>
More information about the asterisk-code-review
mailing list