<p>neels <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/23943">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lchan and assignment FSMs: make Channel Mode Modify more sane<br><br>The Channel Mode Modify procedure is currently implemented for changing<br>a TCH lchan from signalling to voice mode. For that, however, it is<br>re-using (abusing) the channel activation structs and state transitions,<br>and thus always implies activating a voice stream when the mode<br>modification is done.<br><br>I will add a Channel Mode Modify to enable VAMOS mode soon, so I require<br>separate structs and state transitions which also work on an lchan that<br>already has a voice stream established: a struct lchan_modify_info and<br>LCHAN_EV_REQUEST_MODE_MODIFY, and dedicated assignment FSM state<br>ASSIGNMENT_ST_WAIT_LCHAN_MODIFIED.<br><br>For the part where a Channel Mode Modify enables a voice stream after<br>switching from signalling to speech mode, still use the channel<br>activation code path, but only once the mode modification is done.<br><br>General improvements:<br>- To ask for a mode modification, emit an FSM event that ensures a mode<br>  modify only happens when the lchan state allows it.<br>- The new lchan_modify_info struct reflects only those parts that have<br>  an effect during a mode modification (before the lchan_activate_info<br>  was fully populated, many values not having an effect).<br>- More accurate logging, indicating "Mode Modify" instead of "Channel<br>  Activation"<br><br>A TTCN3 test for the Channel Mode Modify procedure is added in<br>Idf4efaed986de0bbd2b663313e837352cc139f0f, and the test passes both<br>before and after this patch is applied.<br><br>Related: SYS#4895<br>Change-Id: I4986844f839b1c9672c61d916eb3d33d0042d747<br>---<br>M doc/assignment-fsm.dot<br>M include/osmocom/bsc/assignment_fsm.h<br>M include/osmocom/bsc/gsm_data.h<br>M include/osmocom/bsc/lchan_fsm.h<br>M src/osmo-bsc/assignment_fsm.c<br>M src/osmo-bsc/gsm_data.c<br>M src/osmo-bsc/lchan_fsm.c<br>7 files changed, 220 insertions(+), 68 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/43/23943/4</pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/23943">change 23943</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-bsc/+/23943"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I4986844f839b1c9672c61d916eb3d33d0042d747 </div>
<div style="display:none"> Gerrit-Change-Number: 23943 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </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: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>