<p>Keith Whyte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9270">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Add Cause to DISCONNECT and RELEASE Requests<br><br>GSM 04.08 10.5.4.11 (Table 10.85) states:<br><br>Coding standards other than the standard defined for the<br>GSM PLMNS shall not be used if the cause can be represented<br>with the GSM standardized coding.<br><br>This patch adds cause coding GSM PLMS (3) and sets cause<br>location to  "public network serving the local user" (2)<br>This prevents UE that pay attention to this from treating<br>all call termination as an error and paves the way to<br>adding correct cause mapping from Table 10.86<br><br>Change-Id: I5d3fe3f0c9e8de26dd0c73b10b7e4fc63dff3952<br>---<br>M src/mncc.c<br>1 file changed, 5 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-sip-connector refs/changes/70/9270/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/mncc.c b/src/mncc.c</span><br><span>index 0feb12e..f307dcf 100644</span><br><span>--- a/src/mncc.c</span><br><span>+++ b/src/mncc.c</span><br><span>@@ -107,6 +107,11 @@</span><br><span> {</span><br><span>        mncc->msg_type = msg_type;</span><br><span>        mncc->callref = callref;</span><br><span style="color: hsl(120, 100%, 40%);">+   if (MNCC_DISC_REQ == msg_type || MNCC_REL_REQ == msg_type) {</span><br><span style="color: hsl(120, 100%, 40%);">+          mncc->fields |= MNCC_F_CAUSE;</span><br><span style="color: hsl(120, 100%, 40%);">+              mncc->cause.coding = 3;</span><br><span style="color: hsl(120, 100%, 40%);">+            mncc->cause.location = 2;</span><br><span style="color: hsl(120, 100%, 40%);">+  }</span><br><span> }</span><br><span> </span><br><span> static void mncc_write(struct mncc_connection *conn, struct gsm_mncc *mncc, uint32_t callref)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9270">change 9270</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/9270"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I5d3fe3f0c9e8de26dd0c73b10b7e4fc63dff3952 </div>
<div style="display:none"> Gerrit-Change-Number: 9270 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Keith Whyte <keith@rhizomatica.org> </div>