<p style="white-space: pre-wrap; word-wrap: break-word;">It looks like my code is not flexible enough to allow handover for non-voice connections: I see that cc_trans is expected to always exist in some places. Nevertheless, please let's not continue on that mistake of mine: call_id should have optional presence everywhere.</p><p style="white-space: pre-wrap; word-wrap: break-word;">We should probably do something like .call_id_present = (cc.active_trans != NULL)</p><p style="white-space: pre-wrap; word-wrap: break-word;">(I guess we should also add MSC ttcn3 tests to make sure handover on a non-CC conn doesn't crash the MSC! ... just added https://osmocom.org/issues/4612 )</p><p><a href="https://gerrit.osmocom.org/c/osmo-msc/+/18740">View Change</a></p><p>3 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/+/18740/2/src/libmsc/msc_ho.c">File src/libmsc/msc_ho.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/+/18740/2/src/libmsc/msc_ho.c@406">Patch Set #2, Line 406:</a> <code style="font-family:monospace,monospace">                  .call_id = cc_trans->callref,</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Thats indeed not required. The generator function unconditionally picks it, which is ok. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm pretty sure that's not ok, call_id must be treated optional in all layers of generating a handover request</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-msc/+/18740/3/src/libmsc/msc_ho.c">File src/libmsc/msc_ho.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/+/18740/3/src/libmsc/msc_ho.c@406">Patch Set #3, Line 406:</a> <code style="font-family:monospace,monospace">                   .call_id = cc_trans->callref,</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">call_id_present = true</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-msc/+/18740/3/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/+/18740/3/src/libmsc/ran_msg_a.c@1120">Patch Set #3, Line 1120:</a> <code style="font-family:monospace,monospace">              .call_id_present = true,</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">nice catch! but handover may also happen for non-voice connections, so this has to be .call_id_present = n->call_id_present.<br>(I hope n->call_id_present exists?)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-msc/+/18740">change 18740</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/+/18740"/><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: I6b1b55b3f5a3092d9557dc2512020c766a9ff744 </div>
<div style="display:none"> Gerrit-Change-Number: 18740 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </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-Comment-Date: Sun, 14 Jun 2020 12:22: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: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>