[Asterisk-code-review] res_pjsip_pubsub: Add ability to persist generator state information. (asterisk[13])

George Joseph asteriskteam at digium.com
Wed Jan 8 13:54:04 CST 2020


George Joseph has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/13520 )

Change subject: res_pjsip_pubsub: Add ability to persist generator state information.
......................................................................


Patch Set 2:

> Patch Set 1:
> 
> > Patch Set 1: Code-Review-1
> > 
> > Since multiple body generators can be called for the same subscription, how do they coordinate?
> 
> It's based on the resource. Each resource is unique and produces a single body, so the data is stored based on that.
>  
> > I'd suggest that the persistence data be a json object that the generators can access by key that way they can store anything that can be serialized into a json object.
> > 
> > set_persistence_data(sub, key, json_object)
> > get_persistence_data(sub, key)
> > 
> > Those work on the sub's persistence_data json object.

Yeah OK I was thinking about the supplements but I guess that's out of scope.


-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/13520
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Change-Id: I5fda56c624fd13c17b3c48e0319b77079e9e27de
Gerrit-Change-Number: 13520
Gerrit-PatchSet: 2
Gerrit-Owner: Joshua Colp <jcolp at sangoma.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Comment-Date: Wed, 08 Jan 2020 19:54:04 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200108/bccdb2b0/attachment.html>


More information about the asterisk-code-review mailing list