SS7 Sample Configuration Files
This section shows the sample configuration files for creating the basic SS7 connection to an HLR. These sample files show how to set up one board with two SS7 links.
Basic Provisioning MML File with One Point Code/ Two SS7 Links
CRTE-OSPC:PC=9619,NI=NAT0;
CRTE-LSET:LSET=LSET1,PC=6400;
CRTE-SLK:SLK=LNK1,LSET=LSET1,SLC=0,SPEED=64K,PORT=0,CHANNEL=2;CRTE-SLK:SLK=LNK2,LSET=LSET1,SLC=1,SPEED=64K,PORT=1,CHANNEL=3;
CRTE-RSET:RSET=RSET1,PC=6400,RTES=LSET1,LOADSHR=YES;
ALW-RSET:RSET=RSET1;ACTV-SLK:SLK=LNK1;
ACTV-SLK:SLK=LNK2;CREATE-GT:TT=0,NP=ISDN-TEL,NA=INT,DIG="35840211430",PC=9619,SSN=0,RI=GT;CREATE-GT:TT=0,NP=ISDN-TEL,NA=INT,DIG="358",PC=6400,SSN=0,RI=DEF;CREATE-GT:TT=0,NP=ISDN-MOB,NA=INT,DIG="358",PC=6400,SSN=0,RI=DEF;
NP — 1=E.164=ISDN-TEL; 7=E.214=ISDN-MOB
NA — INT
DIG — Enter the first digits of MSISDN/IMSI. The routing decision is made with "best match" method. The PC message is sent towards this Point Code if "digit" matches the item specified as NP (ISDN-Tel).
Point codes — in decimal format.Routing Based on PC/SSN
CRTE-OSPC:PC=9619,NI=NAT1;CRTE-LSET:LSET=LSET1,PC=11;CRTE-SLK:SLK=LNK1,LSET=LSET1,SLC=0,SPEED=64K,PORT=0,CHANNEL=2;CRTE-SLK:SLK=LNK2,LSET=LSET1,SLC=1,SPEED=64K,PORT=1,CHANNEL=3;CRTE-RSET:RSET=RSET1,PC=11,RTES=LSET1,LOADSHR=YES;CRTE-RSET:RSET=RSET2,PC=17,RTES=LSET1,LOADSHR=YES;
CRTE-RSET:RSET=RSET3,PC=18,RTES=LSET1,LOADSHR=YES;CRTE-REMSSN:PC=17,SSN=6;![]()
CRTE-REMSSN:PC=18,SSN=6;ALW-RSET:RSET=RSET1;ALW-RSET:RSET=RSET2;ALW-RSET:RSET=RSET3;ACTV-SLK:SLK=LNK1;ACTV-SLK:SLK=LNK2;
CREATE-GT:TT=0,NP=ISDN-TEL,NA=INT,DIG="35840299",PC=961,SSN=7,RI=PCSSN; CREATE-GT:TT=0,NP=ISDN-TEL,NA=INT,DIG="358402111",PC=17,SSN=6,RI=PCSSN;CREATE-GT:TT=0,NP=ISDN-TEL,NA=INT,DIG="358402112",PC=18,SSN=6,RI=PCSSN;
CREATE-GT:TT=0,NP=ISDN-TEL,NA=INT,DIG="244911",PC=17,SSN=6,RI=PCSSN;CREATE-GT:TT=0,NP=ISDN-TEL,NA=INT,DIG="244912",PC=18,SSN=6,RI=PCSSN;CREATE-GT:TT=0,NP=ISDN-TEL,NA=INT,DIG="244913",PC=18,SSN=6,RI=PCSSN;CREATE-GT:TT=0,NP=ISDN-TEL,NA=INT,DIG="244914",PC=17,SSN=6,RI=PCSSN;Redundant SS7 Links Backing Up Each Other (Two Point Codes)
CRTE-OSPC:PC=9619,NI=NAT0;CRTE-LSET:LSET=LSET1,PC=6400;![]()
CRTE-LSET:LSET=LSET2,PC=6401;CRTE-SLK:SLK=LNK1,LSET=LSET1,SLC=0,SPEED=64K,PORT=0,CHANNEL=2;CRTE-SLK:SLK=LNK2,LSET=LSET2,SLC=1,SPEED=64K,PORT=1,CHANNEL=3;CRTE-SLK:SLK=LNK3,LSET=LSET1,SLC=2,SPEED=64K,PORT=16,CHANNEL=2;CRTE-SLK:SLK=LNK4,LSET=LSET2,SLC=3,SPEED=64K,PORT=17,CHANNEL=3;CRTE-RSET:RSET=RSET1,PC=6400,RTES=LSET1&LSET2;![]()
CRTE-RSET:RSET=RSET2,PC=6401,RTES=LSET2&LSET1;ALW-RSET:RSET=RSET1;ALW-RSET:RSET=RSET2;ACTV-SLK:SLK=LNK1;ACTV-SLK:SLK=LNK2;ACTV-SLK:SLK=LNK3;ACTV-SLK:SLK=LNK4;CRTE-GT:TT=0,NP=ISDN-TEL,NA=INT,DIG="358402114300",PC=9619,SSN=0,RI=GT;CRTE-GT:TT=0,NP=ISDN-TEL,NA=INT,DIG="358",PC=6400,SSN=0,RI=GT,BKUPPC=6401,BKUPSSN=0,BKUPRI=GT;![]()
Sample authGateway Command and File
sampleCreateProcess.mml
CRTE-PROCESS:NAME="GMT",CE="as1",EXEC="authGateway -name GMT -port 2000 -host as1 -node MGW -prot C7 -conf conf/authGateway.conf.100 -lri 1 -lssn 7 -appctx 3 -ldigits 358402114300"; START-PROCESS:NAME="GMT", CE="as1";authGateway.conf (Gateway Routing Configuration File)
Each line of this configuration file describes:
- The parameters used to form the destination SCCP address.
- The decimal value of the bearer service (bs) and/or teleservices (ts) indicating an authorization.
- A string associated with each bs or ts value. If no bs and no ts are specified, no authorization is performed by the authGateway.
For each request, the first digits of the IMSI are compared with
odigits. The first line of the configuration file that matches is selected for the current request. If the routing indicator (rri) specifies that the routing is done on GT, the leading digits are replaced with the new digits (ndigits) to perform the numbering plan translation. If a parameter is not present on the line, it is not present in the SCCP destination address. If this is incompatible with the routing indicator, an error message is issued when the MAP authentication Gateway is started.After modifying this configuration file, the authGateway has to be restarted. Modification of the
ndigitsvalue may require the creation of a new GT rule (CREATE-GT command).
odigits 24491 ndigits 35840 rri 0 rgti 4 rssn 6 rtt 0 rnp 7 rnai 4 bs 17:B11 bs26:B1A ts 33:T21 odb 128:NotAuthorized ss 146:NotAuthorizedodigits 244911 ndigits 244911 rri 1 rpc 17 rssn 6 bs 17:B11 bs 26:B1A ts 33:T21 odb 128:NotAuthorized ss 146:NotAuthorizedodigits 244912 ndigits 244912 rri 1 rpc 18 rssn 6 bs 17:B11 bs 26:B1A ts 33:T21 odb 128:NotAuthorized ss 146:NotAuthorizedSample smsGateway Commands and Files
AS4StartSmsGw.mml — One Point Code/ Two SS7 Links
CREATE-PROCESS:NAME="SMS", CE="as1", EXEC="smsGateway -name SMS -port 2004 -host as1 -node MGW -conf conf/smsGateway.conf.100 -smsc 1935840123456 -appctx 3 -invktimeout 180";START-PROCESS:NAME="SMS", CE="as1";
smsGateway.conf
This configuration file describes the parameters used to form the destination SCCP address.
- One line containing
DestAdressis used to address the destination node (HLR, MSC or SGSN). It is used only for SEND_ROUTING_INFO_FOR_SM in case of a Mobile Terminated SMS or to obtain the IMSI from the subscriber's MSISDN.- The digits to address the HLR (that is, subscriber's MSISDN) are obtained from the client library.
- The digits to address the serving MSC (or SGSN) are obtained as a result of the SEND_ROUTING_INFO_FOR_SM message.
- If a parameter is not present on the line, it will not be present in the SCCP destination address. If this is incompatible with the routing indicator, an error message will be issued when the SMS Gateway is started.
- An optional parameter
rssn, can be used to specify the destination ssn. This parameter will be used for routing only if the message is routed with a GT rule configured with SSN=DEF. If a normal GT is used (SSN=value), the value will overwrite the rssn defined in this file.- All RoutingInfo messages are sent by default to SSN 6 (HLR).
The smsGateway has to be restarted after it is modified. Modification of the digits value may require the creation of a new GT rule (CREATE-GT command).
DestAddress rssn 8 rnai 4 rnp 1 rgti 4 rtt 0 rri 0OrigAddress lpc 9619 lssn 7 ldigits 358402114300 oatype 1 oanp 1 oadigits 35840112233ROCESS:NAME="SMS", CE="as1";
smsulcmmg.conf
LOCAL_HOST as1:2002REMOTE_HOST as1:2003 [192.89.210.12]![]()