<p> Attention is currently required from: N A, Joshua Colp, George Joseph. </p>
<p><a href="https://gerrit.asterisk.org/c/asterisk/+/18830">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="null">File doc/CHANGES-staging/res_pjsip_session_params.txt:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18830/comment/bd2d33db_ae05fa51">Patch Set #1, Line 5:</a> <code style="font-family:monospace,monospace">SIPURIPARAMETERS variable on a channel</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I guess that would mean no variable under the hood either, the way that chan_sip does it for instanc […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">pjsip_sip_uri *uri = NULL;</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">switch (hdr->type) {<br> case PJSIP_H_TO:<br> case PJSIP_H_FROM:<br> if (is_sip_uri(((pjsip_fromto_hdr *) hdr)->uri)) {<br> uri = pjsip_uri_get_uri(((pjsip_fromto_hdr *) hdr)->uri);<br> }<br> break;<br> case PJSIP_H_CONTACT:<br> if (!((pjsip_contact_hdr *) hdr)->star && is_sip_uri(((pjsip_contact_hdr *) hdr)->uri)) {<br> uri = pjsip_uri_get_uri(((pjsip_contact_hdr *) hdr)->uri);<br> }<br> break;<br>}</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">if (!uri) {<br> ast_log(AST_LOG_WARNING, "Unsupported header %s", hdr->name);<br> return -1;<br>}</pre><p style="white-space: pre-wrap; word-wrap: break-word;">// to read<br>pjsip_param *x_param = pjsip_param_find(&uri->other_param, &name);</p><p style="white-space: pre-wrap; word-wrap: break-word;">// to remove<br>pjsip_param *x_param = pjsip_param_find(&uri->other_param, &name);<br>pj_list_erase(x_param);</p><p style="white-space: pre-wrap; word-wrap: break-word;">// to add<br>pjsip_param *x_param;<br>// set x_param<br>pj_list_push_back(&uri->other_param, x_param)</p><p style="white-space: pre-wrap; word-wrap: break-word;">// to update<br>pjsip_param *x_param = pjsip_param_find(&uri->other_param, &name);<br>// replace x_param->value</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18830">change 18830</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/+/18830"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ifb1bc3c512ad5f6faeaebd7817f004a2ecbd6428 </div>
<div style="display:none"> Gerrit-Change-Number: 18830 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.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-Reviewer: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-CC: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-Attention: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Attention: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Gerrit-Attention: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 26 Jul 2022 17:53:07 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Comment-In-Reply-To: Joshua Colp <jcolp@sangoma.com> </div>
<div style="display:none"> Comment-In-Reply-To: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>