cbc: Send Write-Replace-Warn-Ind after ACKing the request

This way we can test how does osmo-cbc behave when receiving such
message.

Related: OS#4945
Change-Id: Ifcdcddc7dccb5439126a5fa29bb540669ed25908
diff --git a/cbc/MME_ConnectionHandler.ttcn b/cbc/MME_ConnectionHandler.ttcn
index 055aaa3..fec358c 100644
--- a/cbc/MME_ConnectionHandler.ttcn
+++ b/cbc/MME_ConnectionHandler.ttcn
@@ -35,7 +35,9 @@
 	charstring cbc_host,
 	integer cbc_sbcap_port,
 	void_fn start_fn,
-	CBS_Message exp_cbs_msg optional
+	CBS_Message exp_cbs_msg optional,
+	SBC_AP_Cause write_replace_warning_ind_cause optional,
+	CellId_Broadcast_List bcast_cell_id_list optional
 };
 
 function f_MME_ConnHdlr_main(charstring id, MME_ConnHdlrPars pars) runs on MME_ConnHdlr {
@@ -53,6 +55,17 @@
 	f_SBC_AP_send(tx, idx);
 }
 
+function f_sbcap_tx_write_replace_warn_ind(integer idx := 0, CBS_Message msg,
+					   SBC_AP_Cause cause,
+					   template (value) CellId_Broadcast_List bcast_cell_id_li)
+runs on MME_ConnHdlr {
+	var template (value) SBC_AP_PDU tx;
+	tx := ts_SBCAP_WRITE_WARNING_IND(int2bit(msg.msg_id, 16),
+					 int2bit(msg.ser_nr, 16),
+					 cause, bcast_cell_id_li);
+	f_SBC_AP_send(tx, idx);
+}
+
 function f_sbcap_tx_stop_warn_resp(integer idx := 0, CBS_Message msg)
 runs on MME_ConnHdlr {
 	var template (value) SBC_AP_PDU tx;