<p>Richard Mudgett <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/8762">View Change</a></p><p>Patch set 3:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p>(7 comments)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/8762/3/funcs/func_frame_trace.c">File funcs/func_frame_trace.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8762/3/funcs/func_frame_trace.c@377">Patch Set #3, Line 377:</a> <code style="font-family:monospace,monospace"> case AST_FRAME_RTCP:</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">The indention is off by one.</p></li></ul></li><li><p><a href="https://gerrit.asterisk.org/#/c/8762/2/main/channel.c">File main/channel.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8762/2/main/channel.c@4888">Patch Set #2, Line 4888:</a> <code style="font-family:monospace,monospace"></code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">> For channel drivers that only support T.140 or the old send_text</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">We did not allow anything other than text/plain before and the old methods do not have a way to say what kind of text we are passing. This is why we should enforce only text/plain data to the legacy methods.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8762/2/main/channel.c@4897">Patch Set #2, Line 4897:</a> <code style="font-family:monospace,monospace"> f.src = "DIALPLAN";</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">> Probably should not send empty text messages over T.140.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">This is a behavior change as we discarded empty text messages before.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8762/2/main/channel.c@4932">Patch Set #2, Line 4932:</a> <code style="font-family:monospace,monospace">{</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Replace text with:</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Did you miss this one? Or are you assuming that nobody will call this with a NULL pointer?</p></li></ul></li><li><p><a href="https://gerrit.asterisk.org/#/c/8762/3/main/message.c">File main/message.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8762/3/main/message.c@1390">Patch Set #3, Line 1390:</a> <code style="font-family:monospace,monospace"> for(i=0; i < count; i++) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">for (i = 0;...</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8762/3/main/message.c@1411">Patch Set #3, Line 1411:</a> <code style="font-family:monospace,monospace"> for(i=0; i < count; i++) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">for (i = 0;..</p></li></ul></li><li><p><a href="https://gerrit.asterisk.org/#/c/8762/2/res/res_pjsip_messaging.c">File res/res_pjsip_messaging.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8762/2/res/res_pjsip_messaging.c@64">Patch Set #2, Line 64:</a> <code style="font-family:monospace,monospace">static enum pjsip_status_code check_content_type(const pjsip_rx_data *rdata)</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">> This allows any MESSAGE content type even for out-of-dialog</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">True but I don't see any other necessary changes to support other types of content type for out-of-dialog messages.</p><p style="white-space: pre-wrap; word-wrap: break-word;">The main/message.c code and out-of-dialog API would need updating to allow the user to get and set the content type. chan_sip, chan_pjsip, and res_xmpp would need updating to allow this as they currently assume the content type is text/plain.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/8762">change 8762</a>. To unsubscribe, 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/8762"/><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-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Idacf5900bfd5f22ab8cd235aa56dfad090d18489 </div>
<div style="display:none"> Gerrit-Change-Number: 8762 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 16 Apr 2018 17:34:34 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>