<p><a href="https://gerrit.osmocom.org/c/osmo-mgw/+/15140">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/15140/1//COMMIT_MSG">Commit Message:</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.osmocom.org/#/c/15140/1//COMMIT_MSG@12">Patch Set #1, Line 12:</a> <code style="font-family:monospace,monospace">- instead of strstr("rtpmap"), use osmo_str_startswith("a=rtpmap:") to more</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Does spec state there shall be no whitespace at the start of the line?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">(There are no spaces at SDP line beginnings.)</p><p style="white-space: pre-wrap; word-wrap: break-word;">The point being that 'strstr("rtpmap")' would also match these convoluted examples:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  o=openrtpmaptool 1565090289 1565090290 IN IP4 192.168.11.151<br>  s=rtpmap-test</pre><p style="white-space: pre-wrap; word-wrap: break-word;">or strstr("ptime") would even match</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  s=sleeptimer</pre><p style="white-space: pre-wrap; word-wrap: break-word;">i.e. we must not match the middle of a free-format string. The only accurate match is at the start of a line after 'a='</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  a=rtpmap:123 FOO/8000</pre></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-mgw/+/15140">change 15140</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/osmo-mgw/+/15140"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-mgw </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I730111e245da8485c1b5e8811f75d140e379cec6 </div>
<div style="display:none"> Gerrit-Change-Number: 15140 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 12 Aug 2019 22:50:03 +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: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>