<p>Joshua Colp <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/13520">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_pjsip_pubsub: Add ability to persist generator state information.<br><br>Some body generators, such as dialog-info+xml, require storing state<br>information which is then conveyed in the NOTIFY request itself. Up<br>until now there was no way for such body generators to persist this<br>information.<br><br>Two new API calls have been added to allow body generators to set and<br>get persisted data. This data is persisted out alongside the normal<br>persistence information and allows the body generator to restore<br>state information or to simply use this for normal storage of state.<br>State is stored in the form of JSON and it is up to the body<br>generator to interpret this as needed.<br><br>The dialog-info+xml body generator has been updated to take advantage<br>of this to persist the version number.<br><br>ASTERISK-27759<br><br>Change-Id: I5fda56c624fd13c17b3c48e0319b77079e9e27de<br>---<br>M include/asterisk/res_pjsip_pubsub.h<br>M res/res_pjsip_dialog_info_body_generator.c<br>M res/res_pjsip_pubsub.c<br>3 files changed, 138 insertions(+), 47 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/20/13520/2</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/13520">change 13520</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/13520"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: I5fda56c624fd13c17b3c48e0319b77079e9e27de </div>
<div style="display:none"> Gerrit-Change-Number: 13520 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>