<p> Attention is currently required from: N A. </p>
<p><a href="https://gerrit.asterisk.org/c/asterisk/+/18824">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="null">File res/res_pjsip_logger.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/+/18824/comment/b04b2114_37bc696c">Patch Set #1, Line 103:</a> <code style="font-family:monospace,monospace">struct pjsip_method_logger {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">The methods included are the methods that PJSIP seems to natively support: https://www.pjsip. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Please look at res/res_pjsip.c to find out which methods asterisk PJSIP already supports</p><p style="white-space: pre-wrap; word-wrap: break-word;">/* PJSIP doesn't know about the INFO method, so we have to define it ourselves */<br>static const pjsip_method info_method = {PJSIP_OTHER_METHOD, {"INFO", 4} };<br>static const pjsip_method message_method = {PJSIP_OTHER_METHOD, {"MESSAGE", 7} };</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">static struct {<br> const char *method;<br> const pjsip_method *pmethod;<br>} methods [] = {<br> { "INVITE", &pjsip_invite_method },<br> { "CANCEL", &pjsip_cancel_method },<br> { "ACK", &pjsip_ack_method },<br> { "BYE", &pjsip_bye_method },<br> { "REGISTER", &pjsip_register_method },<br> { "OPTIONS", &pjsip_options_method },<br> { "SUBSCRIBE", &pjsip_subscribe_method },<br> { "NOTIFY", &pjsip_notify_method },<br> { "PUBLISH", &pjsip_publish_method },<br> { "INFO", &info_method },<br> { "MESSAGE", &message_method },<br>};</pre></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18824/comment/cf9f6a31_02bff2d4">Patch Set #1, Line 183:</a> <code style="font-family:monospace,monospace"> if (session->log_methods.log_method_invite && !pjsip_method_cmp(method, &pjsip_invite_method)) {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Well, it does take it into consideration, it's just that it does an OR instead of an AND. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Where "existing logging mechanism uses an OR"? Do you mean host1 or host2 or host3?<br>I think it would be better to have AND condition for different filters: hosts and methods.<br>If I set both filters on hosts and methods I suppose that both filters are in effect. In your case I have to guess which one is in effect.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18824/comment/8f770234_c9517d3e">Patch Set #1, Line 443:</a> <code style="font-family:monospace,monospace"> memset(&default_logger->log_methods, 0, sizeof(default_logger->log_methods));</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I suppose that could be done, but then we'd have to check for starting with str, ending with it, or […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">To be consistent with hosts filter I think would be better to have 2 commands:<br>"method" - to set only one method<br>"method add" - to add another method</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18824">change 18824</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/+/18824"/><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: Idd03bd9b466b40e4bca7769437d52ac13a957cf9 </div>
<div style="display:none"> Gerrit-Change-Number: 18824 </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: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Attention: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 22 Jul 2022 14:06:00 +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: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>