[MERGED] osmo-ttcn3-hacks[master]: MGCP_Emulation: Add comment + license disclaimer

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Jan 26 09:44:44 UTC 2018


Harald Welte has submitted this change and it was merged.

Change subject: MGCP_Emulation: Add comment + license disclaimer
......................................................................


MGCP_Emulation: Add comment + license disclaimer

Change-Id: Ibf1a1ed80a99c8d8754cce3b47b11b5186b9c52d
---
M library/MGCP_Emulation.ttcn
1 file changed, 27 insertions(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/library/MGCP_Emulation.ttcn b/library/MGCP_Emulation.ttcn
index 1209ff6..beef9e8 100644
--- a/library/MGCP_Emulation.ttcn
+++ b/library/MGCP_Emulation.ttcn
@@ -1,5 +1,32 @@
 module MGCP_Emulation {
 
+/* MGCP Emulation, runs on top of MGCP_CodecPort.  It multiplexes/demultiplexes
+ * the individual connections, so there can be separate TTCN-3 components handling
+ * each of the connections.
+ *
+ * The MGCP_Emulation.main() function processes MGCP primitives from the MGCP
+ * socket via the MGCP_CodecPort, and dispatches them to the per-connection components.
+ *
+ * For each new inbound connection, the MgcpOps.create_cb() is called.  It can create
+ * or resolve a TTCN-3 component, and returns a component reference to which that inbound
+ * connection is routed/dispatched.
+ *
+ * If a pre-existing component wants to register to handle a future inbound call, it can
+ * do so by registering an "expect" with the expected destination phone number.  This is e.g. useful
+ * if you are simulating BSC + MGCP, and first trigger a connection from BSC side in a
+ * component which then subsequently should also handle the MGCP emulation.
+ *
+ * Inbound Unit Data messages (such as are dispatched to the MgcpOps.unitdata_cb() callback,
+ * which is registered with an argument to the main() function below.
+ *
+ * (C) 2017-2018 by Harald Welte <laforge at gnumonks.org>
+ * (C) 2018 by sysmocom - s.f.m.c. GmbH, Author: Daniel Willmann
+ * All rights reserved.
+ *
+ * Released under the terms of GNU General Public License, Version 2 or
+ * (at your option) any later version.
+ */
+
 import from MGCP_CodecPort all;
 import from MGCP_CodecPort_CtrlFunct all;
 import from MGCP_Types all;

-- 
To view, visit https://gerrit.osmocom.org/6088
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibf1a1ed80a99c8d8754cce3b47b11b5186b9c52d
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list