[Asterisk-code-review] res_pjsip_pubsub: provide a display name for RLS subscriptions (asterisk[16])
Alexei Gradinari
asteriskteam at digium.com
Mon Feb 14 09:43:58 CST 2022
Attention is currently required from: Kevin Harwell.
Alexei Gradinari has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/17954 )
Change subject: res_pjsip_pubsub: provide a display name for RLS subscriptions
......................................................................
Patch Set 3:
(2 comments)
File configs/samples/pjsip.conf.sample:
https://gerrit.asterisk.org/c/asterisk/+/17954/comment/434a793f_602c869e
PS2, Line 1460: ; If disabled the resource name will be '1234'.
> If disabled I think the name is 'user1234' vs '1234' correct?
If disabled the resource name is '1234' - the extension.
File res/res_pjsip_pubsub.c:
https://gerrit.asterisk.org/c/asterisk/+/17954/comment/e3cb50b0_6d8786e0
PS2, Line 1253: const char *resource, char *display_name, struct sip_subscription_tree *tree)
: {
: struct ast_sip_subscription *sub;
: pjsip_sip_uri *contact_uri;
:
: sub = ast_calloc(1, sizeof(*sub) + strlen(resource) + 1);
: if (!sub) {
: return NULL;
: }
: strcpy(sub->resource, resource); /* Safe */
:
: sub->display_name = display_name;
> Since the subscription here is taking ownership of the display_name memory make display_name a const […]
Done
--
To view, visit https://gerrit.asterisk.org/c/asterisk/+/17954
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: 16
Gerrit-Change-Id: Ic5306bd5a7c73d03f5477fe235e9b0f41c69c681
Gerrit-Change-Number: 17954
Gerrit-PatchSet: 3
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Attention: Kevin Harwell <kharwell at digium.com>
Gerrit-Comment-Date: Mon, 14 Feb 2022 15:43:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kevin Harwell <kharwell at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20220214/aa226057/attachment.html>
More information about the asterisk-code-review
mailing list