[Asterisk-code-review] res_pjsip: Don't set endpoint to unavailable in all cases. (asterisk[16])
Joshua Colp
asteriskteam at digium.com
Tue Mar 31 11:36:51 CDT 2020
Joshua Colp has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/14056 )
Change subject: res_pjsip: Don't set endpoint to unavailable in all cases.
......................................................................
Patch Set 1:
(1 comment)
https://gerrit.asterisk.org/c/asterisk/+/14056/1/res/res_pjsip/pjsip_options.c
File res/res_pjsip/pjsip_options.c:
https://gerrit.asterisk.org/c/asterisk/+/14056/1/res/res_pjsip/pjsip_options.c@1984
PS1, Line 1984: /*
: * Using LIKE doesn't seem to work very well with non-realtime so we
: * fetch everything right now and do a filter on our side.
: */
: endpoints = ast_sorcery_retrieve_by_fields(ast_sip_get_sorcery(),
: "endpoint", AST_RETRIEVE_FLAG_MULTIPLE | AST_RETRIEVE_FLAG_ALL, NULL);
: if (endpoints) {
: ao2_callback(endpoints, OBJ_NODATA, sip_options_synchronize_endpoint, aor);
: ao2_ref(endpoints, -1);
: }
> The origin issue ASTERISK-28056 is that Unavailable status set for ALL endpoints except endpoints wi […]
There is explicit logic in sip_options_synchronize_endpoint that skips any endpoint which does not reference the given AOR. The skipping was incomplete, and this change fixes that.
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14056
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: I3ee00023be2393113cd4e056599f23f3499ef164
Gerrit-Change-Number: 14056
Gerrit-PatchSet: 1
Gerrit-Owner: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Comment-Date: Tue, 31 Mar 2020 16:36:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200331/b2d5e4ab/attachment.html>
More information about the asterisk-code-review
mailing list