<p><a href="https://gerrit.osmocom.org/12706">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/12706/2/src/mncc.c">File src/mncc.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/12706/2/src/mncc.c@783">Patch Set #2, Line 783:</a> <code style="font-family:monospace,monospace">    if (strncmp(call->source, "+", 1) == 0) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Since you're comparing just a single character you can do it directly like:<br>call->source[0] != '+'<br>provided call->source is initialized.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12706/2/src/mncc.c@785">Patch Set #2, Line 785:</a> <code style="font-family:monospace,monospace">              osmo_strlcpy(mncc.calling.number, call->source + 1, sizeof(mncc.calling.number));</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Curious, so in case of international number format, the + sign is not actually transmitted - didn't know that.<br>Do you recall spec. which describe this?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12706">change 12706</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/12706"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-sip-connector </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Idcfa31aff90e04dd0aa3583957f288889b1bbefe </div>
<div style="display:none"> Gerrit-Change-Number: 12706 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Keith Whyte <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-CC: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 28 Jan 2019 14:46:18 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>