<p style="white-space: pre-wrap; word-wrap: break-word;">Neels asked me to finish this up.</p><p><a href="https://gerrit.osmocom.org/13479">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/13479/4/src/hlr_ussd.c">File src/hlr_ussd.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/13479/4/src/hlr_ussd.c@255">Patch Set #4, Line 255:</a> <code style="font-family:monospace,monospace">strlen(subscr->vlr_number)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This must be</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;"> strlen(subscr->vlr_number) + 1</pre><p style="white-space: pre-wrap; word-wrap: break-word;">or else it does not work. At least when setting ipa-name in osmo-msc.cfg.</p><p style="white-space: pre-wrap; word-wrap: break-word;">I've added debug prints in gsup_route_find() [1] and this is how the compare fails without the +1:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;"> gsup route find: "MSC-13-37-00-00-00-00", len: 21<br> gsup route find: comparing with: "MSC-13-37-00-00-00-00\0", len: 22</pre><p style="white-space: pre-wrap; word-wrap: break-word;">[1]: https://git.osmocom.org/osmo-hlr/tree/src/gsup_router.c?id=3cf87fe22cf53178ddd4f7e5c4be67ca8c4bc8bd#n37</p><p style="white-space: pre-wrap; word-wrap: break-word;">Fixed in patchset #5.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13479/4/src/hlr_ussd.c@335">Patch Set #4, Line 335:</a> <code style="font-family:monospace,monospace">ss->subscr = NULL;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I think doing this manually is not a good idea... […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">I have added a timer and set it to 10 seconds.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/13479/4/src/hlr_ussd.c@338">Patch Set #4, Line 338:</a> <code style="font-family:monospace,monospace">           ss_tx_error(ss, true, GSM0480_ERR_CODE_UNKNOWN_SUBSCRIBER);</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">> should probably also somehow remember which MSC initiated the session? […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">See my follow up patch here:</p><p style="white-space: pre-wrap; word-wrap: break-word;">https://gerrit.osmocom.org/#/c/osmo-hlr/+/13515/</p><p style="white-space: pre-wrap; word-wrap: break-word;">Is this the right approach?</p><p style="white-space: pre-wrap; word-wrap: break-word;">Vadim, since Neels is super busy with finishing up MSC handover stuff, maybe you can take a look at it?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/13479">change 13479</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/13479"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-hlr </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I18067bfadd33a6bc59a9ee336b6937313826fce3 </div>
<div style="display:none"> Gerrit-Change-Number: 13479 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 05 Apr 2019 08:51:57 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>