pespin has uploaded this change for review.

View Change

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(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/44/38044/1
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 change 38044. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: If5c6bb0c0d773e0ba18ec28062663bdec751c8c4
Gerrit-Change-Number: 38044
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>