Access Keys:
Skip to content (Access Key - 0)









How do I use the CGIN Connectivity Pack demo service?

Print this page

CGIN Connectivity Pack demo service

The CGIN Connectivity Pack includes a very simple demo service, in $CGIN_HOME/examples/ (source code in $CGIN_HOME/examples/src/). The demo service simply:

  • accepts CAPv3 and ETSI INAP CS1 SSF-to-SCF dialogs
  • expects an IDP, and responds with either ReleaseCall or Continue, depending on the calling party number
  • ends the dialog immediately after responding.
This is intended as a quick demo of the new API, rather than as a useful service!

To deploy the demo service:

1 The CGIN RA uses the signalware stack by default, but can also be configured to use the TCAP Simulator stack:
  • To use the signalware stack, edit deploy.properties (verify that the configuration is correct for your local environment).
  • To use the TCAP Simulator stack, configure deploy.properties to match the configuration of the TCAP Simulator stack.
    The TCAP Simulator stack also needs files tcapsim-gt-table.txt and tcapsim-routing-table.txt under $RHINO_HOME/config for the CGIN RA. You can prepare these by adapting files tcapsim-gt-table.txt and tcapsim-routing-table.txt from $CGIN_HOME/tools/config/loopback/ (used by the Scenario simulator).
2 To build and deploy the demo service, run
cd examples
ant -f deploy.xml
(This also ensures that the CGIN RA is deployed along with the demo service — the root directory also has a deploy.xml file, but that deploys only the CGIN RA.)
3 To start the simulator, first edit configuration files in the $CGIN_HOME/tools/config/ directory to verify they are correct for your local environment. Then run
$ ./scenario-simulator.sh
The flow sequence below illustrates the message flow in this example.
> run-session CAPv3-Demo-ContinueRequest
Send -->  OpenRequest to endpoint2
Send -->  InitialDPRequest to endpoint2
Send -->  Delimiter to endpoint2
Recv <--  OpenAccept from endpoint2
Recv <--  ContinueRequest from endpoint2
Recv <--  Close from endpoint2
Outcome of "CAPv3-Demo-ContinueRequest" session: Matched scenario definition "CAPv3-Demo-ContinueRequest"
> run-session CAPv3-Demo-ReleaseCallRequest
Send -->  OpenRequest to endpoint2
Send -->  InitialDPRequest to endpoint2
Send -->  Delimiter to endpoint2
Recv <--  OpenAccept from endpoint2
Recv <--  ReleaseCallRequest from endpoint2
Recv <--  Close from endpoint2
Outcome of "CAPv3-Demo-ReleaseCallRequest" session: Matched scenario definition "CAPv3-Demo-ReleaseCallRequest"
Adaptavist Theme Builder Powered by Atlassian Confluence