init ems server code
This commit is contained in:
32
plat/m2ua/ut/testcate/MGC(IUA)_Client.txt
Normal file
32
plat/m2ua/ut/testcate/MGC(IUA)_Client.txt
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "headfile.txt"
|
||||
|
||||
test 1 udp<UDP>
|
||||
UDP.Set remote_port=MSG_PORT
|
||||
UDP.Set local_port=MSG_PORT
|
||||
UDP.Set remote_ip=MSC_IP
|
||||
//0 send <Release>
|
||||
//A5 00 03 00 02 00
|
||||
//
|
||||
//10 send <Disable>
|
||||
//A5 00 03 00 06 00
|
||||
|
||||
10 send <Enable>
|
||||
A5 00 03 00 07 00
|
||||
|
||||
100 send <Establish>
|
||||
A5 00 03 00 01 00
|
||||
|
||||
10 send <data>
|
||||
05 00 03 FF 01 F0
|
||||
1000 recv <data>
|
||||
??
|
||||
10 send <data>
|
||||
05 00 03 FF 01 F1
|
||||
1000 recv <data>
|
||||
??
|
||||
|
||||
100 send <Release>
|
||||
A5 00 03 00 02 00
|
||||
|
||||
50 send <Disable>
|
||||
A5 00 03 00 06 00
|
||||
52
plat/m2ua/ut/testcate/MGC(IUA)_Server.txt
Normal file
52
plat/m2ua/ut/testcate/MGC(IUA)_Server.txt
Normal file
@@ -0,0 +1,52 @@
|
||||
#include "headfile.txt"
|
||||
|
||||
test 1 sctp<SCTP>
|
||||
SCTP.SET REMOTE_IP=MSC_IP
|
||||
SCTP.SET REMOTE_PORT=IUA_CPORT
|
||||
SCTP.SET LOCAL_PORT=IUA_PORT
|
||||
SCTP.SET STREAM_ID=1
|
||||
50 SCTP.SET server
|
||||
|
||||
1000 SCTP.RECV <asp up>
|
||||
01 00 03 01 00 00 00 10 00 11 00 08 ?? ?? ?? ??
|
||||
|
||||
|
||||
0 SCTP.send <asp up ack>
|
||||
01 00 03 04 00 00 00 08
|
||||
|
||||
0 SCTP.send <Notify>
|
||||
01 00 00 01 00 00 00 10 00 0D 00 08 00 01 00 02
|
||||
|
||||
1000 SCTP.FLTR <asp up>
|
||||
01 00 03 01 00 00 00 10 00 11 00 08 ?? ?? ?? ??
|
||||
|
||||
1000 SCTP.RECV <asp active>
|
||||
01 00 04 01 00 00 00 18 00 0B 00 08 00 00 00 01 00 01 00 08 00 00 00 00
|
||||
|
||||
0 SCTP.send <asp active ack>
|
||||
01 00 04 03 00 00 00 10 00 0B 00 08 00 00 00 01
|
||||
|
||||
0 SCTP.send <Notify>
|
||||
01 00 00 01 00 00 00 10 00 0D 00 08 00 01 00 03
|
||||
|
||||
1000 SCTP.RECV <Establish req>
|
||||
01 00 05 05 00 00 00 18 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00
|
||||
|
||||
0 SCTP.send <Establish cnf>
|
||||
01 00 05 06 00 00 00 18 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00
|
||||
|
||||
1000 SCTP.RECV <Data>
|
||||
??
|
||||
0 SCTP.SEND <Data Indication>
|
||||
01 00 05 02 00 00 00 20 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00 00 0E 00 07 FF 01 F1 00
|
||||
|
||||
1000 SCTP.RECV <Data>
|
||||
??
|
||||
0 SCTP.SEND <Data Indication>
|
||||
01 00 05 02 00 00 00 20 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00 00 0E 00 07 FF 01 F0 00
|
||||
|
||||
//1 SCTP.SEND <Release Indication>
|
||||
//01 00 05 0A 00 00 00 20 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00 00 0F 00 08 00 00 00 00
|
||||
|
||||
1000 SCTP.RECV <Release req>
|
||||
01 00 05 08 00 00 00 20 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00 00 0F 00 08 00 00 00 00
|
||||
33
plat/m2ua/ut/testcate/MGC(M2UA)_Client.txt
Normal file
33
plat/m2ua/ut/testcate/MGC(M2UA)_Client.txt
Normal file
@@ -0,0 +1,33 @@
|
||||
#include "headfile.txt"
|
||||
|
||||
test 1 udp<UDP>
|
||||
UDP.Set remote_port=MSG_PORT
|
||||
UDP.Set local_port=MSG_PORT
|
||||
UDP.Set remote_ip=MSC_IP
|
||||
|
||||
0 send <Release>
|
||||
A6 02 03 00 02 00
|
||||
|
||||
10 send <Disable>
|
||||
A6 02 03 00 06 00
|
||||
|
||||
10 send <Enable>
|
||||
A6 02 03 00 07 00
|
||||
|
||||
100 send <Establish>
|
||||
A6 02 03 00 01 00
|
||||
|
||||
10 send <data>
|
||||
06 02 03 FF 01 F0
|
||||
1000 recv <data>
|
||||
??
|
||||
10 send <data>
|
||||
06 02 03 FF 01 F1
|
||||
1000 recv <data>
|
||||
??
|
||||
|
||||
100 send <Release>
|
||||
A6 02 03 00 02 00
|
||||
|
||||
50 send <Disable>
|
||||
A6 02 03 00 06 00
|
||||
61
plat/m2ua/ut/testcate/MGC(M2UA)_Server.txt
Normal file
61
plat/m2ua/ut/testcate/MGC(M2UA)_Server.txt
Normal file
@@ -0,0 +1,61 @@
|
||||
#include "headfile.txt"
|
||||
|
||||
test 1 sctp<SCTP>
|
||||
SCTP.SET REMOTE_IP=MSC_IP
|
||||
SCTP.SET REMOTE_PORT=M2UA_CPORT
|
||||
SCTP.SET LOCAL_PORT=M2UA_PORT
|
||||
SCTP.SET STREAM_ID=1
|
||||
50 SCTP.SET server
|
||||
|
||||
1000 SCTP.RECV <asp up>
|
||||
01 00 03 01 00 00 00 10 00 11 00 08 ?? ?? ?? ??
|
||||
//ip
|
||||
|
||||
0 SCTP.send <asp up ack>
|
||||
01 00 03 04 00 00 00 08
|
||||
|
||||
0 SCTP.send <Notify>
|
||||
01 00 00 01 00 00 00 10 00 0D 00 08 00 01 00 02
|
||||
|
||||
1000 SCTP.FLTR <asp up>
|
||||
01 00 03 01 00 00 00 10 00 11 00 08 ?? ?? ?? ??
|
||||
//ip 3
|
||||
|
||||
1000 SCTP.RECV <asp active>
|
||||
01 00 04 01 00 00 00 18 00 0B 00 08 00 00 00 01 00 01 00 08 00 00 00 00
|
||||
|
||||
0 SCTP.send <asp active ack>
|
||||
01 00 04 03 00 00 00 10 00 0B 00 08 00 00 00 01
|
||||
|
||||
0 SCTP.send <Notify>
|
||||
01 00 00 01 00 00 00 10 00 0D 00 08 00 01 00 03
|
||||
|
||||
1000 SCTP.RECV <Establish req>
|
||||
01 00 06 02 00 00 00 10 00 01 00 08 00 00 00 00
|
||||
|
||||
|
||||
0 SCTP.send <Establish cnf>
|
||||
01 00 06 03 00 00 00 10 00 01 00 08 00 00 00 00
|
||||
|
||||
1000 SCTP.RECV <Data>
|
||||
??
|
||||
0 SCTP.SEND <Data Indication>
|
||||
01 00 06 01 00 00 00 18 00 01 00 08 00 00 00 00 03 00 00 07 FF 01 F0 00
|
||||
|
||||
1000 SCTP.RECV <Data>
|
||||
??
|
||||
0 SCTP.SEND <Data Indication>
|
||||
01 00 06 01 00 00 00 18 00 01 00 08 00 00 00 00 03 00 00 07 FF 01 F1 00
|
||||
|
||||
// 1 SCTP.SEND <Release Indication>
|
||||
// 01 00 06 01 00 00 00 18 00 01 00 08 00 00 00 00 03 00 00 07 FF 01 F0 00
|
||||
|
||||
|
||||
1000 SCTP.RECV <Release req>
|
||||
01 00 06 04 00 00 00 10 00 01 00 08 00 00 00 00
|
||||
//stop
|
||||
0 SCTP.send <Release cnf>
|
||||
01 00 06 05 00 00 00 10 00 01 00 08 00 00 00 00
|
||||
|
||||
1000 SCTP.RECV <Release req>
|
||||
?
|
||||
80
plat/m2ua/ut/testcate/SG(IUA)_Client.txt
Normal file
80
plat/m2ua/ut/testcate/SG(IUA)_Client.txt
Normal file
@@ -0,0 +1,80 @@
|
||||
#include "headfile.txt"
|
||||
|
||||
test 1 udp<UDP>
|
||||
UDP.Set remote_port=MSG_PORT
|
||||
UDP.Set local_port=MSG_PORT
|
||||
UDP.Set remote_ip=MSC_IP
|
||||
|
||||
0 send <IUA_QPTM_MSG Disable>
|
||||
A5 01 03 00 06 00
|
||||
10 send <IUA_QPTM_MSG Enable>
|
||||
A5 01 03 00 07 00
|
||||
|
||||
test 2<sctp>
|
||||
SCTP.SET REMOTE_IP=MSC_IP
|
||||
SCTP.SET REMOTE_PORT=IUA_PORT
|
||||
SCTP.SET LOCAL_PORT=IUA_CPORT
|
||||
SCTP.SET STREAM_ID=0
|
||||
5 SCTP.SET CLIENT
|
||||
50 SCTP.SEND <asp up>
|
||||
01 00 03 01 00 00 00 10 00 11 00 08 AC 36 F0 A0 //ip
|
||||
1000 SCTP.RECV <asp up ack>
|
||||
01 00 03 04 00 00 00 08
|
||||
1000 SCTP.RECV <Notify>
|
||||
01 00 00 01 00 00 00 10 00 0D 00 08 00 01 00 02
|
||||
0 SCTP.SEND <asp active>
|
||||
01 00 04 01 00 00 00 10 00 0B 00 08 00 00 00 01
|
||||
1000 SCTP.RECV <asp active ack>
|
||||
01 00 04 03 00 00 00 10 00 0B 00 08 00 00 00 01
|
||||
1000 SCTP.RECV <Notify>
|
||||
01 00 00 01 00 00 00 10 00 0D 00 08 00 01 00 03
|
||||
0 SCTP.SEND <Establish>
|
||||
01 00 05 05 00 00 00 18 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00
|
||||
1000 SCTP.RECV <Establish cnf>
|
||||
01 00 05 06 00 00 00 18 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00
|
||||
1 SCTP.SEND <version error>
|
||||
02 00 05 08 00 00 00 20 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00 00 0F 00 08 00 00 00 00
|
||||
1000 SCTP.RECV <error cnf>
|
||||
01 00 00 00 00 00 00 10 00 0C 00 08 00 00 00 01
|
||||
1 SCTP.SEND <class error>
|
||||
01 00 99 08 00 00 00 20 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00 00 0F 00 08 00 00 00 00
|
||||
1000 SCTP.RECV <error cnf>
|
||||
01 00 00 00 00 00 00 10 00 0C 00 08 00 00 00 03
|
||||
1 SCTP.SEND <type error>
|
||||
01 00 05 99 00 00 00 20 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00 00 0F 00 08 00 00 00 00
|
||||
1000 SCTP.RECV <error cnf>
|
||||
01 00 00 00 00 00 00 10 00 0C 00 08 00 00 00 04
|
||||
|
||||
|
||||
0 SCTP.SEND <Data>
|
||||
01 00 05 01 00 00 00 20 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00 00 0E 00 07 FF 01 F1 00
|
||||
1000 SCTP.RECV <Data Indication>
|
||||
??
|
||||
|
||||
0 SCTP.SEND <Data>
|
||||
01 00 05 01 00 00 00 20 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00 00 0E 00 07 FF 01 F0 00
|
||||
1000 SCTP.RECV <Data Indication>
|
||||
??
|
||||
|
||||
1 SCTP.SEND <rel>
|
||||
01 00 05 08 00 00 00 20 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00 00 0F 00 08 00 00 00 00
|
||||
1000 SCTP.RECV <rel cnf>
|
||||
01 00 05 09 00 00 00 18 00 01 00 08 00 00 00 00 00 05 00 08 00 00 00 00
|
||||
|
||||
|
||||
1 SCTP.SEND <Inactive>
|
||||
01 00 04 02 00 00 00 10
|
||||
1000 SCTP.RECV <Inactive ack>
|
||||
01 00 04 04 00 00 00 08
|
||||
1000 SCTP.RECV <Notify>
|
||||
01 00 00 01 00 00 00 10 00 0D 00 08 00 01 00 04
|
||||
|
||||
1 SCTP.SEND <Down>
|
||||
01 00 03 02 00 00 00 10
|
||||
1000 SCTP.RECV <Down ack>
|
||||
01 00 03 05 00 00 00 08
|
||||
|
||||
|
||||
test 3<sctp>
|
||||
100 SCTP.SET ABORT
|
||||
|
||||
16
plat/m2ua/ut/testcate/SG(IUA)_Server.txt
Normal file
16
plat/m2ua/ut/testcate/SG(IUA)_Server.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "headfile.txt"
|
||||
|
||||
test 1 udp<UDP>
|
||||
UDP.Set remote_port=MSG_PORT
|
||||
UDP.Set local_port=MSG_PORT
|
||||
UDP.Set remote_ip=MSC_IP
|
||||
|
||||
1000 recv <data>
|
||||
??
|
||||
10 send <data>
|
||||
05 01 03 FF 01 F0
|
||||
|
||||
1000 recv <data>
|
||||
??
|
||||
10 send <data>
|
||||
05 01 03 FF 01 F1
|
||||
79
plat/m2ua/ut/testcate/SG(M2UA)_Client.txt
Normal file
79
plat/m2ua/ut/testcate/SG(M2UA)_Client.txt
Normal file
@@ -0,0 +1,79 @@
|
||||
#include "headfile.txt"
|
||||
|
||||
test 1 udp<UDP>
|
||||
UDP.Set remote_port=MSG_PORT
|
||||
UDP.Set local_port=MSG_PORT
|
||||
UDP.Set remote_ip=MSC_IP
|
||||
|
||||
0 send <IUA_QPTM_MSG Disable>
|
||||
A6 03 03 00 06 00
|
||||
10 send <IUA_QPTM_MSG Enable>
|
||||
A6 03 03 00 07 00
|
||||
|
||||
test 2<sctp>
|
||||
SCTP.SET REMOTE_IP=MSC_IP
|
||||
SCTP.SET REMOTE_PORT=M2UA_PORT
|
||||
SCTP.SET LOCAL_PORT=M2UA_CPORT
|
||||
SCTP.SET STREAM_ID=0
|
||||
5 SCTP.SET CLIENT
|
||||
100 SCTP.SEND <asp up>
|
||||
01 00 03 01 00 00 00 10 00 11 00 08 ?? ?? ?? ?? //ip
|
||||
1000 SCTP.RECV <asp up ack>
|
||||
01 00 03 04 00 00 00 08
|
||||
1000 SCTP.RECV <Notify>
|
||||
01 00 00 01 00 00 00 10 00 0D 00 08 00 01 00 02
|
||||
0 SCTP.SEND <asp active>
|
||||
01 00 04 01 00 00 00 10 00 0B 00 08 00 00 00 01
|
||||
1000 SCTP.RECV <asp active ack>
|
||||
01 00 04 03 00 00 00 10 00 0B 00 08 00 00 00 01
|
||||
1000 SCTP.RECV <Notify>
|
||||
01 00 00 01 00 00 00 10 00 0D 00 08 00 01 00 03
|
||||
0 SCTP.SEND <Establish>
|
||||
01 00 06 02 00 00 00 10 00 01 00 08 00 00 00 00
|
||||
1000 SCTP.RECV <Establish cnf>
|
||||
01 00 06 03 00 00 00 10 00 01 00 08 00 00 00 00
|
||||
1 SCTP.SEND <version error>
|
||||
02 00 06 01 00 00 00 18 00 01 00 08 00 00 00 00 03 00 00 07 FF 01 F0 00
|
||||
1000 SCTP.RECV <error cnf>
|
||||
01 00 00 00 00 00 00 10 00 0C 00 08 00 00 00 01
|
||||
1 SCTP.SEND <class error>
|
||||
01 00 99 01 00 00 00 18 00 01 00 08 00 00 00 00 03 00 00 07 FF 01 F0 00
|
||||
1000 SCTP.RECV <error cnf>
|
||||
01 00 00 00 00 00 00 10 00 0C 00 08 00 00 00 03
|
||||
1 SCTP.SEND <type error>
|
||||
01 00 06 99 00 00 00 18 00 01 00 08 00 00 00 00 03 00 00 07 FF 01 F0 00
|
||||
1000 SCTP.RECV <error cnf>
|
||||
01 00 00 00 00 00 00 10 00 0C 00 08 00 00 00 04
|
||||
|
||||
|
||||
0 SCTP.SEND <Data>
|
||||
01 00 06 01 00 00 00 18 00 01 00 08 00 00 00 00 03 00 00 07 FF 01 F0 00
|
||||
1000 SCTP.RECV <Data Indication>
|
||||
??
|
||||
0 SCTP.SEND <Data>
|
||||
01 00 06 01 00 00 00 18 00 01 00 08 00 00 00 00 03 00 00 07 FF 01 F1 00
|
||||
1000 SCTP.RECV <Data Indication>
|
||||
??
|
||||
|
||||
1 SCTP.SEND <rel>
|
||||
01 00 06 04 00 00 00 10 00 01 00 08 00 00 00 00
|
||||
1000 SCTP.RECV <rel cnf>
|
||||
??
|
||||
|
||||
|
||||
1 SCTP.SEND <Inactive>
|
||||
01 00 04 02 00 00 00 10
|
||||
1000 SCTP.RECV <Inactive ack>
|
||||
01 00 04 04 00 00 00 08
|
||||
1000 SCTP.RECV <Notify>
|
||||
01 00 00 01 00 00 00 10 00 0D 00 08 00 01 00 04
|
||||
|
||||
1 SCTP.SEND <Down>
|
||||
01 00 03 02 00 00 00 10
|
||||
1000 SCTP.RECV <Down ack>
|
||||
01 00 03 05 00 00 00 08
|
||||
|
||||
|
||||
test 3<sctp>
|
||||
100 SCTP.SET ABORT
|
||||
|
||||
15
plat/m2ua/ut/testcate/SG(M2UA)_Server.txt
Normal file
15
plat/m2ua/ut/testcate/SG(M2UA)_Server.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
#include "headfile.txt"
|
||||
|
||||
test 1 udp<UDP>
|
||||
UDP.Set remote_port=MSG_PORT
|
||||
UDP.Set local_port=MSG_PORT
|
||||
UDP.Set remote_ip=MSC_IP
|
||||
1000 recv <data>
|
||||
??
|
||||
10 send <data>
|
||||
06 03 03 FF 01 F0
|
||||
|
||||
1000 recv <data>
|
||||
??
|
||||
10 send <data>
|
||||
06 03 03 FF 01 F1
|
||||
6
plat/m2ua/ut/testcate/headfile.txt
Normal file
6
plat/m2ua/ut/testcate/headfile.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
#define MSC_IP 172.54.245.133
|
||||
#define MSG_PORT 4955
|
||||
#define IUA_PORT 9900
|
||||
#define IUA_CPORT 19900
|
||||
#define M2UA_PORT 2904
|
||||
#define M2UA_CPORT 12904
|
||||
21
plat/m2ua/ut/xua_test/Makefile
Normal file
21
plat/m2ua/ut/xua_test/Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
#==================================================
|
||||
#Makefile for xUA Test.
|
||||
#Created by YiZane in 2006/5/17
|
||||
#==================================================
|
||||
|
||||
CC=gcc -c -Wall -g
|
||||
#CC=gcc -c -Wall -g -D_testISDN
|
||||
LINK=gcc -Wall -g
|
||||
LINK_FLAGS=-L../../m2ua -lm2ua -L../../snmp -lsnmp -L../../debug -ldebug -L../../sccp -lsccp -L../../iptrans -liptrans -L../../public -lpublic -lLiS -lm
|
||||
OBJ=xuatest.o
|
||||
|
||||
xuatest:xuatest.o $(OBJ)
|
||||
@echo Linking $@
|
||||
$(LINK) -o $@ $(OBJ) $(LINK_FLAGS)
|
||||
#./xuatest
|
||||
|
||||
xuatest.o:xuatest.c
|
||||
$(CC) xuatest.c
|
||||
clean:
|
||||
rm -rf *.o *.a xuatest
|
||||
|
||||
BIN
plat/m2ua/ut/xua_test/conf/AucSysPara
Normal file
BIN
plat/m2ua/ut/xua_test/conf/AucSysPara
Normal file
Binary file not shown.
BIN
plat/m2ua/ut/xua_test/conf/EirSysPara
Normal file
BIN
plat/m2ua/ut/xua_test/conf/EirSysPara
Normal file
Binary file not shown.
BIN
plat/m2ua/ut/xua_test/conf/HlrSysPara
Normal file
BIN
plat/m2ua/ut/xua_test/conf/HlrSysPara
Normal file
Binary file not shown.
7
plat/m2ua/ut/xua_test/conf/cap_acn.conf
Normal file
7
plat/m2ua/ut/xua_test/conf/cap_acn.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
#application context name configure file for CAP
|
||||
total data length=3
|
||||
|
||||
#application context name data
|
||||
No.1:50 02 // gsmSSF to gsmSCF
|
||||
No.2:51 02 // assist handoff gsmSSF to gsmSCF
|
||||
No.3:52 02 // gsmSRF to gsmSCF
|
||||
34
plat/m2ua/ut/xua_test/conf/cap_operation.conf
Normal file
34
plat/m2ua/ut/xua_test/conf/cap_operation.conf
Normal file
@@ -0,0 +1,34 @@
|
||||
# operation code configure file for CAP
|
||||
total data length=30
|
||||
|
||||
#operation code
|
||||
No.1:00 04 5 // initial DP
|
||||
No.2:16 02 5 // assist request instructions
|
||||
No.3:17 02 20 // establish temporary connection
|
||||
No.4:18 04 5 // disconnect forward connection
|
||||
No.5:19 04 5 // connect to resource
|
||||
No.6:20 04 5 // connect
|
||||
No.7:22 04 5 // release call
|
||||
No.8:23 04 5 // request report BCSM event
|
||||
No.9:24 04 5 // event report BCSM
|
||||
No.10:31 04 5 // continue
|
||||
No.11:33 04 5 // reset timer
|
||||
No.12:34 04 5 // furnish charging information
|
||||
No.13:35 04 5 // apply charging
|
||||
No.14:36 04 5 // apply charging report
|
||||
No.15:44 04 5 // call information report
|
||||
No.16:45 04 5 // call information request
|
||||
No.17:46 04 5 // send charging information
|
||||
No.18:47 04 60 // play announcement
|
||||
No.19:48 01 60 // prompt and collect user information
|
||||
No.20:49 04 5 // specialized resource report
|
||||
No.21:53 04 5 // cancel
|
||||
No.22:55 04 5 // activity test
|
||||
No.23:60 04 5 // initial DPSMS
|
||||
No.24:61 04 5 // Furnishing charging info.SMS
|
||||
No.25:62 04 5 // connect DPSMS
|
||||
No.26:63 04 5 // request SMS event
|
||||
No.27:64 04 5 // event report SMS
|
||||
No.28:65 04 5 // continue SMS
|
||||
No.29:66 04 5 // release DPSMS
|
||||
No.30:67 04 5 // reset timer DPSMS
|
||||
215
plat/m2ua/ut/xua_test/conf/cc_table.conf
Normal file
215
plat/m2ua/ut/xua_test/conf/cc_table.conf
Normal file
@@ -0,0 +1,215 @@
|
||||
# Country code table configure file
|
||||
|
||||
#List the country code
|
||||
0086; // China
|
||||
0001; // Canada & USA
|
||||
0007; // Kazakhstan & Kirighzia & Kyrgyzstan & Russia & Sakhalin & Tajikistan & Uzbekistan
|
||||
0020; // Egypt
|
||||
0027; // South Africa
|
||||
0030; // Greece
|
||||
0031; // Netherlands
|
||||
0036; // Hungary
|
||||
0039; // Italy
|
||||
0040; // Bomania
|
||||
0041; // Switzerland
|
||||
0042; // Czech Republic & Slovakia
|
||||
0043; // Austria
|
||||
0044; // United Kingdom
|
||||
0045; // Denmark
|
||||
0046; // Sweden
|
||||
0047; // Norway
|
||||
0048; // Poland
|
||||
0049; // Germany
|
||||
0051; // Peru
|
||||
0052; // South Korea
|
||||
0053; // Cuba
|
||||
0054; // Argentina
|
||||
0055; // Brazil
|
||||
0056; // Chile
|
||||
0057; // Colombia
|
||||
0058; // Venezuela
|
||||
0060; // Malaysia
|
||||
0061; // Australia
|
||||
0062; // Indonesia
|
||||
0063; // Philippines
|
||||
0064; // New Zealand
|
||||
0065; // Singapore
|
||||
0066; // Thailand
|
||||
0081; // Japan
|
||||
0084; // Vietnam
|
||||
0090; // Turkey
|
||||
0091; // India
|
||||
0092; // Pakistan
|
||||
0093; // Afghanistan
|
||||
0094; // Sri Lanka
|
||||
0095; // Myanmar (Burma)
|
||||
0098; // Iran
|
||||
0212; // Morocco
|
||||
0213; // Algeria
|
||||
0216; // Tunisia
|
||||
0218; // Libya
|
||||
0220; // Gambia
|
||||
0221; // Senegal Republic
|
||||
0222; // Mauritania
|
||||
0223; // Mali Republic
|
||||
0224; // Guinea
|
||||
0225; // Ivory Coast
|
||||
0226; // Burkina Faso
|
||||
0227; // Niger
|
||||
0228; // Togo
|
||||
0229; // Benin
|
||||
0230; // Mauritius
|
||||
0231; // Liberia
|
||||
0232; // Sierra Leone
|
||||
0233; // Ghana
|
||||
0234; // Nigeria
|
||||
0235; // Chad Republic
|
||||
0236; // Central Africa Republic
|
||||
0237; // Cameroon
|
||||
0239; // Sao Tome
|
||||
0240; // Equatorial Guinea
|
||||
0241; // Gabon
|
||||
0242; // Congo
|
||||
0243; // Zaire
|
||||
0244; // Angola
|
||||
0245; // Guinea Bissau
|
||||
0246; // Diego Garcia
|
||||
0247; // Ascension Islands
|
||||
0248; // Seychelles
|
||||
0249; // Sudan
|
||||
0250; // Rwanda
|
||||
0251; // Ethiopia
|
||||
0252; // Somalia
|
||||
0253; // Djibouti
|
||||
0254; // Kenya
|
||||
0255; // Tanzania
|
||||
0256; // Uganda
|
||||
0257; // Burundi
|
||||
0258; // Mozambigue
|
||||
0259; // Zanzibar
|
||||
0260; // Zambia
|
||||
0261; // Madagascar
|
||||
0262; // Reunion Island
|
||||
0263; // Zimbabwe
|
||||
0264; // Namibia
|
||||
0265; // Malawi
|
||||
0266; // Lesotho
|
||||
0267; // Botswana
|
||||
0268; // Swaziland
|
||||
0269; // Comoros
|
||||
0290; // St.Helena
|
||||
0291; // Eritrea
|
||||
0297; // Aruba
|
||||
0298; // Faeroe Islands
|
||||
0299; // Greenland
|
||||
#2696 // Mayotte Island
|
||||
0321; // Belgium
|
||||
0331; // France
|
||||
0339; // Monaco
|
||||
0349; // Spain
|
||||
0350; // Gibraltar
|
||||
0351; // Portugal
|
||||
0352; // Luxembourg
|
||||
0353; // Ireland
|
||||
0354; // Iceland
|
||||
0355; // Albania
|
||||
0356; // Malta
|
||||
0357; // Cyprus
|
||||
0358; // Finland
|
||||
0359; // Bulgaria
|
||||
0370; // Lithuania
|
||||
0371; // Latvia
|
||||
0372; // Estonia
|
||||
0373; // Moldova
|
||||
0374; // Armenia
|
||||
0375; // Belarus
|
||||
0376; // Andorra
|
||||
0380; // Ukraine
|
||||
0381; // Yugoslavia
|
||||
0385; // Croatia
|
||||
0386; // Slovenia
|
||||
0387; // Bosnia Herzegovina
|
||||
0389; // Macedonia
|
||||
0395; // San Marino
|
||||
0396; // Vatican City
|
||||
0417; // Liechtenstein
|
||||
0500; // Falkland Islands
|
||||
0501; // Belize
|
||||
0502; // Guatemala
|
||||
0503; // EI Salvador
|
||||
0504; // Honduras
|
||||
0505; // Nicaragua
|
||||
0506; // Costa Rica
|
||||
0507; // Panama
|
||||
0508; // St.Pierre
|
||||
0509; // Haiti
|
||||
0521; // Mexico Band 1
|
||||
0522; // Mexico Band 2
|
||||
0523; // Mexico Band 3
|
||||
0524; // Mexico Band 4
|
||||
0525; // Mexico Band 5
|
||||
0526; // Mexico Band 6
|
||||
0527; // Mexico Band 7
|
||||
0528; // Mexico Band 8
|
||||
0590; // Guadeloupe
|
||||
0591; // Bolivia
|
||||
0592; // Ecuador & Guyana
|
||||
0594; // French Guiana
|
||||
0595; // Paraguay
|
||||
0596; // French Antilles
|
||||
0597; // Suriname
|
||||
0598; // Uruguay
|
||||
0599; // Netherlands Antilles
|
||||
#5399 // Guantanamo Bay
|
||||
0670; // Saipan
|
||||
0671; // Guam
|
||||
0672; // Antarctica(Casey) & Antarctica(Scott) & Christmas/Cocos
|
||||
0673; // Brunei
|
||||
0674; // Nauru
|
||||
0675; // Papau New Guinea
|
||||
0676; // Tonga
|
||||
0677; // Solomon Islands
|
||||
0678; // Vanuatu
|
||||
0679; // Fiji Islands
|
||||
0680; // Palau
|
||||
0681; // Wallis/Futuna
|
||||
0682; // Cook Island
|
||||
0683; // Niue Island
|
||||
0684; // American Samoa
|
||||
0685; // West Samoa
|
||||
0686; // Kiribati
|
||||
0687; // New Caledonia
|
||||
0688; // Tuvalu Islands
|
||||
0689; // French Polynesia
|
||||
0691; // Micronesia
|
||||
0692; // Marshall Islands
|
||||
#6723 // Norfolk Island
|
||||
0787; // Puerto Rico
|
||||
0809; // Anguilla & Antigua & Bahamas & Barbados & Bermuda......
|
||||
0850; // North Korea
|
||||
0852; // Hong Kong
|
||||
0853; // Macao
|
||||
0855; // Cambodia
|
||||
0856; // Laos
|
||||
0868; // Trinidad/Tobago
|
||||
0880; // Bangladesh
|
||||
0886; // Taiwan
|
||||
0960; // Maldives
|
||||
0961; // Lebanon
|
||||
0962; // Jordan
|
||||
0963; // Syria
|
||||
0964; // Iraq
|
||||
0965; // Kuwait
|
||||
0966; // Saudi Arabia
|
||||
0967; // Yemen Arab Rep.
|
||||
0968; // Oman
|
||||
0971; // United Arab Emirates
|
||||
0972; // Israel
|
||||
0973; // Bahrain
|
||||
0974; // Qatar
|
||||
0975; // Bhutan
|
||||
0976; // Mongolia
|
||||
0977; // Nepal
|
||||
0994; // Azerbaijan
|
||||
0995; // Georgia
|
||||
|
||||
BIN
plat/m2ua/ut/xua_test/conf/conv_prefix.conf
Normal file
BIN
plat/m2ua/ut/xua_test/conf/conv_prefix.conf
Normal file
Binary file not shown.
20
plat/m2ua/ut/xua_test/conf/help_page
Normal file
20
plat/m2ua/ut/xua_test/conf/help_page
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
******************
|
||||
* HELP PAGE *
|
||||
******************
|
||||
|
||||
Welcome to DEBUG MONITOR.
|
||||
|
||||
Press 's' or 'S' to enter "SUB MODULE SELECTION PAGE".
|
||||
|
||||
In "SUB MODULE SELECTION PAGE",
|
||||
Press 'x' or 'X' to return "HELP PAGE",
|
||||
Press 'a-p' or 'A-P' to select sub module.
|
||||
|
||||
In each sub module, Press '0-9' and 'a-f' to select pages.
|
||||
|
||||
There are two methods to use Debug,
|
||||
1. Serial Port, use PC-to-PC serial line.
|
||||
2. Telnet, use "telnet dst_host_ip 4965".
|
||||
|
||||
$
|
||||
BIN
plat/m2ua/ut/xua_test/conf/hlr_parambit.conf
Normal file
BIN
plat/m2ua/ut/xua_test/conf/hlr_parambit.conf
Normal file
Binary file not shown.
16
plat/m2ua/ut/xua_test/conf/iptrans.conf
Normal file
16
plat/m2ua/ut/xua_test/conf/iptrans.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
#ipconfig for pps
|
||||
#port=type,num,interface
|
||||
#type=UDP/TCP
|
||||
#num=0-6
|
||||
#interface=BUFFER/DIRECT
|
||||
4950=UDP,6,DIRECT
|
||||
4953=UDP,3,BUFFER
|
||||
4954=UDP,3,BUFFER
|
||||
4955=UDP,3,BUFFER
|
||||
4957=UDP,4,BUFFER
|
||||
4965=TCP,3,BUFFER
|
||||
4960=UDP,2,BUFFER
|
||||
4970=UDP,2,BUFFER
|
||||
4971=UDP,2,BUFFER
|
||||
4972=UDP,2,BUFFER
|
||||
4973=UDP,2,BUFFER
|
||||
40
plat/m2ua/ut/xua_test/conf/map_acn.conf
Normal file
40
plat/m2ua/ut/xua_test/conf/map_acn.conf
Normal file
@@ -0,0 +1,40 @@
|
||||
#application context name configure file
|
||||
total data length=36
|
||||
|
||||
#application context name data
|
||||
No.1:01 03 // network location update
|
||||
No.2:02 03 // location cancel
|
||||
No.3:03 03 // roaming number enquiry
|
||||
No.4:05 03 // location info retrieval
|
||||
No.5:10 02 // reset context
|
||||
No.6:11 02 // handover control
|
||||
No.7:13 02 // equipment management
|
||||
No.8:14 02 // info retrieval
|
||||
No.9:15 02 // inter VLR info retrieval
|
||||
No.10:16 03 // subscriber data management
|
||||
No.11:17 03 // tracing
|
||||
No.12:18 02 // network functional SS
|
||||
No.13:19 02 // network unstructured SS
|
||||
No.14:20 03 // short message gateway
|
||||
No.15:21 03 // short message MO relay
|
||||
No.16:23 02 // short message alert
|
||||
No.17:24 03 // short message waiting data management
|
||||
No.18:25 03 // mobile terminating short message relay
|
||||
No.19:26 02 // imsi retrieval
|
||||
No.20:27 03 // MS purging
|
||||
No.21:28 03 // subscriber info enquiry
|
||||
No.22:29 03 // any time info enquiry
|
||||
No.23:06 03 // call control transfer
|
||||
No.24:36 03 // invocation notification
|
||||
No.25:12 03 // sIWFS allocation
|
||||
No.26:31 03 // group call control
|
||||
No.27:32 03 // GPRS location update
|
||||
No.28:33 03 // GPRS location info retrieval
|
||||
No.29:34 03 // failure report
|
||||
No.30:35 03 // GPRS notify
|
||||
No.31:07 03 // reporting
|
||||
No.32:08 03 // call completion
|
||||
No.33:200 02 // security triplets (MAP-H defined by Meng Xiaozhen)
|
||||
No.34:201 02 // subscriber interrogate (MAP-H defined by Meng Xiaozhen)
|
||||
No.35:202 02 // HLR subscriber management (MAP-H defined by Meng Xiaozhen)
|
||||
No.36:203 02 // HLR ping AUC (MAP-H defined by Meng Xiaozhen reserved)
|
||||
67
plat/m2ua/ut/xua_test/conf/map_operation.conf
Normal file
67
plat/m2ua/ut/xua_test/conf/map_operation.conf
Normal file
@@ -0,0 +1,67 @@
|
||||
# operation code configure file
|
||||
total data length=63
|
||||
|
||||
#operation code
|
||||
No.1:02 01 20 // update location
|
||||
No.2:03 01 10 // cancel location
|
||||
No.3:67 01 20 // purge mobile station
|
||||
No.4:55 01 05 // send identification
|
||||
No.5:68 01 20 // prepare handover
|
||||
No.6:29 03 108000 // send end signal
|
||||
No.7:33 04 05 // process access signalling
|
||||
No.8:34 04 05 // forward access signalling
|
||||
No.9:69 01 20 // prepare subsequent handover
|
||||
No.10:56 01 20 // send authentication info
|
||||
No.11:43 01 20 // check IMEI
|
||||
No.12:07 01 20 // insert subscriber data
|
||||
No.13:08 01 20 // delete subscriber data
|
||||
No.14:37 04 20 // reset
|
||||
No.15:38 04 20 // forward check ss indication
|
||||
No.16:57 01 20 // restore data
|
||||
No.17:50 01 20 // active trace mode
|
||||
No.18:51 01 20 // deactive trace mode
|
||||
No.19:58 01 20 // send imsi
|
||||
No.20:22 01 20 // send routing info
|
||||
No.21:04 01 20 // provide roaming number
|
||||
No.22:06 01 20 // resume call handling
|
||||
No.23:31 01 20 // provide SIWFS number
|
||||
No.24:32 01 20 // SIWFS signalling modify
|
||||
No.25:73 01 20 // set report state
|
||||
No.26:74 01 20 // status report
|
||||
No.27:75 01 60 // remote user free
|
||||
No.28:10 01 20 // register ss
|
||||
No.29:11 01 20 // erase ss
|
||||
No.30:12 01 20 // activate ss
|
||||
No.31:13 01 20 // deactivate ss
|
||||
No.32:14 01 20 // interrogate ss
|
||||
No.33:59 01 600 // process unstructure ss request
|
||||
No.34:60 01 60 // unstructure ss request
|
||||
No.35:61 01 60 // unstructure ss notify
|
||||
No.36:17 01 60 // register password
|
||||
No.37:18 03 20 // get password
|
||||
No.38:76 01 20 // register cc entry
|
||||
No.39:77 01 20 // erase cc entry
|
||||
No.40:45 01 20 // send routing info for sm
|
||||
No.41:46 01 60 // mo forward sm
|
||||
No.42:44 01 60 // mt forward sm
|
||||
No.43:47 01 05 // report sm delivery status
|
||||
No.44:63 04 05 // inform service centre
|
||||
No.45:64 01 05 // alert service center
|
||||
No.46:66 01 05 // ready for sm
|
||||
No.47:70 01 20 // provider subscriber info
|
||||
No.48:71 01 20 // any time interrogation
|
||||
No.49:72 01 20 // ss invocatin notification
|
||||
No.50:39 01 20 // prepare group call
|
||||
No.51:40 03 108000 // send group call end signal
|
||||
No.52:41 04 05 // process group call signalling
|
||||
No.53:42 04 05 // forward group call signalling
|
||||
No.54:23 01 20 // update GPRS location
|
||||
No.55:24 01 20 // send routing info for GPRS
|
||||
No.56:25 01 20 // failure report
|
||||
No.57:26 01 20 // note ms present for GPRS
|
||||
No.58:200 01 05 // security triplets (MAP-H defined by Meng Xiaozhen)
|
||||
No.59:201 01 05 // interrogate subscriber (MAP-H defined by Meng Xiaozhen)
|
||||
No.60:202 01 05 // hlr create subscriber (MAP-H defined by Meng Xiaozhen)
|
||||
No.61:203 01 05 // hlr delete subscriber (MAP-H defined by Meng Xiaozhen)
|
||||
No.62:204 01 05 // hlr ping auc (MAP-H defined by Meng Xiaozhen reserved)
|
||||
No.63:09 01 20 // send parameter
|
||||
13
plat/m2ua/ut/xua_test/conf/menu_page
Normal file
13
plat/m2ua/ut/xua_test/conf/menu_page
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
*******************
|
||||
* MENU PAGE *
|
||||
*******************
|
||||
|
||||
a -- IPTR i -- HLR
|
||||
b -- MTP3 j -- SMSC
|
||||
c -- SCCP k -- PPS
|
||||
d -- TCAP l -- SNMP
|
||||
e -- XAPP m --
|
||||
f -- MSC n -- DEBUG
|
||||
g -- VLR o -- AUC
|
||||
h -- p -- EIR
|
||||
BIN
plat/m2ua/ut/xua_test/conf/mnpf.conf
Normal file
BIN
plat/m2ua/ut/xua_test/conf/mnpf.conf
Normal file
Binary file not shown.
BIN
plat/m2ua/ut/xua_test/conf/msc_conf
Normal file
BIN
plat/m2ua/ut/xua_test/conf/msc_conf
Normal file
Binary file not shown.
1408
plat/m2ua/ut/xua_test/conf/mtp3.conf
Normal file
1408
plat/m2ua/ut/xua_test/conf/mtp3.conf
Normal file
File diff suppressed because it is too large
Load Diff
BIN
plat/m2ua/ut/xua_test/conf/ppsConf.txt
Normal file
BIN
plat/m2ua/ut/xua_test/conf/ppsConf.txt
Normal file
Binary file not shown.
BIN
plat/m2ua/ut/xua_test/conf/ppsCrdConf.txt
Normal file
BIN
plat/m2ua/ut/xua_test/conf/ppsCrdConf.txt
Normal file
Binary file not shown.
37
plat/m2ua/ut/xua_test/conf/profile
Normal file
37
plat/m2ua/ut/xua_test/conf/profile
Normal file
@@ -0,0 +1,37 @@
|
||||
# /etc/profile
|
||||
|
||||
# System wide environment and startup programs
|
||||
# Functions and aliases go in /etc/bashrc
|
||||
|
||||
PATH=".:$PATH:/sbin:/usr/sbin:/usr/X11R6/bin:/etc/rc.d/init.d:/usr/local/wxc2/bin"
|
||||
PATH=/usr/java/jdk1.3/bin:$PATH
|
||||
|
||||
ulimit -c 80000
|
||||
if [ `id -gn` = `id -un` -a `id -u` -gt 14 ]; then
|
||||
umask 002
|
||||
else
|
||||
umask 022
|
||||
fi
|
||||
|
||||
USER=`id -un`
|
||||
LOGNAME=$USER
|
||||
MAIL="/var/spool/mail/$USER"
|
||||
|
||||
HOSTNAME=`/bin/hostname`
|
||||
HISTSIZE=1000
|
||||
|
||||
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
|
||||
INPUTRC=/etc/inputrc
|
||||
fi
|
||||
JAVA_COMPILER=javacomp ; export JAVA_COMPILER
|
||||
LD_LIBRARY_PATH=/usr/local/mysql/lib ; export LD_LIBRARY_PATH
|
||||
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
|
||||
|
||||
for i in /etc/profile.d/*.sh ; do
|
||||
if [ -x $i ]; then
|
||||
. $i
|
||||
fi
|
||||
done
|
||||
|
||||
unset i
|
||||
PATH=/usr/local/wxc2/bin:$PATH
|
||||
85
plat/m2ua/ut/xua_test/conf/sccp.conf
Normal file
85
plat/m2ua/ut/xua_test/conf/sccp.conf
Normal file
@@ -0,0 +1,85 @@
|
||||
#SCCP Config file (R8V2_02)
|
||||
|
||||
[Local Node]
|
||||
#ssn NetID msisdn ip0 ip1
|
||||
4 0 - 172.18.128.136 -
|
||||
6 0 8675557122002 172.18.133.1 172.18.99.1
|
||||
7 0 8675557123005 172.18.133.133 172.18.99.1
|
||||
8 2 594694000001 172.18.98.1 172.18.99.1
|
||||
9 2 594694000007 172.18.98.1 172.18.99.1
|
||||
11 2 594694000000 172.18.98.1 172.18.99.1
|
||||
19 2 594694000009 172.18.98.1 172.18.99.1
|
||||
20 2 594694000010 172.18.98.1 172.18.99.1
|
||||
21 2 594694000011 172.18.128.1 172.18.129.1
|
||||
22 2 594694980012 172.18.100.1 172.18.101.1
|
||||
146 2 594694000004 172.18.98.1 172.18.99.1
|
||||
147 2 594694000003 172.18.98.1 172.18.99.1
|
||||
254 2 - 172.18.98.1 172.18.99.1
|
||||
[GTT_Table]
|
||||
#No NP StartDigits EndDigits NI SPC SSN RI AI S E N Rep
|
||||
0 6 460020000000000 460029999999999 0 000001 6 1 7
|
||||
2 1 594694001000 594694009998 2 001FD3 6 1 7
|
||||
3 1 594694460000 594694469998 2 001FD3 6 1 7
|
||||
4 1 594694471000 594694479998 2 001FD3 6 1 7
|
||||
5 1 594694980012 594694980012 2 000003 8 0 7
|
||||
6 1 594694980013 594694980013 2 000004 8 0 7
|
||||
7 1 338 338 2 000B03 0 0 6
|
||||
8 1 33609 33609 2 000B03 0 0 6
|
||||
9 1 33603 33608 2 000B03 0 0 6 1 1 1 3383
|
||||
10 1 33610 33629 2 000B03 0 0 6 1 1 1 3383
|
||||
11 1 5906900 5906902 2 000B03 0 0 6 1 1 1 3385
|
||||
12 1 262692 262692 2 000B03 0 0 6 1 1 1 3382
|
||||
13 1 352 352 2 000B03 0 0 6 1 1 1 3383
|
||||
14 1 33660 33660 2 000B03 0 0 6
|
||||
15 1 33662 33662 2 000B03 0 0 6
|
||||
16 6 208100000000000 208109999999999 2 000B03 6 0 6 1 5 7 33609
|
||||
26 1 594694000002 594694000002 2 001FD3 6 1 7
|
||||
28 1 5946941 5946941 2 000B03 0 0 6 1 1 1 3385
|
||||
29 1 594694480000 594694979999 2 000B03 0 0 6 1 1 1 3385
|
||||
31 7 594694000100000 594694000199999 2 001FD3 6 1 7 1 15 1 594694000002
|
||||
34 1 5966960 5966961 2 000B03 0 0 6 1 1 1 3385
|
||||
37 1 59035 59035 2 000B03 0 0 6
|
||||
38 1 59669690 59669690 2 000B03 0 0 6
|
||||
41 1 59669620 59669649 2 000B03 0 0 6
|
||||
42 1 59069037 59069041 2 000B03 0 0 6
|
||||
43 1 59069030 59069035 2 000B03 0 0 6
|
||||
44 1 59069036 59069036 2 000B03 0 0 6 1 1 1 3385
|
||||
45 1 59069047 59069065 2 000B03 0 0 6
|
||||
46 1 59069067 59069068 2 000B03 0 0 6
|
||||
47 1 59069071 59069076 2 000B03 0 0 6
|
||||
48 1 59469420 59469426 2 000B03 0 0 6
|
||||
49 1 59469438 59469438 2 000B03 0 0 6
|
||||
50 1 59469440 59469445 2 000B03 0 0 6
|
||||
51 1 59669680 59669686 2 000B03 0 0 6
|
||||
52 1 59069066 59069066 2 000B03 0 0 6 1 1 1 3385
|
||||
54 1 59669699 59669699 2 000B03 0 0 6
|
||||
56 1 59069042 59069046 2 000B03 0 0 6 1 1 1 3385
|
||||
57 1 59069069 59069070 2 000B03 0 0 6 1 1 1 3385
|
||||
58 1 59069077 59069099 2 000B03 0 0 6 1 1 1 3385
|
||||
60 1 59669650 59669679 2 000B03 0 0 6
|
||||
61 1 59669691 59669698 2 000B03 0 0 6
|
||||
62 1 59469427 59469437 2 000B03 0 0 6 1 1 1 3385
|
||||
63 1 59469439 59469439 2 000B03 0 0 6 1 1 1 3385
|
||||
65 1 594694401000 594694409999 2 0000B3 0 0 6 1 1 1 3385
|
||||
70 6 746020000000000 746029999999999 2 000B03 0 0 6 1 5 7 59785
|
||||
71 1 597 597 2 000B03 0 0 6
|
||||
75 6 250020000000000 250029999999999 2 000B03 0 0 6 1 5 7 781296
|
||||
76 1 78 79 2 000B03 0 0 6
|
||||
78 6 2509900000000000 250999999999999 2 000B03 0 0 6 1 5 7 79037
|
||||
80 6 222100000000000 222109999999999 2 000B03 0 0 6 1 5 7 39349
|
||||
81 1 39 39 2 000B03 0 0 6
|
||||
85 6 738002000000000 738002999999999 2 000B03 0 0 6 1 6 7 592640
|
||||
86 1 592 592 2 000B03 0 0 6
|
||||
87 1 5926400001 5926400001 2 000B03 7 0 6
|
||||
90 6 338050000000000 338050999999999 2 000B03 0 0 6 1 6 7 187638
|
||||
91 1 18 18 2 000B03 0 0 6
|
||||
95 6 362510000000000 362519999999999 2 000B03 0 0 6 1 5 7 59952
|
||||
96 1 599 599 2 000B03 0 0 6
|
||||
98 6 4600000000000000 460009999999999 2 000B03 0 0 6 1 5 7 86139
|
||||
100 1 86 86 2 000B03 0 0 6
|
||||
102 6 724160000000000 7241699999999990 2 000B03 0 0 6 1 5 7 55016
|
||||
104 1 55 55 2 000B03 0 0 6
|
||||
|
||||
[RL_SSN]
|
||||
#NetID DPC SSN
|
||||
|
||||
87
plat/m2ua/ut/xua_test/conf/sccp_omt.conf
Normal file
87
plat/m2ua/ut/xua_test/conf/sccp_omt.conf
Normal file
@@ -0,0 +1,87 @@
|
||||
#SCCP Config file (R8V0_04)
|
||||
|
||||
[Local Node]
|
||||
#ssn NetID msisdn ip0 ip1
|
||||
4 2 594694000006 172.18.128.1 172.18.129.1
|
||||
6 2 594694000002 172.18.98.1 172.18.99.1
|
||||
7 2 594694000005 172.18.98.1 172.18.99.1
|
||||
8 2 594694000001 172.18.98.1 172.18.99.1
|
||||
9 2 594694000007 172.18.98.1 172.18.99.1
|
||||
10 2 594694000008 172.18.98.1 172.18.99.1
|
||||
11 2 594694000000 172.18.98.1 172.18.99.1
|
||||
19 2 594694000009 172.18.98.1 172.18.99.1
|
||||
20 2 594694000010 172.18.98.1 172.18.99.1
|
||||
21 2 594694000011 172.18.128.1 172.18.129.1
|
||||
22 2 594694980012 172.18.100.1 172.18.101.1
|
||||
146 2 594694000004 172.18.98.1 172.18.99.1
|
||||
147 2 594694000003 172.18.98.1 172.18.99.1
|
||||
254 2 - 172.18.98.1 172.18.99.1
|
||||
[GTT_Table]
|
||||
#No NP StartDigits EndDigits NI SPC SSN RI AI S E N Rep
|
||||
0 6 340020000000000 340029999999999 2 001FD3 6 1 7
|
||||
2 1 594694001000 594694009998 2 001FD3 6 1 7
|
||||
3 1 594694460000 594694469998 2 001FD3 6 1 7
|
||||
4 1 594694471000 594694479998 2 001FD3 6 1 7
|
||||
5 1 594694980012 594694980012 2 000003 8 0 7
|
||||
6 1 594694980013 594694980013 2 000004 8 0 7
|
||||
7 1 338 338 2 000B03 0 0 6
|
||||
8 1 33609 33609 2 000B03 0 0 6
|
||||
9 1 33603 33608 2 000B03 0 0 6 1 1 1 3383
|
||||
10 1 33610 33629 2 000B03 0 0 6 1 1 1 3383
|
||||
11 1 5906900 5906902 2 000B03 0 0 6 1 1 1 3385
|
||||
12 1 262692 262692 2 000B03 0 0 6 1 1 1 3382
|
||||
13 1 352 352 2 000B03 0 0 6 1 1 1 3383
|
||||
14 1 33660 33660 2 000B03 0 0 6
|
||||
15 1 33662 33662 2 000B03 0 0 6
|
||||
16 6 208100000000000 208109999999999 2 000B03 6 0 6 1 5 7 33609
|
||||
26 1 594694000002 594694000002 2 001FD3 6 1 7
|
||||
28 1 5946941 5946941 2 000B03 0 0 6 1 1 1 3385
|
||||
29 1 594694480000 594694979999 2 000B03 0 0 6 1 1 1 3385
|
||||
#30 7 5946940001000000 5946940001099999 2 001FD3 6 1 7 1 16 1 594694000002
|
||||
31 7 594694000100000 594694000199999 2 001FD3 6 1 7 1 15 1 594694000002
|
||||
34 1 5966960 5966961 2 000B03 0 0 6 1 1 1 3385
|
||||
37 1 59035 59035 2 000B03 0 0 6
|
||||
38 1 59669690 59669690 2 000B03 0 0 6
|
||||
41 1 59669620 59669649 2 000B03 0 0 6
|
||||
42 1 59069037 59069041 2 000B03 0 0 6
|
||||
43 1 59069030 59069035 2 000B03 0 0 6
|
||||
44 1 59069036 59069036 2 000B03 0 0 6 1 1 1 3385
|
||||
45 1 59069047 59069065 2 000B03 0 0 6
|
||||
46 1 59069067 59069068 2 000B03 0 0 6
|
||||
47 1 59069071 59069076 2 000B03 0 0 6
|
||||
48 1 59469420 59469426 2 000B03 0 0 6
|
||||
49 1 59469438 59469438 2 000B03 0 0 6
|
||||
50 1 59469440 59469445 2 000B03 0 0 6
|
||||
51 1 59669680 59669686 2 000B03 0 0 6
|
||||
52 1 59069066 59069066 2 000B03 0 0 6 1 1 1 3385
|
||||
54 1 59669699 59669699 2 000B03 0 0 6
|
||||
56 1 59069042 59069046 2 000B03 0 0 6 1 1 1 3385
|
||||
57 1 59069069 59069070 2 000B03 0 0 6 1 1 1 3385
|
||||
58 1 59069077 59069099 2 000B03 0 0 6 1 1 1 3385
|
||||
60 1 59669650 59669679 2 000B03 0 0 6
|
||||
61 1 59669691 59669698 2 000B03 0 0 6
|
||||
62 1 59469427 59469437 2 000B03 0 0 6 1 1 1 3385
|
||||
63 1 59469439 59469439 2 000B03 0 0 6 1 1 1 3385
|
||||
65 1 594694401000 594694409999 2 0000B3 0 0 6 1 1 1 3385
|
||||
70 6 746020000000000 746029999999999 2 000B03 0 0 6 1 5 7 59785
|
||||
71 1 597 597 2 000B03 0 0 6
|
||||
75 6 250020000000000 250029999999999 2 000B03 0 0 6 1 5 7 781296
|
||||
76 1 78 79 2 000B03 0 0 6
|
||||
78 6 2509900000000000 250999999999999 2 000B03 0 0 6 1 5 7 79037
|
||||
80 6 222100000000000 222109999999999 2 000B03 0 0 6 1 5 7 39349
|
||||
81 1 39 39 2 000B03 0 0 6
|
||||
85 6 738002000000000 738002999999999 2 000B03 0 0 6 1 6 7 592640
|
||||
86 1 592 592 2 000B03 0 0 6
|
||||
87 1 5926400001 5926400001 2 000B03 7 0 6
|
||||
90 6 338050000000000 338050999999999 2 000B03 0 0 6 1 6 7 187638
|
||||
91 1 18 18 2 000B03 0 0 6
|
||||
95 6 362510000000000 362519999999999 2 000B03 0 0 6 1 5 7 59952
|
||||
96 1 599 599 2 000B03 0 0 6
|
||||
98 6 4600000000000000 460009999999999 2 000B03 0 0 6 1 5 7 86139
|
||||
100 1 86 86 2 000B03 0 0 6
|
||||
102 6 724160000000000 7241699999999990 2 000B03 0 0 6 1 5 7 55016
|
||||
104 1 55 55 2 000B03 0 0 6
|
||||
|
||||
[RL_SSN]
|
||||
#NetID DPC SSN
|
||||
|
||||
74
plat/m2ua/ut/xua_test/conf/sccp_sts.conf
Normal file
74
plat/m2ua/ut/xua_test/conf/sccp_sts.conf
Normal file
@@ -0,0 +1,74 @@
|
||||
#SCCP Config file (R8V0_04)
|
||||
|
||||
[Local Node]
|
||||
#ssn NetID msisdn ip0 ip1
|
||||
4 3 - 172.18.128.1 172.18.129.1
|
||||
6 3 74113779892 172.18.98.1 172.18.99.1
|
||||
7 3 74113779891 172.18.98.1 172.18.99.1
|
||||
8 3 74113779890 172.18.98.1 172.18.99.1
|
||||
9 3 74113779895 172.18.98.1 172.18.99.1
|
||||
10 3 74113779894 172.18.98.1 172.18.99.1
|
||||
11 3 74113779896 172.18.98.1 172.18.99.1
|
||||
19 3 - 172.18.98.1 172.18.99.1
|
||||
20 3 - 172.18.98.1 172.18.99.1
|
||||
21 3 - 172.18.98.1 172.18.99.1
|
||||
22 0 - 172.18.98.1 172.18.99.1
|
||||
146 3 - 172.18.98.1 172.18.99.1
|
||||
147 3 74113779899 172.18.98.1 172.18.99.1
|
||||
254 3 - 172.18.98.1 172.18.99.1
|
||||
[GTT_Table]
|
||||
#No NP StartDigits EndDigits NI SPC SSN RI AI S E N Rep
|
||||
0 6 250121300000000 250121300004999 2 000001 6 1 7
|
||||
1 1 74113770000 74113779899 2 000001 6 1 7
|
||||
3 1 74113779897 74113779897 3 000101 22 0 7
|
||||
4 1 74113779898 74113779898 3 000202 22 0 7
|
||||
5 1 74113779890 74113779890 3 003707 8 0 7
|
||||
6 1 74113779891 74113779891 3 003707 7 0 7
|
||||
7 1 74113779892 74113779892 3 003707 6 0 7
|
||||
8 1 74113779894 74113779894 3 003707 10 0 7
|
||||
11 7 7902541300000000 7902541300004999 3 003707 6 1 7 1 16 1 74113779892
|
||||
13 1 74113621997 74113621997 3 003708 8 0 7
|
||||
14 1 79025719995 79025719995 3 003708 11 0 7
|
||||
15 1 74113621998 74113621998 3 003708 7 0 7
|
||||
16 1 74113621999 74113621999 3 003708 6 0 7
|
||||
20 1 79025700999 79025700999 3 003708 6 0 7
|
||||
21 1 79025719000 79025719000 3 003708 7 0 7
|
||||
22 6 250123000049173 250123000049173 2 000001 6 0 7
|
||||
23 6 250123000548881 250123000548881 2 000001 6 1 7
|
||||
24 6 250123000548882 250123000548882 2 000001 6 1 7
|
||||
25 6 250121000109094 250121000109095 3 003708 6 0 6 1 5 7 790254
|
||||
26 6 250123000367371 250123000367371 2 000001 6 1 7
|
||||
27 6 250026510040021 250026510040021 3 003708 6 0 6 1 5 7 781296
|
||||
28 6 250121100011572 250121100011572 3 003708 6 0 6 1 5 7 790254
|
||||
30 6 250058899904676 250058899904676 3 003708 6 0 6 1 5 7 790298
|
||||
31 1 79139889999 79139889999 3 003708 7 0 7
|
||||
32 1 79029889998 79029889998 3 003708 6 0 7
|
||||
33 1 74113779896 74113779896 3 003707 11 0 7
|
||||
34 1 79025110001 79025110001 3 003708 6 0 7
|
||||
35 1 79025110002 79025110002 3 003708 7 0 7
|
||||
36 6 250121100008643 250121100008643 2 000001 6 1 7
|
||||
37 6 250123000016797 250123000016797 2 000001 6 1 7
|
||||
38 6 250123000003240 250123000003240 3 003708 6 0 6 1 5 7 790254
|
||||
39 6 250121000118255 250121000118255 2 000001 6 1 7
|
||||
41 6 250021020465012 250021020465012 3 003708 6 0 6 1 5 7 781296
|
||||
49 6 250018580019726 250018580019726 3 003708 6 0 6 1 5 7 7095
|
||||
50 6 250125067201454 250125067201454 3 003708 6 0 6 1 5 7 790254
|
||||
51 6 250121000118256 250121000118256 2 000001 6 1 7
|
||||
52 6 250121000118601 250121000118601 2 000001 6 1 7
|
||||
53 6 250121000070390 250121000070390 2 000001 6 1 7
|
||||
54 6 250121100006360 250121100006360 2 000001 6 1 7
|
||||
57 6 250010000000000 250019999999999 3 003708 6 0 6 1 5 7 7095
|
||||
58 6 250020000000000 250029999999999 3 003708 6 0 6 1 5 7 781296
|
||||
59 6 250030000000000 250039999999999 3 003708 6 0 6 1 5 7 7831
|
||||
60 6 250040000000000 250049999999999 3 003708 6 0 6 1 5 7 7902933
|
||||
62 6 250070000000000 250079999999999 3 003708 6 0 6 1 6 7 7902370
|
||||
63 6 250100000000000 250109999999999 3 003708 6 0 6 1 6 7 790245
|
||||
64 6 250130000000000 250139999999999 3 003708 6 0 6 1 5 7 79160
|
||||
65 6 250150000000000 250159999999999 3 003708 6 0 6 1 5 7 790237081
|
||||
66 6 250160000000000 250169999999999 3 003708 6 0 6 1 5 7 7902557
|
||||
67 6 250170000000000 250179999999999 3 003708 6 0 6 1 6 7 7346
|
||||
200 6 2500500000000000 250059999999999 3 003708 6 0 6 1 5 7 790298
|
||||
|
||||
[RL_SSN]
|
||||
#NetID DPC SSN
|
||||
|
||||
21
plat/m2ua/ut/xua_test/conf/smsc_csta.conf
Normal file
21
plat/m2ua/ut/xua_test/conf/smsc_csta.conf
Normal file
@@ -0,0 +1,21 @@
|
||||
# This file defines the SMSC CSTA row
|
||||
# The max number of row is 20
|
||||
# Attention: When you want to define the Entity name, the name of "MS" "All" and "Other" is reserved
|
||||
|
||||
# define the entity who send short message to SMSC
|
||||
Receive from:
|
||||
MS
|
||||
PPS
|
||||
VMS
|
||||
#VMS+PPS
|
||||
Other
|
||||
#All
|
||||
|
||||
# define the entity who receive short message from SMSC
|
||||
Send to:
|
||||
MS
|
||||
PPS
|
||||
VMS
|
||||
#VMS+PPS
|
||||
Other
|
||||
#All
|
||||
BIN
plat/m2ua/ut/xua_test/conf/smsc_parambit.conf
Normal file
BIN
plat/m2ua/ut/xua_test/conf/smsc_parambit.conf
Normal file
Binary file not shown.
5
plat/m2ua/ut/xua_test/conf/smsc_sys.conf
Normal file
5
plat/m2ua/ut/xua_test/conf/smsc_sys.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
#SMSC system configure file
|
||||
|
||||
#IP info of SMSC
|
||||
wxc2-0=172.18.98.1;
|
||||
wxc2-1=172.18.99.1;
|
||||
BIN
plat/m2ua/ut/xua_test/conf/system.ini
Normal file
BIN
plat/m2ua/ut/xua_test/conf/system.ini
Normal file
Binary file not shown.
BIN
plat/m2ua/ut/xua_test/conf/vlr.conf
Normal file
BIN
plat/m2ua/ut/xua_test/conf/vlr.conf
Normal file
Binary file not shown.
3
plat/m2ua/ut/xua_test/conf/wxc2_sys.conf
Normal file
3
plat/m2ua/ut/xua_test/conf/wxc2_sys.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
yizane=172.48.234.133;
|
||||
pps-1=172.18.128.137;
|
||||
heartbeat no=9
|
||||
4
plat/m2ua/ut/xua_test/conf/wxc2exit.txt
Normal file
4
plat/m2ua/ut/xua_test/conf/wxc2exit.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
WXC2 procedure exit log
|
||||
Time: Tue Jan 18 10:22:59 2005
|
||||
|
||||
Now module: MSC
|
||||
BIN
plat/m2ua/ut/xua_test/conf/xap_sysparam.conf
Normal file
BIN
plat/m2ua/ut/xua_test/conf/xap_sysparam.conf
Normal file
Binary file not shown.
293
plat/m2ua/ut/xua_test/xuatest.c
Normal file
293
plat/m2ua/ut/xua_test/xuatest.c
Normal file
@@ -0,0 +1,293 @@
|
||||
/************************************************/
|
||||
/*Title: xuatest.c */
|
||||
/*Descr: Processor for xUA Unitest */
|
||||
/*Author: Yi Zane */
|
||||
/*Create: 2006-05-17 */
|
||||
/************************************************/
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <signal.h>
|
||||
#include <termio.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/io.h>
|
||||
|
||||
#include "../../public/includes.h"
|
||||
#include "../../public/asn1.h"
|
||||
#include "../../public/function.h"
|
||||
#include "../../debug/debug.h"
|
||||
#include "../../snmp/snmp.h"
|
||||
#include "../../iptrans/iptrans.h"
|
||||
#include "../m2ua.h"
|
||||
#define TEST_PORT 4955
|
||||
#define xUA_HOST_IP pBYTE[0],pBYTE[1],pBYTE[2],pBYTE[3]
|
||||
#define xUA_CLIENT_IP pBYTE[0],pBYTE[1],pBYTE[2],pBYTE[3]
|
||||
static char clientip[20];
|
||||
static in_buffer *inbuf;
|
||||
static out_buffer *outbuf;
|
||||
struct itimerval itimer,old_itimer;
|
||||
|
||||
|
||||
void QueryUP();
|
||||
void QueryIUA();
|
||||
void QueryM2UA();
|
||||
void On_Timer();
|
||||
void SetTimer();
|
||||
void init_shmPort_iptrans(WORD port,in_buffer ** inbuf,out_buffer **outbuf);
|
||||
int recv_message(in_buffer *pbuf, message_list *pmsg);
|
||||
int send_message(out_buffer *pbuf, message_list *pmsg);
|
||||
|
||||
//--------------------------------------------------
|
||||
extern char hostip[20];
|
||||
extern char hostname[50];
|
||||
extern DWORD host_ip;
|
||||
extern int iptrMainInit();
|
||||
extern int m2ua_hex_to_ascii(BYTE *from_hex, BYTE from_len, BYTE *to_asc);
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
pid_t pid;
|
||||
BYTE* pBYTE;
|
||||
|
||||
if(argc==2 && strstr(argv[1],"-d"))
|
||||
{
|
||||
if((pid=fork())!=0)
|
||||
exit(0);
|
||||
setsid();
|
||||
}
|
||||
|
||||
init_shmPort_iptrans(TEST_PORT,&inbuf,&outbuf);
|
||||
|
||||
debug_init();
|
||||
heartbeat_init(0x0400);
|
||||
iptrMainInit();
|
||||
snmp_init(4957);
|
||||
m2ua_init();
|
||||
|
||||
pBYTE = (BYTE*)&host_ip;
|
||||
|
||||
{
|
||||
//link param
|
||||
//e1_to_linkset,e1_to_slc,e1_to_mtp3,e1_lk_type,e1_to_sg,e1_to_iid,remote_ip,inactive,inactive_tm,e1_to_alterMTP3
|
||||
BYTE linkparam0[]={0x00,0x00,xUA_HOST_IP,0x07,0x00,0x00,xUA_HOST_IP,0x01,0x01,xUA_HOST_IP};
|
||||
BYTE linkparam1[]={0x01,0x01,xUA_HOST_IP,0x07,0x01,0x00,xUA_HOST_IP,0x01,0x01,xUA_HOST_IP};
|
||||
BYTE linkparam2[]={0x02,0x02,xUA_HOST_IP,0x03,0x02,0x00,xUA_HOST_IP,0x01,0x01,xUA_HOST_IP};
|
||||
BYTE linkparam3[]={0x03,0x03,xUA_HOST_IP,0x03,0x03,0x00,xUA_HOST_IP,0x01,0x01,xUA_HOST_IP};
|
||||
set_m2ua_link(0,linkparam0);
|
||||
set_m2ua_link(1,linkparam1);
|
||||
set_m2ua_link(2,linkparam2);
|
||||
set_m2ua_link(3,linkparam3);
|
||||
}
|
||||
#ifdef _testISDN
|
||||
{
|
||||
BYTE sgparam1[]={0x01,0x01,0x02,0xAC,0x36,0xF2,0x70}; //iua -server 172.54.242.112
|
||||
BYTE enable_lk[]={0xA5,0x01,0x03,0x00,0x07,0x00}; //iua A5 01 03 00 07 00
|
||||
set_m2ua_sg(1,sgparam1); //sg=1 iua -server
|
||||
if(!put_xua_msg((xua_up_msg_t*)enable_lk))
|
||||
{
|
||||
printf("Put message to xUA. Msg_Class = 0x%x\n", *enable_lk);
|
||||
}
|
||||
else
|
||||
printf("Put message error\n");
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
SetTimer();
|
||||
|
||||
while(1)
|
||||
{
|
||||
usleep(50);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
void QueryUP()
|
||||
{
|
||||
message_list msgbuf;
|
||||
BYTE buf[256];
|
||||
BYTE *iua_msg;
|
||||
BYTE *pBYTE;
|
||||
static BYTE set_sgflag=1;
|
||||
if(recv_message(inbuf, &msgbuf)==0)
|
||||
return;
|
||||
printf("Receive Message From User:%ld\n",msgbuf.msgSrcIP);
|
||||
|
||||
|
||||
if(set_sgflag)
|
||||
{
|
||||
pBYTE = (BYTE*)&msgbuf.msgSrcIP;
|
||||
sprintf(clientip,"%d.%d.%d.%d", xUA_CLIENT_IP);
|
||||
#ifndef _testISDN
|
||||
{
|
||||
//enable,server,xUA_ack,ip
|
||||
BYTE sgparam0[]={0x01,0x00,0x02,xUA_CLIENT_IP}; //iua -client
|
||||
BYTE sgparam1[]={0x01,0x01,0x02,xUA_CLIENT_IP}; //iua -server
|
||||
BYTE sgparam2[]={0x01,0x00,0x00,xUA_CLIENT_IP}; //m2ua -client
|
||||
BYTE sgparam3[]={0x01,0x01,0x00,xUA_CLIENT_IP}; //m2ua -server
|
||||
|
||||
set_m2ua_sg(0,sgparam0); //sg=0 iua -client
|
||||
set_m2ua_sg(1,sgparam1); //sg=1 iua -server
|
||||
set_m2ua_sg(2,sgparam2); //sg=2 m2ua -client
|
||||
set_m2ua_sg(3,sgparam3); //sg=3 m2ua -server
|
||||
}
|
||||
#endif
|
||||
set_sgflag = 0;
|
||||
}
|
||||
|
||||
|
||||
memset(buf,0,sizeof(buf));
|
||||
iua_msg = buf+RESERVE_FOR_IUAHEAD;
|
||||
#ifndef _testISDN
|
||||
memcpy(iua_msg, msgbuf.msgContent, msgbuf.msgLength);
|
||||
#else
|
||||
memcpy(iua_msg+3, msgbuf.msgContent, msgbuf.msgLength);
|
||||
iua_msg[0]=IUA_QPTM_MSG;//msg_class
|
||||
iua_msg[1]=1;//LINK
|
||||
iua_msg[2]=msgbuf.msgLength+3;//len
|
||||
#endif
|
||||
|
||||
if(!put_xua_msg((xua_up_msg_t*)iua_msg))
|
||||
{
|
||||
printf("Put message to xUA. Msg_Class = 0x%x\n", *iua_msg);
|
||||
}
|
||||
else
|
||||
printf("Put message error\n");
|
||||
}
|
||||
|
||||
void QueryIUA()
|
||||
{
|
||||
message_list msgbuf;
|
||||
xua_up_msg_t *msgToIUAup;
|
||||
int msglen;
|
||||
BYTE buf[256];
|
||||
|
||||
if((msglen=get_xua_msg(IUA_APP,&msgToIUAup)) < 0)
|
||||
return;
|
||||
if(msgToIUAup->msg_class==IUA_MGMT_CMD)//hreatbeat
|
||||
return;
|
||||
#ifndef _testISDN
|
||||
memcpy(msgbuf.msgContent, msgToIUAup, msglen);
|
||||
#else
|
||||
memcpy(msgbuf.msgContent, msgToIUAup->msg.iua.content,msgToIUAup->msg.iua.len);
|
||||
#endif
|
||||
msgbuf.msgLength = msglen;
|
||||
msgbuf.msgDstIP = inet_addr(clientip);
|
||||
msgbuf.msgDstPort = TEST_PORT;
|
||||
msgbuf.msgSrcPort = TEST_PORT;
|
||||
m2ua_hex_to_ascii((BYTE *)msgToIUAup,msglen,buf);
|
||||
printf("\33[31mQueryIUA:%s\33[37m\n",buf);
|
||||
send_message(outbuf, &msgbuf);
|
||||
}
|
||||
|
||||
void QueryM2UA()
|
||||
{
|
||||
message_list msgbuf;
|
||||
m2ua_up_msg_t *msgToM2UAup;
|
||||
int msglen;
|
||||
BYTE buf[256];
|
||||
|
||||
if((msglen=get_m2ua_msg(&msgToM2UAup)) < 0)
|
||||
return;
|
||||
if(msgToM2UAup->sio==0xEF)//hreatbeat
|
||||
return;
|
||||
memcpy(msgbuf.msgContent, msgToM2UAup,msgToM2UAup->len+2);
|
||||
msgbuf.msgLength = msgToM2UAup->len+2;
|
||||
msgbuf.msgDstIP = inet_addr(clientip);
|
||||
msgbuf.msgDstPort = TEST_PORT;
|
||||
msgbuf.msgSrcPort = TEST_PORT;
|
||||
m2ua_hex_to_ascii((BYTE *)msgToM2UAup,msgbuf.msgLength,buf);
|
||||
printf("\33[31mQueryIUA:%s\33[37m\n",buf);
|
||||
send_message(outbuf, &msgbuf);
|
||||
}
|
||||
|
||||
|
||||
void On_Timer()
|
||||
{
|
||||
iptrans_timer();
|
||||
snmp_timer();
|
||||
debug_rt();
|
||||
m2ua_timer();
|
||||
|
||||
|
||||
QueryUP();
|
||||
QueryIUA();
|
||||
QueryM2UA();
|
||||
}
|
||||
|
||||
void SetTimer()
|
||||
{
|
||||
struct sigaction act;
|
||||
act.sa_handler=On_Timer;
|
||||
sigemptyset(&act.sa_mask);
|
||||
act.sa_flags=0;
|
||||
if(sigaction(SIGALRM,&act,NULL)<0)
|
||||
{
|
||||
perror("Produce Sigaction");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
itimer.it_interval.tv_sec=0;
|
||||
itimer.it_interval.tv_usec=10*1000;
|
||||
itimer.it_value.tv_sec=0;
|
||||
itimer.it_value.tv_usec=10*1000;
|
||||
|
||||
if (setitimer(ITIMER_REAL,&itimer,&old_itimer) !=0 )
|
||||
{
|
||||
printf("Setting Timer error! \n");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void init_shmPort_iptrans(WORD port,in_buffer ** inbuf,out_buffer **outbuf)
|
||||
{
|
||||
int shmid;
|
||||
static iptrans_shm *pshm;
|
||||
|
||||
if((shmid=shmget(IPTRANS_SHM_KEY,sizeof(iptrans_shm),IPTRANS_SHM_PERM))==-1)
|
||||
{
|
||||
if((shmid=shmget(IPTRANS_SHM_KEY,sizeof(iptrans_shm),IPTRANS_SHM_PERM|IPC_CREAT))==-1)
|
||||
{
|
||||
printf("fail to open share memory");
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
if((pshm=(iptrans_shm *)shmat(shmid,0,0))==(iptrans_shm *)-1)
|
||||
{
|
||||
printf("fail to attach share memory");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
*inbuf=&pshm->msgPortIn[port-PORT_BASE_NUM];
|
||||
(*inbuf)->msgReadSub = (*inbuf)->msgWriteSub=0;
|
||||
*outbuf=&pshm->msgPortOut;
|
||||
printf("init_shmPort_iptrans() complete...Port=%d\n",port);
|
||||
}
|
||||
|
||||
int recv_message(in_buffer *pbuf, message_list *pmsg)
|
||||
{
|
||||
if (pbuf->msgReadSub == pbuf->msgWriteSub)
|
||||
return 0;
|
||||
memcpy(pmsg, &pbuf->msgList[pbuf->msgReadSub], sizeof(message_list));
|
||||
pbuf->msgReadSub=(pbuf->msgReadSub+1)%IN_LIST_NUM;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
int send_message(out_buffer *pbuf, message_list *pmsg)
|
||||
{
|
||||
memcpy(&pbuf->msgList[pbuf->msgWriteSub], pmsg, sizeof(message_list));
|
||||
|
||||
pbuf->msgWriteSub=(pbuf->msgWriteSub+1)%OUT_LIST_NUM;
|
||||
|
||||
if (pbuf->msgReadSub == pbuf->msgWriteSub)
|
||||
pbuf->msgReadSub=(pbuf->msgReadSub+1)%OUT_LIST_NUM;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user