pespin has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38044?usp=email )
Change subject: SIP_Emulation: Allow forwarding ASP_SIP_close
......................................................................
SIP_Emulation: Allow forwarding ASP_SIP_close
This allows closing SIP connections at will from within the test.
Change-Id: If5c6bb0c0d773e0ba18ec28062663bdec751c8c4
---
M library/SIP_Emulation.ttcn
1 file changed, 6 insertions(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
jolly: Looks good to me, but someone else must approve
diff --git a/library/SIP_Emulation.ttcn b/library/SIP_Emulation.ttcn
index 3de7169..994b528 100644
--- a/library/SIP_Emulation.ttcn
+++ b/library/SIP_Emulation.ttcn
@@ -39,7 +39,7 @@
/* port between individual per-call components and this dispatcher */
type port SIP_Conn_PT message {
- inout PDU_SIP_Request, PDU_SIP_Response;
+ inout PDU_SIP_Request, PDU_SIP_Response, ASP_SIP_close
} with { extension "internal" };
/* represents a single SIP Call */
@@ -246,6 +246,7 @@
var SIP_ConnHdlr vc_hdlr, vc_conn;
var PDU_SIP_Request sip_req;
var PDU_SIP_Response sip_resp;
+ var ASP_SIP_close sip_close;
var SipUrl sip_to;
alt {
@@ -331,6 +332,10 @@
[] CLIENT.receive(PDU_SIP_Response:?) -> value sip_resp sender vc_conn {
SIP.send(sip_resp);
}
+ /* a ConnHdlr is sending us a ASP_SIP_close: Forward to SIP port */
+ [] CLIENT.receive(ASP_SIP_close:?) -> value sip_close sender vc_conn {
+ SIP.send(sip_close);
+ }
[] CLIENT_PROC.getcall(SIPEM_register:{?,?}) -> param(sip_to, vc_hdlr) sender
vc_conn {
f_create_expect(sip_to, vc_hdlr);
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/38044?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: If5c6bb0c0d773e0ba18ec28062663bdec751c8c4
Gerrit-Change-Number: 38044
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: jolly <andreas(a)eversberg.eu>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>