<p><a href="https://gerrit.asterisk.org/c/asterisk/+/15400">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/c/asterisk/+/15400/1/res/res_pjsip_refer.c">File res/res_pjsip_refer.c:</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/+/15400/1/res/res_pjsip_refer.c@133">Patch Set #1, Line 133:</a> <code style="font-family:monospace,monospace">                 ast_log(LOG_WARNING, "Subscription %p was stepped on!", sub);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This warning can only be a debug message.  It is rather useless because if you get it you are about to crash.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/15400/1/res/res_pjsip_refer.c@566">Patch Set #1, Line 566:</a> <code style="font-family:monospace,monospace">                       if (ast_sip_push_task_serializer(attended->progress->serializer, refer_progress_notify, notification)) {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">> Why not use ast_sip_push_task()?  The same for the other places where you are using the new ast_si […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">There are three other places that push the notify.  Also you are already changing the timing if the call does not take place on the serializer.</p><p style="white-space: pre-wrap; word-wrap: break-word;">In this case the progress serializer is created for this transfer and can only execute two functions.  The refer_progress_notify() and refer_progress_terminate() functions.  If the terminate happens then refer_progress_notify() exits as the subscription is gone.  If the refer_progress_notify() is transitioning the notification state to terminated then any subsequent calls are ignored as well.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Where you are using the new push function, it will always push the task to the progress serializer anyway.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/15400">change 15400</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/+/15400"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 16 </div>
<div style="display:none"> Gerrit-Change-Id: Idcf1934c4e873f2c82e2d106f8d9f040caf9fa1e </div>
<div style="display:none"> Gerrit-Change-Number: 15400 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 09 Feb 2021 21:58:57 +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: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Comment-In-Reply-To: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>