<p><a href="https://gerrit.osmocom.org/c/osmo-msc/+/15946">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.osmocom.org/c/osmo-msc/+/15946/1/src/libmsc/ran_msg_a.c">File src/libmsc/ran_msg_a.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.osmocom.org/c/osmo-msc/+/15946/1/src/libmsc/ran_msg_a.c@127">Patch Set #1, Line 127:</a> <code style="font-family:monospace,monospace">                 /* This IE is not critical, do not abort with error. */</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">then probably set log level as WARN/NOTICE?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I still think it's an error, because the IE was present, but wasn't decodable. We can continue but might end up with a working phone call, or we might end up with codec mismatches or codecs that the BSS doesn't support.<br>I chose to continue to maybe provide the user with a working setup "by coincidence", but the IE was broken.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-msc/+/15946/1/src/libmsc/ran_msg_a.c@129">Patch Set #1, Line 129:</a> <code style="font-family:monospace,monospace">                   ran_dec_msg.compl_l3.codec_list_bss_supported = &codec_list_bss_supported;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I have the feeling that's intended and fine here. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">ran_decoded() is the only scope that is using the decoded message. It is intended this way to avoid a lot of allocation and ownership issues. So, to decode a RAN message, the caller provides a callback which ran_decoded() below invokes. Anything that should remain after the callback returns must be copied.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-msc/+/15946">change 15946</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-msc/+/15946"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I66c735c79e982388f06b5de783aa584c9d13569e </div>
<div style="display:none"> Gerrit-Change-Number: 15946 </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-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 11 Nov 2019 20:33:15 +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"> Comment-In-Reply-To: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>