beautypg.com

Welltech SPCI2S Intel NetStructure SS7 Boards User Manual

Page 31

background image

SS7 Programmer’s Manual for SPCI2, SPCI4 and CPM8 Issue 2

Page 31

4.4 Developing a user application

The Development Package, along with the User Part Development Package
contain all the files to allow the user to develop applications. These consist of
makefile definitions, C header files (.h) and libraries.

A single definitions file is supplied (for each operating system) which contains the
definitions relating to the user’s own development environment. This file is then
included in the make files for all other processes. The user may need to modify this
definitions file to ensure that correct paths etc are set up.

The definitions file is called one of the following depending on the operating
system:

makdefs.mnt

(Windows)

makdefs.mlx

(Linux)

makdefs.ms2

(Solaris)

The following library files should be linked with the users application code:

gctlib.lib

(Windows using Microsoft compiler)

gctlibb.lib

(Windows using Borland compiler)

gctlib.lib

(Linux)

gctlib.lib

(Solaris)

Some simple example programs are supplied to illustrate the techniques for
interfacing to the protocol stack although they are not intended to show a real
application. Before starting to develop an application, you should familiarise
yourself with the example programs and how they are built.

The example programs are contained on the User Part Development Package.

upe is a framework for a User Part module and contains a worked example of
exchanging messages with the MTP3 module. It loops back any MTP-TRANSFER-
INDICATIONS messages that it receives and reports other MTP indications to the
user.

mtpsl is an example of how to send messages to MTP3 to activate and deactivate
signalling links. It can be used as a command line tool for this purpose initially. It is
intended that the user builds the example code into the management application.

ctu is an example of how a user application can interface with telephony user parts,
eg. ISUP, TUP.

ttu is an example of how a user application can interface with the TCAP protocol
module.

A makefile is included to allow you to build the application programs. To build the
program change to the appropriate directory and enter (to build ctu):

nmake /f ctu.mnt

(Windows)

make -f ctu.mlx

(Linux)

make -f ctu.ms2

(Solaris)

This manual is related to the following products: