Вы находитесь на странице: 1из 291

1.5.

3-100

2011

4.8.2011

Released

1.5.3-100

2011
.


, , .
-
, , , ,
, ,
.
, .

10

........................................................................................................................ 10
1.1
........................................................................................................................ 10
1.2
........................................................................................................................
10
1.3

........................................................................................................................
10
1.4

........................................................................................................................
10
1.5

........................................................................................................................
11
1.6
, ,
........................................................................................................................
11
1.7

16

........................................................................................................................
16
2.1
( )
........................................................................................................................
16
2.2
- ()
........................................................................................................................
17
2.3

18

........................................................................................................................
18
3.1

........................................................................................................................
18
3.2

........................................................................................................................
19
3.3
system.conf
........................................................................................................................
20
3.4
phoenix. phoenix.conf
........................................................................................................................
21
3.5
system.conf
........................................................................................................................
22
3.6

23
3.6.1 .....................................................................................................................................................

.....................................................................................................................................................
24
3.6.2

.....................................................................................................................................................
25
3.6.3
7
.....................................................................................................................................................
34
3.6.4

.....................................................................................................................................................
36
3.6.5

.....................................................................................................................................................
37
3.6.6
-
.....................................................................................................................................................
38
3.6.7

.....................................................................................................................................................
38
3.6.8
generic
........................................................................................................................
38
3.7

..................................................................................................................................................... 40
3.7.1 7-
41
3.8 ........................................................................................................................
"location

42
3.9 ........................................................................................................................

........................................................................................................................
43
3.10

........................................................................................................................
45
3.11
SNMP-
........................................................................................................................
47
3.12

........................................................................................................................
48
3.13

50
. 3

........................................................................................................................
50
4.1

........................................................................................................................
52
4.2

..................................................................................................................................................... 52
4.2.1 phoenix.log
52
4.2.2 .....................................................................................................................................................
rtinfo
.....................................................................................................................................................
53
4.2.3

........................................................................................................................
53
4.3
mvts3g-logextarctor

5 (
)

54

........................................................................................................................
54
5.1

........................................................................................................................
54
5.2

55
5.2.1 .....................................................................................................................................................

.....................................................................................................................................................
55
5.2.2

.....................................................................................................................................................
58
5.2.3

.....................................................................................................................................................
63
5.2.4

5.2.5
..................................................................................................................................................... 63

.....................................................................................................................................................
64
5.2.6

.....................................................................................................................................................
65
5.2.7

.....................................................................................................................................................
65
5.2.8

.....................................................................................................................................................
66
5.2.9

68

........................................................................................................................ 68
6.1
.....................................................................................................................................................
68
6.1.1

..................................................................................................................................................... 69
6.1.2

6.1.3 ..................................................................................................................................................... 70
.....................................................................................................................................................
71
6.1.4

72
6.1.5 .....................................................................................................................................................

.....................................................................................................................................................
73
6.1.6

........................................................................................................................ 75
6.2
..................................................................................................................................................... 75
6.2.1
.....................................................................................................................................................
93
6.2.2

6.2.3 ..................................................................................................................................................... 95
6.2.4 ..................................................................................................................................................... 96
98
6.2.5 .....................................................................................................................................................

.....................................................................................................................................................
99
6.2.6

.....................................................................................................................................................
100
6.2.7
CPS
.....................................................................................................................................................
101
6.2.8

........................................................................................................................ 101
6.3
.....................................................................................................................................................
102
6.3.1

.....................................................................................................................................................
105
6.3.2
(Dial Peers)
.....................................................................................................................................................
112
6.3.3

. 4

.....................................................................................................................................................
114
6.3.4
(DPs)
........................................................................................................................ 116
6.4
.....................................................................................................................................................
116
6.4.1

.....................................................................................................................................................
118
6.4.2

.....................................................................................................................................................
120
6.4.3

........................................................................................................................
122
6.5

.....................................................................................................................................................
122
6.5.1
()
.....................................................................................................................................................
123
6.5.2
()
.....................................................................................................................................................
124
6.5.3
()
.....................................................................................................................................................
124
6.5.4
()
.....................................................................................................................................................
125
6.5.5
()
.....................................................................................................................................................
125
6.5.6

.....................................................................................................................................................
127
6.5.7

..................................................................................................................................................... 127
6.5.8 7-
.....................................................................................................................................................
128
6.5.9
ISUP
.....................................................................................................................................................
129
6.5.10
MGCP
.....................................................................................................................................................
130
6.5.11
M3UA
.....................................................................................................................................................
130
6.5.12
-
........................................................................................................................
131
6.6
(CDRs)
.....................................................................................................................................................
136
6.6.1

.....................................................................................................................................................
151
6.6.2
CDRs
.....................................................................................................................................................
151
6.6.3
CDR
........................................................................................................................ 152
6.7
..................................................................................................................................................... 152
6.7.1
..................................................................................................................................................... 155
6.7.2
........................................................................................................................ 158
6.8
.....................................................................................................................................................
158
6.8.1

.....................................................................................................................................................
161
6.8.2

.....................................................................................................................................................
163
6.8.3

..................................................................................................................................................... 164
6.8.4 ENUM-c
..................................................................................................................................................... 165
6.8.5 DNS-
..................................................................................................................................................... 166
6.8.6
.....................................................................................................................................................
166
6.8.7

.....................................................................................................................................................
166
6.8.8

.....................................................................................................................................................
167
6.8.9

.....................................................................................................................................................
168
6.8.10

.....................................................................................................................................................
169
6.8.11

.....................................................................................................................................................
170
6.8.12

.....................................................................................................................................................
170
6.8.13
RADIUS-
.....................................................................................................................................................
171
6.8.14
CDR
.....................................................................................................................................................
172
6.8.15

........................................................................................................................ 173
6.9

. 5

.....................................................................................................................................................
173
6.9.1

.....................................................................................................................................................
174
6.9.2

........................................................................................................................ 175
6.10

........................................................................................................................
180
6.11
RADIUS
.....................................................................................................................................................
180
6.11.1
RADIUS
..................................................................................................................................................... 181
6.11.2 RADIUS-
..................................................................................................................................................... 184
6.11.3 RADIUS
.....................................................................................................................................................
190
6.11.4
RADIUS-
.....................................................................................................................................................
191
6.11.5
RADIUS-

6.11.6 RADIUS-
.....................................................................................................................................................
194

........................................................................................................................
194
6.11.6.1
RADIUS
........................................................................................................................
195
6.11.6.2

........................................................................................................................ 196
6.11.6.3 RADIUS
........................................................................................................................
196
6.11.6.4
RADIUS
........................................................................................................................
197
6.11.6.5
RADIUS

7 (
)

199

7.1
........................................................................................................................ 199
CDR-
200
7.2 C........................................................................................................................
2-
200
7.3 ........................................................................................................................
4-
........................................................................................................................
201
7.4

........................................................................................................................
202
7.5

.....................................................................................................................................................
202
7.5.1
-
.....................................................................................................................................................
203
7.5.2

.....................................................................................................................................................
203
7.5.3

.....................................................................................................................................................
203
7.5.4

.....................................................................................................................................................
204
7.5.5
7
.....................................................................................................................................................
204
7.5.6

..................................................................................................................................................... 204
7.5.7
........................................................................................................................
204
7.6

........................................................................................................................
205
7.7

.....................................................................................................................................................
205
7.7.1

.....................................................................................................................................................
206
7.7.2

........................................................................................................................
206
7.7.2.1

........................................................................................................................ 206
7.7.2.1.1 phoenix.conf
........................................................................................................................ 207
7.7.2.1.2 system-1.conf
........................................................................................................................ 207
7.7.2.1.3 system-1.balancer.conf
........................................................................................................................ 209
7.7.2.1.4 system-1.signaling.conf
........................................................................................................................ 210
7.7.2.1.5 system-1.scripting.conf
........................................................................................................................ 211
7.7.2.1.6 system-1.media.conf
. 6

........................................................................................................................ 212
7.7.2.1.7 system-1.syncro.conf
........................................................................................................................ 213
7.7.2.1.8 system-1.zone.conf
........................................................................................................................
213
7.7.2.2

........................................................................................................................ 213
7.7.2.2.1 phoenix.config
........................................................................................................................
213
7.8
Linux Heartbeat
........................................................................................................................
215
7.9

7.9.1 ,
..................................................................................................................................................... 215

.....................................................................................................................................................
216
7.9.2

.....................................................................................................................................................
216
7.9.3 SSH.

.....................................................................................................................................................
217
7.9.4

217
7.9.5 .....................................................................................................................................................

.....................................................................................................................................................
218
7.9.6

.....................................................................................................................................................
218
7.9.7

........................................................................................................................
218
7.10
()
..................................................................................................................................................... 218
7.10.1
.....................................................................................................................................................
219
7.10.2

8 . ,
222

........................................................................................................................
222
8.1

........................................................................................................................
222
8.2

........................................................................................................................
224
8.3

........................................................................................................................
225
8.4

9 .
227
( )
........................................................................................................................
227
9.1

........................................................................................................................
229
9.2

10 .

232

11 .
7

234

12 .
236

13 . (
241
) RADIUS-
........................................................................................................................
241
13.1

........................................................................................................................
242
13.2

.....................................................................................................................................................
245
13.2.1
(Accounting Start Record)
.....................................................................................................................................................
247
13.2.2
(Accounting Stop Record)

. 7

........................................................................................................................
251
13.3
AccessRequest
.....................................................................................................................................................
254
13.3.1
xpgk-xrouting-routing
........................................................................................................................
254
13.4
RADIUS-

13.4.1 H.323 ( RADIUS


..................................................................................................................................................... 254
)
.....................................................................................................................................................
255
13.4.2
- MD5
.....................................................................................................................................................
255
13.4.3
CHAP-
.....................................................................................................................................................
256
13.4.4 -
(Digest authentication)
........................................................................................................................
257
13.5
Packet-of-Disconnect

14 . CDR-

259

15 .
( )

260

........................................................................................................................
260
15.1
mvtspro-checker
........................................................................................................................
261
15.2
mvtspro-acc-restorer
........................................................................................................................
262
15.3
mvtspro-cdr-restorer
........................................................................................................................
263
15.4
Disk Space Monitor
........................................................................................................................
263
15.5
checkrepl
........................................................................................................................
264
15.6
checkdb_full
........................................................................................................................
265
15.7
aloe_upgrade_cdrs
........................................................................................................................
267
15.8
mvts3g-logexport

16 . SIP H.323

270

16.1 H.323 ........................................................................................................................ 270


16.2 SIP ........................................................................................................................ 270

17 .
(NAT)

271

18 .
( )

272

19 M.
SIP/H.323

273

19.1 H.323 ........................................................................................................................ 273


19.2 SIP ........................................................................................................................ 273

20 . IPSP

274

........................................................................................................................
274
20.1

........................................................................................................................
275
20.2
IPSP
........................................................................................................................
276
20.3

21 .

288
. 8

22 .

290

. 9

1.1

,
.

1.2

,
, . ,
UNIX-
.

1.3

1.4

, .

[N]

void

, ,
, .

Ulimit

Registration

.
.

1.5

[1]

. .

[2]

. .


:
1
, , ,
.
. 10

2
, ,
.
3
.
4
.
5


6
.
7
.

1.6

, ,
, ,
, , , IP-
. .

1.7


ACD (Average Call .
Duration)
,
ASR
(Answer .
Seizure Ratio)
, ,
. ASR
: (. ASR ()
, (. ASR (MVTS).
ASR (MVTS)

,
MVTS. ,
:
ASR = / *100
,

ASR ()

.
, :
ASR = - / -

CDR (Call
record)

detail .
( , ,
..),

(accounting)

CHAP (Challenge

. 11

Handshake
Authentication
Protocol)
CPS
(Calls
Second)

Per () , -
.

CSV

( . Comma Separated Values , )


,
. .
(delimiter),
, (,), (;), .
(");

.

DB (Database)

DBMS
(Database ,
management system)
DP (Dial Peer)

. .

DTMF (Dual Tone


Multi-Frequency)

(, ..)

EMA

( . Exponential Moving Average)

ENUM

Telephone Number Mapping (from TElephone NUmber Mapping.)


, E.164
DNS,

fmtp

,
SDP

GK (gatekeeper)

/, .
IP-
.

GUI (Graphical User


Interface)
GW (Gateway)

, , .

HTTPS (HyperText ,
Transfer Protocol,
Secure)
LAN (Local Area
Network)

()

NAT (Network
Address
Translation)

Network indicator

.
7: .

NGN
Generation
Networks)

(Next-

. 12

NIC
(Network ,
Interface Card)
Payload type

PDD
Delay)

. ,
. (static payload type,
0 95 .) (dynamic payload type,
96 127 .). ,
,
.
,
.

(Post-Dial
,
.
PDD
SETUP
ALERT, CONNECT ProgressIndicator
8
(ProgressInbandInformationAvailable)

Point code

. 7.

PSTN ( . () ().
Public
Switched
Telephone Network)
(VoIP).
QoS (Quality
service)

of . ,

, , QoS,
.

RADIUS

( . Remote Authentication Dial-In User Server/Service)


, RFC
2138.

RAS (Registration,
Admission, Status)

, , .
.

RAS-

RBT (Ring-Back
Tone)

RTP/RTCP (Real /
Time Protocol/ Real-
Time Control
Protocol)
rtpmap

,
SDP

SBC (Session Border . /


Controller)
SCD
(
. SETUP
SETUP-CONNECT
CONNECT (
Delay)
CONNECT)
SDP
(Session .
Description
Protocol)
. 13

Service indicator

.
, 7,
. , 5 (0101 ) ,
ISUP.

SIP
(Session .
Initiation Protocol)
SMTP (Simple Mail
Transfer Protocol)

TTL (Time-To-Live)

VoIP (Voice over (IP)


Internet Protocol)
WAN (Wide Area
Network)

( . to bill / )
,
(accounting).

( )

7.

.
MTP1.
7
( )
( ).

.
MTP2.

.
.

( )

( )

( )

( )

( )

( )

( )

(DP) (dial peer)

(),
.
.

. 14

. ,
4.


(/
)

( . Session Border Controller, SBC).


, IP
, ,
, ,
() .
,

. ,
()
(NAT )
,

()
.

, :
(/ (), web-.
TM)

( . proxy , , )
, ,
proxy-, .. ,
( ). ,
- , -
, ,
.

- ,

.

. 15


,
4 (softswitch class 4)
(session border controller).
VoIP-, (SIP, H.323
ITU ISUP/ISUP-R).

.
,
,
, .
MVTS
: SIP ITU ISUP/ISUP-R/MGCP
,
,

, ,
.

.

2.1

( )
" ",
.

2.2

- ()
- ,
Intel
,
().

- (-)
- (VoIP).

.
:

;
RTP- ,
E1.
- .

. 16

-
-, ,
.

2.3



(API-),
, web-
SOAP .
.
.

. 17

3.1



IP-, ,
(firewall).
, :
(control links)
, .
()
, , .
TCP- MySQL 3306 .
web-.
, web-,
TCP- 443 (web-) IP-
( ).
telnet
( ).
ssh (
).
web-.

3.2


: phoenix.conf
system.conf.
phoenix.conf ,
. , .
system.conf ,
(commandline). .
,
, usb- ,
() .
,
, :
1. ;
2. phoenix.conf;
3. system.conf;
4. .
, ,
:
1. ;
2. phoenix.conf ;
3. system.conf ;
. 18

4.
.

3.3

system.conf
system.conf , ,
C.

:
,
. ;
C C++, : ,
//, ,
/* */, ,
;
,
include.
2 system.conf.
2 system.conf

zone

{.

};

zone "local"
{
"127.0.0.0/8";
"::1/128";
};
zone "intranet"
{
"194.112.160.0/24";
};
};

allow_chap yes

"127.0.0.0/8";
"::1/128";

/*
*/

/* Use this section to configure signaling


nodes.
*/

include /

include /etc/mvts3g/system-1.zone.conf

. 19

3.4

phoenix.
phoenix.conf
Phoenix , ,
, IP- ,
(license management node). phoenix
.
,
phoenix, phoenix.conf
/etc/mvts3g.
/etc/mvts3g :
phoenix.conf.sample.local phoenix.
conf , (license
management node);
phoenix.conf.sample.remote phoenix.
conf , (license
management node).
phoenix.conf
.

phoenix.conf.sample.
local.

phoenix.conf.sample.local
:
<> [<1>[=<1>][, <2>[=<2>][, ]]]
[] .
phoenix.conf :
management primary=< > [backup=< >]
. ,
/.
( , , ).
load.
,
, .
, . ;
phoenix [address=<ip->] [sodir=< so>]
[timeout=<>]
[count=<
>]
[sleep=<>]
[wdtimeout=< >] [wdsleep=< >]
phoenix. address - IP-
phoenix. sodir - .
so.
. timeout
count ,
sleep. wdtimeout ,
, phoenix, .

. 20

wdsleep
phoenix SIGSEGV.
, SIGKILL.
load.
statestore [db=< >] [trafficlog=< traffic.log>]
statestore,
. db ,
. trafficlog
traffic.log. load.
, .
load type=< > name=< > [file=<>] [<params>]
type, name .
type name .
. file .so
. file,
sodir phoenix.

load type=management mode=main,
- mode=backup.

phoenix.conf.
, , /etc/init.d/
mvts3g-server-pro start:
#> /etc/init.d/mvts3g-server-pro start

restart:
#> /etc/init.d/mvts3g-server-pro restart

stop.
#> /etc/init.d/mvts3g-server-pro stop

3.5

system.conf
/etc/mvts3g/system.conf
.
system.conf.
media
{
rbtfilesdir "/etc/mvts3g";
media "media-1"
{
portrange "10000-19999";
};
media "media-2"
{
portrange "20000-29999";
};
media "media-3"
{
portrange "30000-39999";
};
media "media-4"
. 21

{
portrange "40000-49999";
};
};

system.conf
system.conf ,
.
media,
- media-1, media-2, media-3, media-4
( media media-1, media media-2, media media-3 media media-4, ).
. ,
- "media-1"
10000 14999, "media-2" - 20000 29999, "media-3" - 30000 39999, "media4" - 40000 49999.
, , ,
. rbtfilesdir (
, ). -
, .
, - (signaling/
scripting/media ..) (.
).
system.conf include
. :
include
include
include
include
include
include

"/etc/mvts3g/system-1.zone.conf";
"/etc/mvts3g/system-1.scripting.conf";
"/etc/mvts3g/system-1.registrar.conf";
"/etc/mvts3g/system-1.signaling.conf";
"/etc/mvts3g/system-1.synchro.conf";
"/etc/mvts3g/system-1.media.conf";

, system.conf,
(telnet [address] [port], commandline
phoenix.conf) config,
system.conf. :
mvts3g|> config /etc/mvts3g/system.conf
Step 1: Parsing a configuration file...
Step 2: Configuring the system...
Step 3: Done.

3.6


,
:
[ ]
{
[ ]
[ ] "[ ]"
{
[ , ]
};
};


phoenix.conf.

. 22

3.6.1


: common
controllink.
common
{
loglevel "0";
...
};
controllink
{
address
{
"192.168.132.195";
};
port "7050";
};

common , :
loglevel
( ) / ( ,
SIP/H.323,
);

,
, .
common :
loglevel_timeout x
x , . ,
24 ;
link_send_timeout
, ;
link_recv_timeout -
,
TCP- , ;
link_restore_timeout - , TCP , ;
link_reconnect_interval - TCP link_restore_timeout, ;
link_connect_interval - TCP
, .
link_send_timeout link_recv_timeout,
TCP-.
( statestore
commandline), common,
.
controllink , /
.
controllink 0.0.0.0 127.0.0.1,
. .

. 23

3.6.2


:
balancer
{
balancer "[node name]"
{
common
...
controllink
...
ras
{
address
{
"0.0.0.0";
};
port
"1719";
gkname
"MVTS3G";
allow_md5
"yes";
allow_chap "yes";
allow_plain "yes";
};
sip
{
address
{
"0.0.0.0";
};
port
"5060";
proxying_balancing "yes";
external_autorization "no";
};
h323
{
address
{
"0.0.0.0";
};
port
"1720";
};
};
};

ras , H.323-:
o address ,
H.323 (LRQ/ARQ);
o port , ;
o gkname LRQ/ARQ;
o allow_md5, allow_chap, allow_plain
;
sip , SIP:
o address/port SIP-;
. 24

o proxying_balancing , SIP, (yes) (


302) (no);
o realm realm SIP.
( ):
"HOSTNAME" - . 401,
, realm .
"HOSTADDR" - 401 realm IP-
. SIP-
, REGISTER.
( ) (
) realm.
h323 , H.323:
o address/port , H.323 .

3.6.3

7
7 (SS7 Call Agent
node) :
ss7
{
ss7 "[ ]"
{
common
...
controllink
...
callctr
{
ss7zone "[ 7]"
{
cid "0"
};
tmr "1"
};
isup
{
...
};
m3ua
{
...
};
mgcp
{
...
};
};
};

callctr:

. 25

ss7sone 7-. callctr ss7zone


7-, . .
7-;
tmr , Transmission medium requirement IAM.
0-3;
ss7zone:
cid - ( circuit_group),
7-, E1.
-;
ISUP isup:
isup
{
snode "[ snode]"
{
...
connection "[ connection]"
{
...
timers
{
...
};
span "[ span]"
{
...
ts_cic_mapping
{
...
};
};
};
};
circuit_group
{
...
circuit_group_elem
{
...
};
};
};

:
tStopBlock ,
BLO/CGB 7.
3600000. 300000 60000000.
T19;
tStopUnblock ,
UBL/CGU 7.
3600000. 300000 60000000.
T21;
tStopRSC , RSC

. 26

7.
3600000. 300000 60000000.
T17;
tStopGRS , GRS
7.
3600000. 300000 60000000.
T23;
snode 7,
ISUP:
7 .
1 100 ;
opc (point code) . 0 16383
;
ni . 0 3- .
connection 7,
E1:
7 .
1 100 ;
dpc , (point code) .
0 16383 ;
timers 7-.
.
Q.764. :
T1 - RLC REL;
T5 - RLC
REL;
T6 - RES ( )
SUS ( );
T7 - SAM;
T9 - CON ANM
;
T16 - RSC;
T17- RSC;
T18 - CGB;
T19 - CGB;
T20 - CGU;
T21 - CGU;
T22 - GRS;
T23 - GRS;
span E1 7 ISUP:
E1 .
E1 ISUP;
hw_id - (
mgcp_conf_mgw), - E1;
out_mask , - E1,

. 27

.
;
in_mask , - E1,
7-.
;
doInitReset . true ,
-, 7
;
isConsecutiveCicAlloc true ,
-. false ,
-.
- ISUP
7-;
cicBase -,
. E1,
cicBase ,
- (, 0
cicBase = 0, 1 cicBase = 32 ..);

ts_cic_mapping
,

isConsecutiveCicAlloc = false. ts0ts31


-, out_mask in_mask.
0 4095 .
circuit_group -
E1. circuit_group
cid, ( ) ss7zone:
- circuit_group.
cid ss7zone;
circuit_group_elem -
E1. circuit_group_elem circuit_group
50:
span_idx E1 ( span),
-;
out_mask , - E1,
-.
;
M3UA m3ua:
m3ua
{
...
AS "[ AS]"
{
...
};
ASP "[ ASP]"
{
...
};
LIPSP "[ LIPSP]"
{
...

. 28

};
RIPSP "[ RIPSP]"
SG "[ SG]"
SGP "[ SGP]"
{
...
};
Association "[ Association]"
{
...
};
LocalEndpoint "[ Endpoint]"
{
...
};
RemoteEndpoint "[ Endpoint]"
{
...
};
NetworkAppearance "[ NetworkAppearence]"
{
...
};
RoutingContext "[ RoutingContext]"
{
...
};
RoutingKey "[ RoutingKey]"
{
...
};
};

:
assocEstablishInterval SCTP , . 1000.
1000 10000 ;
assocMaxInitAttempts
SCTP-. 3.
1 10 ;
assocMaxInitTimeout SCTP, . 300.
1000 10000 ;
assocGracefulClose true , SCTP-
7- Shutdown Chunk, false - Abort Chunk.
false.
daudPeriod ,
. 6000. 1000

. 29

600000 ;
AS (Application Server, AS),
, (Routing Key).
,
AS.
(Application Server Process, ASP),
. AS
ASP :
AS .
1-65536.
rk Routing Key (RK) ( RoutingKey),
, AS.
ASP (Application Server Process,
ASP), ():
ASP .
1-65536.
m3asp_id ASP Identifier. 1-1000.
LIPSP IP (IP Signaling Point,
IPSP). IPSP.
IPSP .
1-65534.
m3asp_id ASP Identifier, ASPUP.
1-100.
RIPSP IPSP. v
IPSP. 1-65534.
IPSP.
SG (Signaling Gateway, SG),
IP 7
. SG.
65537 - 131070.
SGP (Signaling Gateway Process,
SGP), SG :
SGP .
65537 131070.
sg SG ( SG),
SGP.
Association
ASP SGP:

SCTP-

()

SCTP- .
lsp ASP ( ASP),
;
rsp SGP ( SGP),
;
lep SCTP- ASP (
LocalEndpoint);
rep SCTP- SGP (
RemoteEndpoint);
hbInterval (heartbeat)
. 30 .

. 30

role - , ,
. "Client" ASP/
LIPSP, "Server" ASP/LIPSP .
- "Client".
LocalEndpoint "[ LocalEndpoint]"
{
...
Addresses
{
"192.168.131.100";
};
};

LocalEndpoint SCTP.
0 200:
SCTP ;
port SCTP- . - 2905;
Addresses IP-, SCTP-.
.
RemoteEndpoint "[ RemoteEndpoint]"
{
...
Addresses
{
"192.168.131.100";
};
};

RemoteEndpoint SCTP.
0 200:
SCTP ;
port SCTP- . - 2905;
Addresses IP-, SCTP-.
.
NetworkAppearance "[ NetworkAppearence]"
{
...
SG_Ids
{
"65537";
};
AS_Ids
{
"1";
};
};

NetworkAppearance ,
7-,
7. ,
, 7-, SCTP-
AS SG:

. 31

;
value Network Appearance, 7-.
0 - 4294967295;
SG_Ids SG ( SG).
AS_Ids AS ( AS).
RoutingContext "[ RoutingContext]"
{
...
AS_Ids
{
"1";
};
Assoc_Ids
{
"1";
};
};

RoutingContext
Routing Key, , SG
AS:
;
value Routing Context, AS. 0 4294967295. ( ):
o None - Routing Context DATA.
, , Routing
Context, AS, Routing
Context. .
o Dynamic - Routing Context
Routing Key.
Routing Context .
, AS .
AS_Ids AS ( AS).
Assoc_Ids
( Association).

SCTP-

Association

direction - ,
. "Outgoing", ASP; "Incoming" - SGP; "Both"
- IPSP.
RoutingKey "[ RoutingKey]"
{
...
RoutingKeyEntry
{
...
OPCs
{
"300";
};
...

. 32

};
};

RoutingKey ,
AS. ,
,
AS:
;
RoutingKeyEntry ;
o DPC ( SG);
o OPCs ( SG).
;
o si (service indicator), 16 .
5 1 , ISUP;
o ni (network indicator). 0 3-
.
MGCP mgcp:
mgcp
{
mgcp_conf_inst "[ ]"
{
localAddr
"192.168.129.127";
localPort
"2727";
tHist
"20000";
tRetransInit "200";
tRetransLong "400";
tRetransMax "4000";
maxRtxNum
"200";
mgcp_conf_mgw "[ ]"
{
address
"192.168.131.100";
port
"2427";
outTidMin
"2000";
outTidMax
"99999999";
pattern
"S0/DS1-${trunk}/${timeslot}@mediant3.meranetworks.
ru";
mgcp_conf_trunk "0"
};
};

mgcp_conf_inst , -,
7 MGCP:
;
localAddr IP- 7,
MGCP- IP-;
localPort IP- 7,
MGCP- IP-. - 2727;
tHist ,
. 20000.
1000 - 60000;
tRetransInit .
200. 100 - 500;
tRetransLong , ,
. 33

- TS .
400. 100 - 10000;
tRetransMax .
4000. 1000 - 10000;
maxRtxNum ,

. 200. 5 - 1000.
mgcp_conf_mgw - (MGCP-),
- 7 IP- :
- ;
address IP- -;
port IP- -;
outTidMin ,
MGCP, 7
-. 2000. 1 - 999999999;
outTidMax ,
MGCP, 7
-. 999999999. 1 - 999999999;
, -
-, .
pattern MGCP- (endpoint), -.
${trunk} E1 ( mgcp_conf_trunk),
${timeslot} ;
mgcp_conf_trunk E1, - .
, E1,
.
E1 -.
span;
auditPeriod MGCP.
5000 .
7 .
. . 7
.

3.6.4



. :
scripting
{
scripting "scripting-1"
{
controllink
{
address
{
"0.0.0.0";
};
port
"7710";
};
loader_path
"voip2.loader";
environment
{

. 34

dbms_type_master
dbms_name_master
dbms_user_master
dbms_pswd_master
dbms_type_slave
dbms_name_slave
dbms_user_slave
dbms_pswd_slave

"MySQL";
"localhost@rtu";
"rtu";
"rtu";

"MySQL";
"localhost@rtu";
"rtu";
"rtu";

};
};
};

scripting:
loader_path ;
environment:
cdr_data_expiration_timeout CDR (
CDR- );
cdr_count_in_transaction CDR-
(INSERT) ;
cdr_backup_max_requests_in_file - CDR ;
cdr_backup_timeout - CDR- (
CDR- );
cdr_backup_path ,
CDR;
cdr_backup_restore_1 CDR , ,
. - 2 ;
cdr_backup_restore_N CDR , ,
. 1 .
, ,
cdr_backup_path, cdr_backup_restore_1.
CDR- ,
1 ( cdr_backup_restore_N).
CDR- , CDR-

cdr_backup_restore_1.
( CDR ),
cdr_backup_restore_N;
cdr_backup_template CDR;
reg_backup_template ;
reg_backup_path ,
;
dbms_type_master . MySQL
Oracle;
dbms_type "MySQL";

dbms_name_master host@database;
dbms_name "localhost@rtu";

dbms_user_master ;

. 35

dbms_user "rtu";

dbms_pswd_master ;
dbms_pswd "rtu";

dbms_type_slave . MySQL
Oracle;
dbms_type "MySQL";

dbms_name_slave host@database;
dbms_name "localhost@rtu";

dbms_user_slave ;
dbms_user "rtu";

dbms_pswd_slave ;
dbms_pswd "rtu";

dbms_reconnect_timeout
, 1 ;

dbms_reconnect_timeout "1";

dbms_reconnect_tries
, 3;
dbms_reconnect_tries "3";

dbms_scan_period
;
dbms_scan_period "10";

dbms_time_wait_for_connect ,
,
.
dbms_time_wait_for_connect "20";

trace_file .
, - mvtsprologic.

.
trace_file "logic";

radius_local_socket_address IP-/,
RADIUS-.
0.0.0.0:0.
radius_nas_ip_addr NAS-IP-Address Accounting,
RADIUS-;
radius_local_socket_address
.

3.6.5

radius_nas_ip_addr


:
signaling
{
signaling "signaling-1"
{
cdr_recovery "no";

. 36

h323
{
address
{
"192.168.131.13";
};
port "1721";
};
sip
{
address
{
"192.168.131.13";
};
port "5061";
};
};
};

h323 ,
H.323;
sip ,
SIP;
cdr_recovery - / CDR-.
- "yes" "no". "no".
.
, SIP-
302 (proxying_balancing yes sip) ,
- , address
,
. SIP-
302 address 0.0.0.0.
, SIP-
.

3.6.6

-
media
{
media "media-1"
{
controllink
{
address
{
"192.168.131.13";
};
port "7760";
};
portrange "15001-20000";
rbtfilesdir "[full path]";
};
};

-:
portrange UDP-
-;
rbtfilesdir ,
. 37

;
, controllink .
.wav, , 8 PCMA/
PCMU/PCM.

3.6.7



. :
synchro
{
controllink
{
address
{
"192.168.132.195";
};
port "7711";
};
synchro "synchro-1"
{
};
};

3.6.8

generic
generic .
.
generic
. generic:
generic
{
generic "Centrex"
{
controllink
{
...
};
port "9966";
};
generic "LicenseInterlayerServer"
{
controllink
{
...
};
port "9977";
};
};

3.7


.
IP-.
IP-
- , ,
. 38

(), ..
. ,
: , .
, , ..
, ,
, .



, .
, 212.92.148.0/24
195.98.135.0/24. 2
. , .
, .
system.conf zone,
,
.
IPv4 :
1. CIDR-, xx.xx.xx.xx/yy, xx.xx.xx.xx ,
yy .
2. IPv4 xx.xx.xx.xx/yy.yy.yy.yy, xx.xx.xx.xx , yy.yy.
yy.yy .
:

. 39

local,
127.0.0.1 [::1] . local
, ,
.
,
.
, (signaling node) ,
192.168.18.12 212.92.148.70 ( , ),
81.10.1.1 "internet".
212.92.148.70
"internet".
(uplink).
N IP- ( N
), , IP-
.
(source routing). ,
.

3.7.1

7-
7 7-. 7-
, 7,
. , 7-
7-, 7-,
7-.

7-
. 40

IP- IP-,
IP- 7-.
, IP-, alias 7-,
IP-. IP- 7-.
zone
{
zone "voip"
{
"192.168.0.0/16";
"212.92.148.0/24";
alias "ss7-zone-1";
alias "ss7-zone-2";
};
};

. .

3.8

"location
location "hosted softswitch

.
location IP-,
.
, / location,
.
location, ,
,
location.
location:
1. ;
2. location;
3. "location, ,
, location;
4. IP- location;
5. location IP-, , ,
, IP-;
6. - (),
location A, ,
location, location.
()
(SIP .323) 7,
location
location.
(),
location.
- () ,
location.

,
location.
location
.
-, . ,

. 41

,
"location.
- , .
.
,
location.

location

3.9


( ,
, 7) ,
, (
7), ,
.
.
(+),
, CLASS 4 (
), , CLASS 5 (
). ,
.
balancing:
balancing
{
balancing "logic-1" // group name
{
// names of nodes belonging to this group
"scripting-1";
"balancer-1";
"signaling-1";
};
balancing "logic-2"
{
// names of nodes belonging to this group
"scripting-2";
"SS7-1";

. 42

"signaling-1";
};
};

:
balancing
{

balancing "class-4" // group name

// names of nodes belonging to this group

"scripting-1";

"balancer-1";

"signaling-1";

};

};

balancing "class-5"
{
// names of nodes belonging to this group
"centrex";
"balancer-2";
"signaling-1";
};

, .

3.10



. /usr/sbin/mvts3gmail, , .
/etc/mvts3g/mvts3g-mail.conf
.
, .
. , ,
, .
/etc/mvts3g/mvts3g-mail.conf
/etc/mvts3g/mvts3g-mail.conf .
, ,
,
.
1.
FROM="mvts3g-notification <username@hostname.com>" . .
TO="user1 <user1@hostname.com>, user2 <user2@hostname.com>" ,
,
ALARM_SUBJECT="Notification" (, .
)
2. , :
ALARM_ID="NODFLT001, SIG2MED001, MGMCFG001, MGMKEY001, MGMTCN001, SN001,
MGMCFG010,
COUNTER001,
SCRPT_DBMSC_CONNECTION,
CENTREXWEBACCESS,
DISKSPACE,
RADIUS_CONNECT,
CDR_UPDATER,
DBREPLICATION,
BLOCK_NODE<N1>_RPC<N2>_CIC<N3>" , .
ID BLOCK_NODE<N1>_RPC<N2>_CIC<N3>
ISUP-. ID 7
( snode 7) <N1>,
( dpc 7) <N2>
- <N3>.
. 43

ISUP-, .
ALARM_SEVERITY="CRITICAL, MAJOR, MINOR" .
3.
.
,
.
SEND_MINUTE_INTERVAL,
.
, .

SIG2MED001

Critical

Signaling

No registered media nodes

NODFLT001

Major

Any node

Node crashed
restarted

SN001

Critical

Scripting

The Scripting Node loader


path misconfigured

MGMCFG010

Critical

Management

Primary management node


RESTORED Primary
management node LOST

COUNTER001

Minor

Any node

Counter value .

MGMCFG001

Critical

Management

System is not configured

MGMTCN001

Critical

Management

Trial period expired

MGMKEY001

Critical

Management

Failed to read hardware key

and

was

SCRPT_DBMSC_CONNEC Critical
TION

Connection to data base was


lost Connection to data
base was restored

DISKSPACE

LOW DISK SPACE!

Critical

<>
RADIUS_CONNECT

Critical

Scripting

RADIUS changed to a
RADIUS < RADIUS>
(IP=<IP->:
<>), Connection
to
RADIUS < RADIUS>
(IP=<IP->:
<>) was lost
Connection to RADIUS <
RADIUS-> (IP=<IP>:<>) was restored

CDR_UPDATER

Critical

Scripting

CDR Queue
max limit
exceeded CDR Queue
limit came to normal

. 44

DBREPLICATION

Critical

Replication failure detected


on host '<hostname>'


(counters).
common
(-) . :
alert ( )
counter
type . : type "increment" () type
"decrement" ()
limit
step .
,
.
:
media
{
media "media-1"
{
signaling "signaling-1";
common
{
alert "node crashed"
{
counter "phoenix.restartcount"
{
type "increment";
limit "1";
};
};
};
};
};

,
:
ID:

COUNTER001

SEVERITY:
NODE:

MINOR
MEDIA

COUNTER NAME: phoenix.restartcount


COUNTER VALUE: 5
DESCRIPTION: Restart count
Counter value more than 1

(MTA mail transfer agent),
sendmail.

3.11

SNMP-
SNMP- , SNMP-
.

. 45

SNMP- :
1. /home/common/debian, ,
mvts3g-server-pro-snmp_<_>.deb:
aptitude install mvts3g-server-pro-snmp_3.6.1-14_i386.deb

2. /etc/snmp/snmpd.conf IP-,
SNMP-,
(community) public .
.

snmpd.conf
3. /usr/share/doc/mvts3g/examples/snmpd.conf.sample.
, SNMP- :
SNMP- libsnmpagent.so, IP-
( - mvtsPrimaryConnectAddress, - mvtsBackupConnectAddress),
,
SNMP-. /etc/
snmp/snmpd.conf:

snmpd.conf.sample
(license management node)
.
, /etc/snmp/snmpd.conf ,
.
,
, MIB-.
4. /etc/default/snmpd SNMPDOPTS='-Lsd -Lf /

. 46

dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'.


SNMPDOPTS='-Lsd Lf /var/log/snmpd.log -u snmp -I -smux -p /var/
run/snmpd.pid'.

etc/default/snmpd
5. SNMP-:
$ /etc/init.d/snmpd start

6. , :
$ snmpwalk -v 2c -c <COMMUNITY> <IP_address> .1.3.6.1.4.1.28029

<COMMUNITY> ;
<IP_address> IP- (License management node);
.1.3.6.1.4.1.28029 OID .

snmpwalk
SNMP- , /var/log/
snmpd.log.

3.12


logrotate,

,
.
traffic.log phoenix.log
.
.
/etc/
logrotate.d mvts-pro,
. :

. 47

/var/log/mvts3g/mvtsprologic.scripting-1.log {
rotate 10
daily
size 64M
nocompress
postrotate
/usr/bin/mvts3g-sclient 192.168.131.5:7710 logrotate
endscript
}
/var/log/mvts3g/mvtsprologic.scripting-2.log {
rotate 10
daily
size 64M
nocompress
postrotate
/usr/bin/mvts3g-sclient 192.168.131.5:7711 logrotate
endscript
}


, , /etc/
logrotate.d/mvts-pro . ,
:
/var/log/mvts3g/[ ] {
[]
}


.
(mvtsprologic.scripting-1.log )
<>.< >.log,
<>
trace_file (. );

<_> - , (.
).
postrotate mvts3g-sclient
.
mvts3g-sclient :
( - 192.168.131.5:7710 192.168.131.5:7711),
(.
);
logrotate.
/etc/logrotate.d/mvts-pro ,
:
man logrotate

3.13


MySQL mvtspro. (+)
MySQL rtu.
rtu rtu,
.
/var/www/rtu/Config.php.

. 48

data_sources ( ):
$GLOBALS['cfg'] = array
(
// Data sources
'data_sources' => array
(
'main' => array
(
'type'
=> 'mysql',
'host'
=> 'localhost',
'db'
=> 'mvtspro',
'user'
=> 'rtu',
'password' => 'rtu'
),
'mvts' => array
(
'type'
=> 'mvts',
'address'
=> '127.0.0.1:9000',
'timeout'
=> 3
'version'
=> 4
)
),
'main_data_source' => 'main'
...
)
main :
type , mysql;
host IP- ;
db ( mvtspro, - rtu);
user ( rtu);
password ( rtu).
mvts
(. )
:
type , mvts;
address ;
timeout ;
version sclient sqlclient. 1.5.0
4.
web- web-
https://server_ip, server_ip IP- , web . web-
admin admin .
, -> (.
).

. 49

4.1


,
.
,
.
telnet-
IP- ,
(command line node).
.
.


()
,
. .
.

config <filename>

help

logout

quit

show <argument>

exit


. 50

calls

display

show

counters

format <full/short>

display

show
zones

display

show
show

:
calls

counters

endpoints ep

status

.


.

, :
mvts3g|> sh st media-1

biefstatus bs

. , display
d, calls counters ca co, .

show ca(lls)

.


. , :
calls show display

. 51

show calls
show calls

show counters counters


.
show counters
.*restart.* (
). .

4.2


/var/log/mvts3g/.

4.2.1

phoenix.log
/var/log/
mvts3g/phoenix.log. ,
.
syslog. syslog :
man syslogd

4.2.2

rtinfo
rtinfo .

kill -USR1 <node_pid>, <node_pid>
.
:

. 52

admin@jack:~$ ps aux | grep mvts


...
admin 28338 2.4 0.5 122496 11972 pts/15
common: signaling-1

S+

11:10

0:00 mvts3g-server-

...
admin@jack:~$ kill -USR1 28338

rtinfo-SIGUSR1-<node name>-<node pid>.log


, ,
, .
, , .
, rtinfo-<SIGNAL>-< ><pid >-<pid rtinfo>.log.
rtinfo /var/log/mvts3g/.
.

4.2.3



/var/log/mvts3g/.
. <>.
< >.log, <>
trace_file (. ),
<_> - , (.
). , mvtsprologic.scripting-1.
log.

.

4.3

mvts3g-logextarctor
mvts3g-logextractor ( /usr/bin)
traffic.log ( /var/log/mvts3g)
,
.
, ,
Call ID, ( ),
, Conf ID ,
, Proto ID ( 7).
CDR- .
mvts3glogextractor ID ,
, :
./mvts3g-logextractor.sh /var/log/mvts3g/traffic.log ID > /home/user_name/
filename.log

:
ID (Call ID, Conf ID, Proto ID) ( CDR);
/home/user_name/filename.log ,
.

.

. 53

( )

(
)
Web- ,

5.1



(. ).

5.2


,
.

. 54

( )

5.2.1


, web-, web IP- web- (DNS name), https://rtu.
yourcompany.com. , HTTPS (Hyper
Text Transmission Protocol, Secure). (
) .


,
, .
,
, , .
.

web-
, ,
(10, 25, 50 100).

.
(. ).

5.2.2


,
. , ,
. 55

( )

.
, .. , .
.

()
:

.
, .
, , *. ,
. . ,
, .
Null.

C ,
.
, .
,
. .
. , ,
.

.
;

.
, .
, . , ,
.

. ,
.

. 56

( )

. ;


.
.
> .
, , ,
, -
. - ,
OK.
.
, .
, -
. , , , . ,
-> .


.

. ,
, .
-> . ,
, , ,
- . ,
OK. .
,
. , ,
, (
).

(

).
,
(
), (
( ));

,
(.
);

CSV- (
).

, . ,
, ,
. ,

,
.

. 57

( )

5.2.3


, ,
, .

.
:
, ;
, ;
() - , ;
() , .

. ,
.

,
, .

.

. 58

( )

,
,
/ .

.

,
.

.
Like Not Like
% _
.
RegExp"
.



.
.

, ,

, 192.168.131.0/24, 192.168.132.0/24.
.
:

,
,

192.168.131.0/24

192.168.132.0/24

, , :
, ;
.
, .

. 59

( )


:
1. .
,
** **
.

"=";

. 1
2.

1 .
. -,
, "=";

. 2
3. . **
. ,

. 60

( )

. 3
4. **.
** **;

. 4
5. . * *

,
* *;

. 61

( )

. 5
6. . .
= Like.
192.168.131.%;

. 6
7. 5 6 ,
192.168.132.0/24. .
.

. 7
,
.
. ,
, .
,
.
. .

. 62

( )


, ,
,
. .

5.2.4


.
, .
, .
,
. .

. ,
, .
,
( , ).
, ,

.

5.2.5


Web-
, .
. ,
.
. 63

( )


,
.
, ,
,
.
,

.

,
.
.
, ,
.

.
. ,

. ,

.


.
,

5.2.6


Web-
.

. , .

. 64

( )


.

.
,
.

5.2.7



, ,
, ,
.
:


,
. .

5.2.8


CSV- (comma-separated
values), .
.
.
Save.

. 65

( )

Save as. Save in,


, .

File name .
, Save as type Microsoft Office Excel Comma Separated Values File
Save.

5.2.9


web-
web-. ,
:

. 66

( )

web-
:
Centrex . ;
Logic ;
TS ;
WEB+DB web- ;
WEBENGINE web-.

. 67

6.1

() , ,
, . .

6.1.1


,
.


,
web-.
, ,
.


(,

. 68

*, ):
* ( , );
* ( ),
.
* , .
(. ).
, OK.
.
, .
,
(ID).
,
.

web- (. ).

6.1.2


, ,
.
/.

.
. ,
,
, .

: ,
.
.
.
, , .


(,
*, ):

. 69

* ;
* .
, (. .
);
* (
, );
( );
IP- IP-, web-;
- , .
, OK.
(ID).

6.1.3

.
.


(,
*, ):
* ,
.
.
, ,
;
* ;
.
, OK.
.
(. ) .
, .
,
, , , ,
.

. 70



.
, .

6.1.4


.
.


(,
*, ):
* , ;
* ,
. (
) .
,
;
* , ,
. ,
( ), ( ).

:
[M] ;
[] ();
[] ( ).
,
, * , .
, ,
.
;
;
;
;
(
CDR-).
.
(. ).
. 71

6.1.5


,
. .

. , *, .
, ,
. .


*
. * .
* . .


:
* .
, .
* ;
;

. 72

IP- IP-, web- (


);
.

" "
,
.
.
.

6.1.6


,
.
web-.
-
,
.

, ,
.
-
.

, users Default realm.
.
users.

.
. ,
.

, .
, .

. 73


(,
*, ):
* ID ,
, admins;
web-
PHP- (. ) .
* ;
.
, OK. .
Config.php,
/var/www/rtu,
:

ID Config.php
, web- Apache
web- IP (. Listen Apache),
(. Allow from/Deny from Apache).

. 74

6.2

VoIP-,
, .

6.2.1

( > )
, .
( )
.

. 75


(
, *):
-, ;
* ;
,
;
. - -,
;
. - -,
;
* ,
:

. 76

, ;
;
,
,
(. . );
RADIUS
RADIUS;
ENUM- ENUM-
. ,
ENUM- SIP.
SIP-,
.

( ) (.
. ).

( ) (DPs)
.
(DPs) . .
SIP
SIP 30x (.
M. SIP/H.323).
* , -.
,
.
*
, . H.323 SIP
, (H.323 SIP),
.
, SIP H.323,
SIP.
(. )
, .
,
. ,
, .
* . ,
, , H.323
SIP. , H.323
SIP ;
* (.
6.3.5), .
, .
. , ,
.
. -,
, (.
);
. -,
, (.
).

. 77

, .
. ,
.
;
... ;
. - ,
. ,
- . :
. IP-,
( CIDR).
. , 7,
;
. - . ,
7, ;
,
IP- .
, ( IP ) , . .
NAT NAT-,
.
* . (. ),
, . ,
7, 7- ;
* .
, ,
:

, ;
;
;
. (.
), ,
;
. ,
. .
;
. ,
. 0 -
;
. , ,
.
, ,
;
. A-
;
(FXS- ) ,
, , .
-
( ) , .
. 78

. -
;
. -
.
.
.
, :
()
. ,
. ,
;
- ()
- (,
).
(,
- ),
. ,
;
G.711
-, ,
G.711 c . G.711
;

.

,
, .

.
. -.
. .
ConfId ConfId ,
CDR- Conference ID ConfID,
ConfID,
.

. - ,
, . ,
- . -:
. IP-, .
, 7, ;
. H.323
H.323. , 7, ;
. SIP
SIP. , 7, ;
* . (. ),
. ,
7, 7- ;
*
, ,
.
.

. 79

* . (.
), ,
;
* .
, ,
.
, (
) ,
.
-
.
, ;
, .
, , ,
.
, .
;

. .
. ,
. .
;
. ,
. 0 ;
. . ; "From" ,
From INVITE, , IP . ,
. , /
From anonymous. :
From: <sip:anonymous@123.123.123.123:2345;user=phone>

, SIP, SIP-T
H.323 SIP.
.
, :
()
. ,
. ,
;
- ()
- (,
).
(,
- ),
. ,
;
G.711
-, ,
G.711 c . G.711
;

.

. 80

,
, .

.
. -.
. .


, .
,
:
,
( ,
);
( ,
);
, ;
, keepalive ( );
. IP-,
. ;
NAT,
NAT;
,
.
. , . , . ,
,
, . .
, SIP -.
, REGISTER INVITE
UDP-.
, INVITE
. ,
, SIP, SIP-T H.323 SIP.
,
.
(
) ..


. A-
.
, ;
. -
;
,
. -.
. A-
.

. 81

;
. -
;
, -
. -.

. -
, ,
. , -
. -:
. alerting, , ,
ALERTING , -
ALERTING, ;
. alerting ,
, ALERTING
, ;
. - ,
( ) -;
. ,
, ;
. (.wav ),
. , ,
(Media node);
. ,
RTP () .
(c
CONNECT). ,
RTP-;
. CallProceeding,
.
, ,
,
, .
,
CallProceeding, , CallProceeding
Releaseomplete,
( ) ,
CallProceeding. ,
ENUM ;
,
H.323.
- - ,
, FastStart
,
. ,
ENUM ;
* . DTMF H.323 DTMF
H.323. , H.323
H.323 SIP;
. FastStart
FastStart :
FastStart;
. 82

FastStart;
, ENUM
;
. FastStart Call Proceeding, Alerting/Progress, Connect
, FastStart
. ,
ENUM ;
. Tunneling -,
(tunneling);
. H.245 ,
.245
:
Call proceeding
Alerting/Progress
Connect
, ENUM
;
.
.

.
. - ISUP- ,
SRC alias ISUP, SIP.
,
SIP-T;
. - ISUP- ,
DST alias ISUP, SIP.
,
SIP-T;
. - ISUP- ,
Diversion ISUP, SIP.
,
SIP-T;
. . ISUP-
, CPC ISUP,
SIP. ,
SIP-T;
ACM - ,
ISUP- ACM.
. - 20000 30000 ( - 30000
). ,
SIP-T;
, Echo control device
IAM, ACM, CPG CON. , ,
false. ,
-. ,
SIP-T;
. -
, .
, -

. 83

. -:
* . . -
, :
.
Unknown
International number
National number
Network specific number
Subscriber number
Abbreviated number
* . . -
, :
.
Unknown
ISDN telephony numbering plan (Recommendation E.164)
Data numbering plan (Recommendation X.121)
Telex numbering plan (Recommendation F.69)
National standard numbering plan
Private numbering plan
* . . -
, :
.
Unknown
International number
National number
Network specific number
Subscriber number
Abbreviated number
* . . -
, :
.
Unknown
ISDN telephony numbering plan (Recommendation E.164)
Data numbering plan (Recommendation X.121)
Telex numbering plan ((Recommendation F.69)
National standard numbering plan
Private numbering plan
* . DTMF H.323 DTMF
H.323. , H.323
H.323 SIP;
. FastStart
FastStart :

. 84

FastStart;
FastStart;
FastStart,
, slowstart .
. Tunneling -,
(tunneling);
. H.245 ,
.245
:
Call proceeding
Alerting/Progress
Connect
* . presentationIndicator . presentationIndicator
SETUP. presentationIndicator Q.931
Q.951. :
.
Octet 3a not present
Presentation allowed
Presentation restricted
Number not available due to interworking
* . screeningIndicator . - screeningIndicator
SETUP. screeningIndicator Q.931
Q.951. :
.
Not screened
User-provided, not screened
User-provided, verified and passed
User-provided, verified and failed
Network provided
,
SIP:
* . - ,
:

* . SIP
:
RFC 3325 PassertedID (
http://www.ietf.org/rfc/rfc3325.txt);
Cisco RemotePartyID (

http://www.cisco.com/en/US/producTS/sw/iosswrel/ps1839/
producTS_feature_guide09186a0080110bfb.html#wp1050768).
.
, ,
, .

. 85

IP-, , IP-
, .
;
. H.323 , ,

SETUP;
. SIP , ,

INVITE;
. Connect, ,

Connect;
. ,
RTP () .

(c CONNECT). ,
RTP-. ,
. -
, ;
.
, .
, ,
. . .

,
. ,

. Shift Ctrl,
.

;

. .
, .
. ,
.
* . .
:
.
, H.323
( H.323 )
7 ( 7 );
SIP ISUP OLI isup-oli
From SIP. OLI;
SIP CPC cpc
From SIP. OLI.
The Calling Party's Category tel URI Parameter;
SIP Category
Category SIP. CPC.
SIP CPC-RUS cpc-rus
From SIP/SIP-T.
SIP CPC-NUM -
From SIP. CPC.
. Display-Name . ,

. 86

Display-Name .
ACM No indication
ACM DC=00 I=1.
7;
SIP-T ,
SIP-T. SIP-T
, SIP. ,
SIP-T;
Transmission Medium Requirement , Transmission
medium requirement IAM. 0-3 ( - 0).
,
SIP-T;
- ,
- ST (#, 0x0f), - . -,
. ,
SIP-T;

LAR
LAR (H323) H.323,
. ;
;
LAR (H323) H.323,
. ;
;
LAR (SIP) SIP,
. ;
;
LAR (SIP) SIP,
. ;
;
LAR (TS) ,
. ;
;
LAR (TS) ,
. ;
;
LAR (TM) ,
. ;
;
LAR (TM) ,
. ;
;
LAR (CLASS 5) ,
.
; . ;
LAR (CLASS 5) ,
.
; .
;
RADIUS
. 87

. RADIUS , RADIUS-
. ,
;
. RADIUS , RADIUS-
. .
RADIUS-
;
. RADIUS , RADIUS- ,
.
RADIUS , ,
RADIUS, .
IP-,
. $ani$,
-. $ani$ , ;
RADIUS , ,
RADIUS, .
xpgk;
User-Name User-Password, RADIUS
RADIUS
RADIUS


RADIUS =

User-Name User-Password

.

RADIUS = $ani$

User-Name User-Password

.

RADIUS =

User-Password xpgk.

RADIUS = $ani$IP

User-Name IP.

RADIUS = IP

User-Name
.

IP-

RADIUS =
User-Name

RADIUS . UserPassword (),


RADIUS = *
.
SIP UserPassword ,
Digest-Realm, Digest-Nonce, Digest-URI, DigestMethod, Digest-Response, Digest-Username,
UserName.
H.323
CHAP User-Password
, CHAP-Password
CHAP-Challenge.
RADIUS = User-Name User-Password

RADIUS

RADIUS .

. 88

RADIUS
RADIUS

RADIUS =

RADIUS =

User-Name
.

RADIUS =

User-Password xpgk.

RADIUS = IP

User-Name
.

IP-

IP-

RADIUS
User-Name

$ani$
RADIUS ,
$ani$ -
(
. -).
RADIUS = $ani$IP

User-Name

RADIUS ,
$ani$ -
(
. -). IP
.

RADIUS = User-Name User-Password

RADIUS

RADIUS .
RADIUS =
. "Telephony" h323-call-type "h323-calltype=VoIP" "h323-call-type=Telephony" ;
Cisco-NAS-Port ( )
VSA- Cisco-NAS-Port Accounting-Stop.


.
;
. ,
;
.
; ;
(SIP) - SIP,
. ;
;
(TS) - ,
.
; ;
(TM) - ,
.
; ;

. 89


, .
, :
. ID ,
ARQ/LRQ , (gatekeeper);
. (gatekeeper);
. , ,
, ACF/LCF
, (gatekeeper), ,
(gatekeeper);
. IP- ,
CDR
(gatekeeper), ;

SIP
, SIP.
,
SIP:
SIP <IP:>;
SIP,
,
INVITE, ;
. IP- SIP , CDR

SIP, ;
CDR - , ,
, CDR-
- ,
. ,
.

,
. .
. .
- .
, .
, .
,
;
. -
.
RADIUS- -
RADIUS-.
;
-
,
.
.

. 90

,
. ,
|;

, .
, |.
, :
RADIUS -,
RADIUS- ( xpgk-ep-number). ,
, ;
, RADIUS - RADIUS ( xpgk-ep-number), , ;
C RADIUS, -
, -,
RADIUS- ( xpgk-ep-number).

:
ACM No indication
ACM DC=00 I=1.
7;
. . ,

. ,
.
SIP ,
, SIP,
OPTIONS ,
. ,
SIP, SIP-T H.323 SIP;
SIP , OPTIONS
. , SIP,
SIP-T H.323 SIP;
H.323 TCP , TCP-
,
. , SIP, SIPT H.323 SIP.
,
(). ,
. :
0x0001 SIP- 180, .. SIP 183;
0x0002 DTMF INFO, RFC2833;
0x0008 H.323 (Vocaltec), CISCO;
0x0010
Alerting.
0x0040 RFC5347 2 -.
, T.38 2 m= SDP.
0x0080 SIP- 100 INVITE.

. 91

0x0100 - -
, RTP-,
.
0x0200 MSD TCS.
0x0400
(inband DTMF) .
0x0800 - TimeStamp RTP.
0x1000 - PRACK SIP 100rel. ,
PRACK , ,
PRACK. SIP-T
.
0x2000 - RTP-.
0x4000 - SIP OPTIONS TCS .
.
ENUM- ENUM-,
, .
ENUM-, (.
ENUM-).
,
. ,

. Shift Ctrl,

, ENUM.
ENUM-. ENUM- ,
. ,
.
,
ENUM-.
ISUP SIP-T ISUP SIP-T,
. RFC 3204 Q.1912.5 (. 5.4.1.2);
payload type . - , ,
H.323, (payload type)
, .
SIP Reason
SIP Reason:
SIP Reason
;
Q.850
SIP Reason Q.850;
Q.850
Q.850;

Reason

Reason Reason.
Q.850 .
Q.850, SIP-T.
SIP Q.850 SIP;
ISUP Q.850 ISUP;

. 92

IP ToS RTP- Type of Service RTP-,


. 0 255.
H.245 TCS -
, TCS ( , )
- , H.245 .
, ,
H.323 H.323 SIP;
ISUP- T6 - RES ( )
SUS ( ), 90 180 ,
- 180. ,
, SIP-T;
CauseLocation . REL - CauseLocation,
REL. Q.850.
- - RLN. ,
, SIP-T;
, .
(ID),
.
,
.

6.2.2



, (.
. ).

.

. 93

(,
*, ):
- , ;
* ;
,
.
;
... ;
* ,
.
,
,
;
* ,
, ;
* ,
, ;
,
, ;
. ,
.
, , ;
. ,
keep-alive ( ).

. 94

,
, ;
. . IP-,
.
. .
, ;
. NAT,
NAT.
NAT, , ;
, .
(ID),
.
,
.

6.2.3

7-,
.
.


(,
*, ):
* , system.conf;
7-, 7,
ss7zone. web-
(, )
,
.
, OK.

. 95

6.2.4

. ,
, -
.


(,
*, ):
* ;
* ,
-;
(VAD) -,
(VAD);
* ,
;

. 96

,
;
(payload type) (dynamic
payload type), 96 127;
,
.
, .
8

g.729

speex

G.729 plain

Annex A

G.729a

1, 2, 3, 4, 5, 6, Speex
The Speex Codec Manual.

Perceptual Enhancement

VBR

Variable Bitrate

Speex
The Speex Codec Manual.

Speex
The Speex Codec Manual.
ilbc

amr

30

iLBC-13k3

20

iLBC-15k2

4.75, 5.15, 5.9, 6.7, ,


7.4, 7.95, 10.2, 12.2
(
/),
.
3GPP TS 26.073 AMR speech Codec.

Fring Fring.
RFC 3267.

. - , , ,
, ,
. , .
G.729

. 97

, .. G.729A,G.729AB, G.729B.
, OK. .
,
.

6.2.5


,
.


(,
*, ):
* ;
,
.
, .
(ID),
.
,
(, , )
.
,
(. ).

. 98

6.2.6


(,
*, ):
* ,
( ,
, . );
* ;
,
() , ,
( ).
1. . ,
.

. 99


. . SDP rtpmap ,
, , ,
* ,
. . SDP rtpmap. ,
SDP rtpmap ;
. . SDP rtpmap mime type,
, * ,
, , SDP rtpmap mime
type . . . SDP rtpmap
, , ,
, , SDP rtpmap ;
. . SDP fmtp - ,
, , ,
* ,
. . SDP fmtp. , SDP
fmtp ;
. . SDP fmtp
( ; ),
, * , ,
, SDP fmtp .
. . SDP fmtp ,
, , ,
, SDP fmtp ;
Python Regular Exp ression Syntax
"^" "$".
rtp map , .
, G\.729[a] ?
rtp map , G.729 G.729a, XG.729
G.729ab, .
. SDP rtpmap ,
mime type, SDP rtpmap;
. SDP fmtp ,
SDP fmtp;
, RFC 3555, , AnnexB
G.729 , G.729 p lain, G.729B.
, RFC 3555 AnnexB,
G.729B SDP f mtp ,
. . SDP fmtp.

.
, OK, .
,
.

6.2.7

CPS
CPS IP-.
.

. 100

CPS
(, "*",
):
* IP- , .
* . CPS CPS IP-.
, OK, .
,
.

6.2.8


, .
.
. .


(,
*, ):
* .
, balancing (.
).
,
;

6.3

. 101

6.3.1



,
.
( , ..), ,
.
.
, ,
, -, -,
.
, . , . -,
. .
,
.

. 102


(,
*, ):
* ;
,
;
- , ;
* ; ,
. .
, .
, .. ,
,
;
-
, .
, |;
- ,
, .
, |;
- ,

. 103

,
. , |;
. -
, .
, |.
;
. -
, .
, |.
;
-
,
. , |.
;
, .
, ;
;
- ,
.
, ; .
;
. ;
- ()
,
.
. ;
- ()
,
.
. -
;

. - () -
, -;
. - () -
, -;
, -,
. -
E.164.
-.
. .
;
. ,
;
. ,
.
;
. ,
,
. , .
* ,
. 104

:
;
,
,
. ,
, ;
,
,
.. .
,
, ,
( AGAIN gateway
MVTS).
, *
,
.
, *
.
* - ,
.
, .
- ,
.
- - ,
.
- , c
.
- ,
.

. , .
. ,
- 0:00 6:00 12:00 14:00,
0:00 6:00 12:00 14:00.
(, )
. , - 0:00
5 0:00 5 , 0:00 1- 0:00 10-
, 5 10 ,
- 1 5 .
. ,
9:00 18:00 6:00 8:00,
6:00 8:00, - 9:00 18:00.
, OK.
(ID).
,
.

6.3.2

(Dial Peers)
,
, (dial peer/DP).

. 105

(
), , ..,
, ,
, ,
.


,
,
=
, RADIUS
, (.
. ).
, , ,
, ,
(
= ), (
),
(. )

-.
,
.
-
,
. ,
.
.

. 106


(,
*, ):
- , ;
* ;
,
;
( )
, . : 0
65535. , ..
3, 9 15
, = 15. 100.
;
,
.
. .
* -
. ,
.
. .
- , .
. ,
9 (dp0 dp8). ,
.

. 107

-
-
. ,
.
. -
, . ,
|. .
. -
, .
, |.
.
* . - ,
. , ,

. ,


, . * (. )
,
, .
, .
*
:
;
,
;
.
,
;
. /

( ) -
.
, ,
.
, ,
.
,
. 108

. .
;
,
. 0 ;
. . .
. ,
;
;
... .


. -/. -
, ;

. - -
;
. - ()/. - ()
,
.


- -
. ,
|;
. -
, .
, |.
.
(RAS ),
;
,
. ;


.
, dp2 .
7910792543
dp5, dp7 dp8 ( ).

. 109

, ,
. ,
:


, ,
, . dp2
.


, .
,
, . .
;
. ,
;
. ,
.
;
. ,
, .
, .
. -
- .
, .
(NAI),

. 110

;
(NAI),
.
;
(NAI),
;
(NAI),
.
;
. ,
e ,
. , .
. ,
e ,
. , .
screeningIndicator screeningIndicator,
;
screeiningIndicator screeiningIndicator,
.
;
. screeningIndicator
, e screeningIndicator ,
. ,
.

, e ,
. ,
.

, e ,
. ,
.
. presentationIndicator
, e presentationIndicator
, . ,
.
. -
, ,
. ,
.


, ,
.
* - ,
.
, .
- ,
.
- - ,
.
. 111

- , c
.
- ,
.

. , .
. ,
- 0:00 6:00 12:00 14:00,
0:00 6:00 12:00 14:00.
(, )
.
, - 0:00 5 0:00 5 ,
0:00 1- 0:00 10- ,
5 10 , - 1 5 .
. ,
9:00 18:00 6:00 8:00, 6:00 8:00,
- 9:00 18:00.

, .
(ID),
.
,
.

6.3.3



,
.


, ,
, ,
.
:

(-)
.

,
,

(, ASR PDD), ,
, .
, (.. ,
),

. 112

:
1/(f(x)+0.00000000001),
f(x) - .
, , ,

.
, ,
. .
,
, .
9

priority

qos

. ,

, , QoS,
. - (0-100).

pdd


,
. - .

asr

().
, ,
. - (0-100).

acd

Average Call Duration. .


- .

scd

Setup-Connect Delay. SETUP


CONNECT (
CONNECT). .

cps

Calls per Second. .

maxActCalls

totalCallsDuration

normalCalls

failedCalls

totalCalls

outBytes

inBytes

actCalls

. 113


*
,
* .
* dp. + .
, Python,
. , ASR
dp.asr,
*
dp.inBytes + dp.outBytes.



.
, .

,
, ,
, .
, ,
, .

6.3.4

(DPs)
(DPs)
, (
), ,
(
= ),
.
.
. 114


.
, , #.
, -
, .
.
, .


, +
.
,
,
, ,
.

. 115

, ,
,
, , .

, .

6.4

: ,
.

6.4.1


,
.
,
.

. 116


, ,
(, *, ):
,
.
. - ,
(RAS );
7,
, .
;
,
,
. ;
* . - IP- (RAS );
- * - -
;

(. .
)
, .
, unknown,
.
.
, . ,
. unknown,
, .
, .
.
.
,
SDP rtpmap SDP fmtp. ,
SDP rtpmap SDP fmtp.
SDP rtpmap fmtp :
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=true

SDP rtpmap SDP fmtp ,


. fmtp,
SDP fmtp .
.
.
NAT-, NAT
;
. - , ;
. - ,
.
OK.
,
.

. 117

6.4.2



, .

, .
, ,
/
(. ).
7-9
.

,
.


(. ):
ID ;
- ,

. 118

;
- ,
;
- , ,
(.
. , );
- , ,
(.
. , );
(.) , , ;
. - (.) , ;
;
Conference ID ( = +
).

.
, ,
,
( ).
, ,
,
( ).


,
.
.

. 119


,
.
.

6.4.3

. 120

, ,
(. )

.

ID ;
;
/ ;
(.) IP- , ;
- , ;
, ;
ID .

.
, ,
,
( ).
, ,
,
( ).

. 121

6.5


: ,
, .
, .

6.5.1

()
() (CLASS 4)
, .
:
;
;
ID . ;
(.) IP- , ;

. 122

. . ,
;
- , ;
- , ;
ID . ;
. - (.) IP- ,
;
. . ,
;
- ,
;
-
.

,
web-.
. .

6.5.2

()
() (CLASS 4)
, . ,
.
:
Conference ID Conf ID, .
Conference ID Conf ID, .
.
ID ID - .
- .
. .
- - , .
- - , .
SETUP.
CONNECT.
. .
, .
ID ID - .
- ;
. .
- - , .
- - , .
,
web-.
. .

. 123

6.5.3

()
() .
()
, .
( ) , .
, .
:
;
;
ID . (
);
(.) IP- (
) , string://<> (
). .
. . (
);
- ,
( );
- ,
( );
ID . (
);
. - (.) IP- ,
( )
string://<> (
). ;
. . ,
( );
- ,
( );
- ,
( ).
,
web-.
. .
.

6.5.4

()
,
( ).

. 124

ID , .
, ;
;
IP- ;
:
( );
( , );
( );
( );
( ).
TTL, , ;
/, ;
, .

6.5.5

()
, .
, .
:
ID .
ID ID .
.
, .
, .
, .

6.5.6



, .
. ,
.
,
( ).
:
- , ;
,
;
- .
:
, .
, .
system.conf;
, ;
,
. 125

. 0.0.0.0, ,
.
:
, ;
,
;
,
. 0.0.0.0, ,
.
:
;
.
<Management>

(License management node) , .

<Signaling>

(Signaling node) , , :
CLASS 4 CLASS 4,
( . ()).
CLASS 5 CLASS 5,
( . ()).

<Balancer>

(.323 gatekeeper/SIP registrar/balancer)
, , :
( .
()).

<Media>
- (Media
node) , .

<Scripting>
(Scripting
node) , .
( .
()).
,
( . ()).
<Synchro>

. 126

(Synchro
node) , .
<SS7-node>
7
, , 7, ISUP, MGCP, M3UA.

6.5.7


:
- ;
- ,
;
.

6.5.8

7-
7-,
7.
:

"7-"
Call ID ;
Conference ID ( = +
);
ID ;
ID ;
ID - E1 - E1 <hw_id>-<span_id><timeslot>, <hw_id> - -, -
E1, <span_id> - E1 ISUP-, <timeslot> -
E1;
ID -,
-;
7- 7-, ( ).

. 127

6.5.9

ISUP
- E1 ISUP.
:

" ISUP"
Call ID ;
Conference ID ( = +
);
ID E1 - E1 <hw_id>-<span_id>-<timeslot>,
<hw_id> - -, - E1,
<span_id> - E1 ISUP-, <timeslot> -
E1;
ID -,
-;
ISUP <LPC>-<RPC>-<cic>-<ni>, <LPC> - (point code)
, <RPC> - , <cic> - -, <ni> -
.
- ;
- ;
- -;
(maintenance) -
maintenance oriented ;
(hardware) -
hardware oriented ;
(maintenance) -
maintenance oriented 7-;
(maintenance) -
. 128

hardware oriented 7-;


7-, -.
-
. :
- maintenance oriented;
- maintenance
oriented;
Idle
7- Reset Circuits.

6.5.10

MGCP
(endpoints) MGCP.
:

" MGCP"
ID - 7 MGCP-;
ID E1 E1, -;
ID MGCP;
MGCP;
MGCP;
Call ID ;

. 129

6.5.11

M3UA
SCTP- M3UA.

" M3UA"
:
ID M3UA SCTP- M3UA;
SCTP-;
IP- IP-
SCTP;
IP- IP-
SCTP;
SCTP- SCTP-;
SCTP- SCTP-;

6.5.12

-
-.

" -"
:
ID -;
;
- - -
;
-.

. 130

6.6

(CDRs)

CDRs ,
, , 7 30 ,
.
1000 1000 CDR-,
CDR- .
,
.
,
. , ,
CDR-. CDR
. CDR- .
, CDR-,
,
. 1
CDR-
CDR- /
.
,
, .
, .
.

. 131

(CDR)
ID ;
;

"" CDR: 1 - , 2 -
. 1, , 2,
.

. 132

, CDR- ,
:
Start CDR-, ;
Interim <> , ,
/;
Final CDR-, .
, Final.
- ,
;
- ,
;
- , ,
;
- , ,
;
- ,
;
- ,
;
(signaling node),
;
. IP- - ;
. - (.) , , ;
. - (.) , ;
. - () /, ,
;
. - (.) /,
;
(.) , ;
(.) ,
;
() / -,
;
() / -,
;
. ,
;
. ,
;
Conference ID ( = +
), ;
Call ID , ,
;
Call ID , ,
;
Conference ID ( = +
. 133

), ;
Call ID ,
, ;
Call ID ,
, ;
RAS . - (RAS
);
RAS . - (RAS );
. , RADIUS-
use_h323_ivr_in (accounting);
. - - ;
. - , ;
(DP) , ;
. . , . ,
;
;
;
;
;
. - , ;
, . -, ;
Faststart . - , -
FastStart;
Faststart . - , .
FastStart;
Tunneling . - , -
(Tunneling);
Tunneling . - , .
(Tunneling);
, ;

;
- (LAR Look
Ahead Routing), ;
SCD, SETUP CONNECT
( CONNECT);
PDD, SETUP
ALERT, CONNECT ProgressIndicator 8 (ProgressInbandInformationAvailable)
;
. -, , ;
. -, , ;
. -, , . -;
. -, , . -;
. -, ;

. 134

. -, . -;
. . -, ,
;
. . -, ,
. -;
. - ,
;
. -. ,
. -;
. -, . - -,
;
. -, . - -,
;
. -, . - -,
. -;
. -, . - -,
. -;
CDR ,
;
(CDRs)
, ,
.
Q.850 Reason SIP,
H.323-, SIP-;
. -
, ;
.
, .
( CPC OLI, ,
. )
.
From . , ,
IP- From INVITE.
. . ; "From"
.
7- . - 7-, 7;
7- . - 7-, 7;
- ;
diversion/RedirectingNumber
;
- - ;
- - ;
- - ;
- - .
- (redirecting) ;
- (redirecting) .

. 135

. . ,
.
. . ,
.
CDR-
/. CDR-,
,
, .

6.6.1


CDR
cron.
(CDR MVTS I) CSV .
CDRs
.

CDRs
:
- / ;
* , CDR.
CDR- ;
* ,
CDR, CDR- ,
web- CDR ,
;
UTC.
, CDR- ;
. 136

CDR ,
. ,

(timestamp) , , ::.
- CDR- , CDR- .
, -
, .
, = 1 , CDR = 30
, 12:00, CDR-
11:30-12:00, 11:00 12:00.
, CDR- ,
, ,
( ).
,
,
( CDR).
:
= 1 ;
CDR = 00:30:00 (30 );
= 9:00,
12:00 10:00 11:00,
, 9:00 10:00. 11:00-12:00
, .
13:00, 11:00 12:00,
11:00;
, 1 , CDR
.
.


, ,
, .
,
(/).
.


,
.

: , ,
.
* FTP;

. 137

CDR , ,
;
CDR- , www-data
Ap ache .
,
CDR-.
CDR.
: csv ( ), MVTS-1
(___1=1[]
___2=2[]... ..).

, MySQL. , %
Y-%m-%d %H:%i:%s YYYY-MM-DD HH:MM:SS;
* .
;
CDR ,
CDR .
.
.
. - CDR ;
, . -
, _1,_2 ..
. , [_] _1.csv( .txt) , [_] _2.csv( .txt) ;
IP- , IP-
, .
MVTS-1
MVTS-1. ,
.
MVTS-1;
MVTS-1. MVTS-1
;
MVTS-1. ,
MVTS-1 ,
.
CSV
CSV- csv-
( , CSV);
CSV. , ,
;
CSV. NULL \N,
;

, .
;

. 138

, .
CDR-.
, : = 111, =
222, 111 222 (
).

* (bzip2 gzip) ;

, ;
CDR ,
;
CDR- ,
, ;
,
,
. .
999999 ,
000000. .
* ,
;
,
MySQL. , %Y-%m-%d %H:%i:%s YYYY-MM-DD HH:MM:
SS. , %Y%m%d_%H%i%s. 10
.
,

%d

, (00..31)

%H

(00..23)

%i

, (00..59)

%j

(001..366)

%k

(0..23)

%m

, (00..12)

%s

(00..59)

%u

(00..53),

%w

(0=..6=)

%Y

, ,

%y

, ,

, , PDS,
P - , CDR-;

. 139

D - ( ) ,
;
S - , CDR-;
cron
, D
.
, 4-
.
FTP
FTP-: FTP CDR (,
FTP );
FTP-: FTP ;
FTP-: FTP ;
FTP. , FTP-
.
( ),
, crontab www-data
cron.
CDR . ,
- ( ).
CDR-

CDR-


(
)

cdr_id

ID

cdr_date

record_type

(100)

in_ani

(100)

in_dnis

(100)

out_ani

(100)

out_dnis

(100)

bill_ani

(100)



. 140

CDR-


(
)

.
bill_dnis

(100)

sig_node_name

(100)

src_gatekeeper_address

. (21)

- H.323

.

remote_src_sig_address

(.)

- (21)


,
7.

remote_dst_sig_address

(.)

- (21)

- (100)


IP-,

";".

remote_src_media_address .
()

-.
remote_dst_media_addres
s

.
()

- (100)


IP-,

";".
,

-.

local_src_sig_address

(.)

(21)


,
7.

local_dst_sig_address

(.)

(21)

local_src_media_address

(100)
()


IP-,

";".
,

. 141

CDR-


(
)

-.
local_dst_media_address

(100)
()


IP-,

";".
,

-.

in_leg_proto

h323- H.323
sip- SIP
sip-t- SIP-T
ss7- 7
internal-

out_leg_proto

h323- H.323
sip- SIP
sip-t- SIP-T
ss7- 7
internal-

conf_id

Conference ID

(100)

in_leg_call_id

Call ID

(100)

out_leg_call_id

src_in_leg_conf_id

Conference ID

src_in_leg_call_id

src_out_leg_call_id

Call

Call
Call

ID (100)

(100)

ID (100)
ID (100)

. 142

CDR-


(
)

src_user

RAS . -

(100)

,
.

dst_user

RAS . -

(100)

,
.

radius_user

(100)

RADIUS-

src_name

. -

(100)

dst_name

. -

(100)

dp_name

(DP)

(100)

elapsed_time

setup_time

connect_time

disconnect_time

disconnect_code

in_leg_codecs

. (100)
-

.
. 143

CDR-


(
)

out_leg_codecs

(100)

src_faststart_present

Faststart . -

0 1
,

H.323

dst_faststart_present

Faststart . -

0 1
,

H.323

src_tunneling_present

Tunneling . -

0 1
,

H.323

dst_tunneling_present

Tunneling . -

0 1
,

H.323

proxy_mode

0 1
,

lar_fault_reason

0-
1-

2-

3-LAR

4-

5-

. 144

CDR-


(
)

6-

CONNECT
7-

ISUP

8-

.
"
9-
-

,


.
route_retries

scd

SCD,

pdd

PDD,

ALERTING.

src_media_bytes_in

.
-,

-.

src_media_bytes_out


-,

-.

dst_media_bytes_in

.
-,

-.

dst_media_bytes_out

. -
,

-.

src_media_packets

. -,

-.

dst_media_packets

. -,

. 145

CDR-


(
)

-.
src_media_packets_late

. .
-,

-.

dst_media_packets_late

. .
-,

-.

src_media_packets_lost


. -

-.

dst_media_packets_lost


. -

-.

src_min_jitter_size

.
. -,

-.

src_max_jitter_size

.
. -,

-.

dst_min_jitter_size

.
. -,

-.

dst_max_jitter_size

.
. -,

-.

last_cdr

CDR

q850_reason

Q.850

in_cpc

.
.

out_cpc

. 146

CDR-


(
)

.
.
pass_from

"From" .

in_zone

. -

(100)

out_zone

. -

(100)


.
disconnect_initiator

0-

1-
2-

diversion

in_ani_type_of_number

(100)

-1-

0-Unknown
1-International
number
2-National number
3-Network
number

specific

4-Subscriber number
6-Abbreviated
number
,

.
in_dnis_type_of_number

-1-

0-Unknown
1-International
number

. 147

CDR-


(
)

2-National number
3-Network
number

specific

4-Subscriber number
6-Abbreviated
number
,

.
out_ani_type_of_number

-1-

0-Unknown
1-International
number
2-National number
3-Network
number

specific

4-Subscriber number
6-Abbreviated
number
,

.
out_dnis_type_of_number -

-1-

0-Unknown
1-International
number
2-National number
3-Network
number

specific

4-Subscriber number
6-Abbreviated
number
,

.
in_orig_dnis

(100)
-

out_orig_dnis

(100)

. 148

src_disconnect_codes

CDR-


(
)

. (100)
.

,

";".
,

dst_disconnect_codes

. (100)
.

,

";".
,

( )
CDR MVTS I CSV.
CDR MVTS-I:
:
CDR = prefix_
=
= \N
= ,
= CDR MVTS-1
======= prefix_20080118_095202.txt ========
CDR_ID="200801000000001028",CDR_DATE="2008-01-18
09:52:02",IN_ANI="3",IN_DNIS="999",
OUT_ANI="9004",OUT_DNIS="9595",BILL_ANI="9004",BILL_DNIS="9005",
SIG_NODE_NAME="\N",REMOTE_SRC_SIG_ADDRESS="192.168.130.149:5060",
REMOTE_DST_SIG_ADDRESS="192.168.130.47:1720",
REMOTE_SRC_MEDIA_ADDRESS="192.168.130.149:16386",
REMOTE_DST_MEDIA_ADDRESS="\N",LOCAL_SRC_SIG_ADDRESS="192.168.131.12:5060",
. 149

LOCAL_DST_SIG_ADDRESS="192.168.131.12:35765",
LOCAL_SRC_MEDIA_ADDRESS="192.168.131.12:12088",LOCAL_DST_MEDIA_ADDRESS="\N",
IN_LEG_PROTO="sip", OUT_LEG_PROTO="h323",CONF_ID="e5887174-94785300@192.168.130.149
",IN_LEG_CALL_ID="e58871
74-94785300@192.168.130.149",OUT_LEG_CALL_ID="b4805c00bc76901080000017a48b7a95",
SRC_USER="",
DST_USER="\N",RADIUS_USER="\N",SRC_NAME="tel_linksys",
DST_NAME="tel_panasonic",DP_NAME="9005",ELAPSED_TIME="\N",SETUP_TIME="2008-0118 09:51:49",CONNECT_TIME="2008-01-18 09:52:02",DISCONNECT_TIME="2008-01-18 09:
52:02",DISCONNECT_CODE="262631",IN_LEG_CODECS="PCMU
(type=[audio],transport=[rtp],
vad=[disable],fpp=[0],flags=[0x0]);PCMU (type=[audio],transport=[rtp],vad=[disable],fpp=[20],flags=
[0x0]);",OUT_LEG_CODECS="\N",SRC_FASTSTART_PRESENT="0",
DST_FASTSTART_PRESENT="\N",SRC_TUNNELING_PRESENT="1",
DST_TUNNELING_PRESENT="\N",PROXY_MODE="1",LAR_FAULT_REASON="\N",
ROUTE_RETRIES="2",SCD="\N",PDD="\N",PDD_REASON="\N",
SRC_MEDIA_BYTES_IN="10568",SRC_MEDIA_BYTES_OUT="90123",
DST_MEDIA_BYTES_IN="90123",DST_MEDIA_BYTES_OUT="9160",
SRC_MEDIA_PACKETS="65",DST_MEDIA_PACKETS="453",
SRC_MEDIA_PACKETS_LATE="0",DST_MEDIA_PACKETS_LATE="0",
SRC_MEDIA_PACKETS_LOST="0",DST_MEDIA_PACKETS_LOST="0",
SRC_MIN_JITTER_SIZE="0",SRC_MAX_JITTER_SIZE="0",DST_MIN_JITTER_SIZE="0",
DST_MAX_JITTER_SIZE="0",SRC_CENTREX_ID="3",DST_CENTREX_ID="3",
COOKIE="84168533",DVO="0",CALL_TYPE="\N",USER_BILLING_ID="29",
USER_LINE_NAME="office phone"
======= prefix_20080118_095202.txt =========

CDR CSV :
:
CDR = prefix_
=
= \N
= ,
= CSV
======= prefix_20080117_134728.csv =========
cdr_id,cdr_date,in_ani,in_dnis,out_ani,out_dnis,bill_ani,bill_dnis,sig_node_name,
remote_src_sig_address,remote_dst_sig_address,remote_src_media_address,remot
e_dst_media_address,local_src_sig_address,local_dst_sig_address,local_src_media_address,
local_dst_media_address,in_leg_proto,out_leg_proto,conf_id,in_leg_cal
l_id,out_leg_call_id,src_user,dst_user,radius_user,src_name,dst_name,dp_name,elapsed_time,
setup_time,connect_time,disconnect_time,disconnect_code,in_leg_code
cs,out_leg_codecs,src_faststart_present,dst_faststart_present,src_tunneling_present,
dst_tunneling_present,proxy_mode,lar_fault_reason,route_retries,scd,pdd,p
dd_reason,src_media_bytes_in,src_media_bytes_out,dst_media_bytes_in,dst_media_bytes_out,
src_media_packets,dst_media_packets,src_media_packets_late,dst_media_
packets_late,src_media_packets_lost,dst_media_packets_lost,src_min_jitter_size,src_max_jitter_size,
dst_min_jitter_size,dst_max_jitter_size,src_centrex_id,dst
_centrex_id,cookie,dvo,call_type,user_billing_id,user_line_nam
200801000000000527,2008-01-17
13:47:28,5488,5223,5222,5489,5222,5223,
. 150

\N,192.168.131.134:5061,192.168.131.135:5061,192.168.131.134:5004,192.168.131.135:41000,
192.168.131.12:5060,192.168.131.12:5060,192.168.131.12:10048,192.168.131.12:10060,sip,sip,100c7ad88683a8c0-13c5-3e1243f1-78704c0b-3e1243f1@meranetworks.ru,1
00c7ad8-8683a8c0-13c5-3e1243f1-78704c0b-3e1243f1@meranetworks.ru,
de5e90005b5c8f1080000017a48b7a95@192.168.131.12,,\N,\N,Moolio's
AudioCodec,Moolio's D-Link,5 223,50631,2008-01-17 13:47:05,2008-01-17
13:47:08,2008-01-17 13:47:59,65546,PCMA (type=[audio], transport=[rtp],
vad=[disable], fpp=[0], flags=[0x0]);PCMA (t
ype=[audio], transport=[rtp], vad=[disable], fpp=[20], flags=[0x0]);,PCMA
(type=[audio], transport=[rtp], vad=[disable], fpp=[0], flags=[0x0]);PCMA
(type=[audio], transport=[rtp], vad=[disable], fpp=[20],
flags=[0x0]);,0,0,1,1,1,\N,0,1043,449,
\N,185204,115200,35324,49800,997,590,0,0,163,10,0,74,0,5,3,3,19199054,0
,\N,8,Moolio 5222 UL
======= prefix_20080117_134728.csv =========

6.6.2

CDRs
CDRs CDR
,
.
* *
. * ,
CDR-.
, ,
( * ). .

(. ).
.

6.6.3

CDR
CDR- .

. :
;

/var/www/rtu/extensions/cdr_export/process.d
, .
CDR-
,

/var/www/rtu/extensions/cdr_export/process.d.
.
, STDIN ( CDR
),
, STDOUT.
(
CDR-), FTP- web-.
,
web-.
/var/www/rtu/extensions/cdr_export/process.
d/readme.txt. Perl /var/www/rtu/
extensions/cdr_export/process.d/disconnect_code.pl.

. 151

6.7

6.7.1


.
( > )
* , ()
, , ,
.


,
CDR- .
-

. ,
.;
* ,
. . ,
;
. 152

* / - ,
;
. (LIKE) -
;
(LIKE)
;
. (LIKE)

;
LIKE ,
mySQL.

;
- ,
. (. 6.8.7);
OK.

.


.
1. (CDRs) ;
CDR-
CDR : 1 , 2 . .
2. , - ,
, ,
(LIKE), .
(LIKE) . (LIKE) ;
3. ,
.
. ,
.
, ,
. ,
.
. , ,
.
, ,
;
4.

. 153

:
(
), ;
(.. ).
CDR- CDR ,
;
;
, ,
(. 6.8.3) ,
.
(
);
- ;
- ;
- (
);
(, )
, , .
( ,
) ,
.
ASR (), % ,
(. ASR(MVTS));
. ASR (), % ,
(. ASR());
ASR (), % ,
, (. ASR(MVTS));
. ASR (), % ,
, (. ASR
());
ACD, (. ACD);
. PDD, PDD, PDD > 0;
. SCD, SCD, SCD > 0;
Setup time ;
Setup time ;
CDR ID
;
CDR ID
.
, .

.

. 154

6.7.2


.
./. ( -> ), 1.
,
( . ). ./
. 0, .
.

. 155

, .


,
:
- ;
- ;
,
;
(.. , ).
,
, .
,
, .
.
. ,
, ,
.
, :
ASR , MVTS;
ASR (Std) ,
;

. 156

ACD ;
PDD
, ;
SCD SETUP CONNECT
;
QoS ;
CPS ;
Calls .
, ,
.


.

.

.
OK.
, ,
.
.
,

, , ,
, CPS
.
, ASR DP1
1 2,
ASR CPS 1
2. , ASR 1 80 ASR 2 40, CPS 15 5
., , ASRavg :
ASRavg = (ASR1 * CPS1 + ASR2 * CPS2)/(CPS1 + CPS2),

ASRavg = (80*15 + 40*5)/(15+5) = 70

. 157

CPS Calls,
CPS Calls
.
,
.
.
, ,

6.8

(
, ),
, ENUM DNS,
.

6.8.1



, 4.

. 158


,
, :
. ,
. , ,
, , RADIUS- ,
( 0
);
- , ,
, .
,
.
./. c ,
;
- . . ,

: ASR (MVTS), ASR (std), ACD, PDD, SCD, CPS QoS;
CDR : 1 , 2 .
(CDR). 1
( SETUP), 2
;
- (
), ;

( )
.
, ,
;

,
( , );

. 159


, (
, );

, ,
. : 1 , 0 .
1.;
- CDR CDR-,
. CDR-
, , CDR-
. ,
(
, . ).
- CDR , CDR-
, , ,
CDR , (
).
CDR- CDR- .
CDR-, , .
0.
CDR.
/
Interim- RADIUS-/ CDR-.
CDR- ,
CDR-.
. . ,

.
. ,
.
:
N ,
, N .
. ;
.
( ) N ,
, N . .
;
. /
/ ( )
N , , N
. . .
EMA . . -
,
. ,
5 , ,

. , ,
, + , SETUP +
5 , .
(EMA)
:

. 160

- .
- .
- .
- , .
- EMA, EMA .
. .
, .
. , -
,
. . ,
5
, , 5
.
.
- ,
,
, ,
.

6.8.2

" . "
.
, web-:
(1 , 2 );
- ( - ).
. , 10, 20, 30, 50.
- - ,
;
. 161

. - ,
. ,

.
, (,
, CDR ). ,
General error: 126 Incorrect key file for table;
CSV ,
;
CSV
, , ;
CSV
;
CSV ,
, , ;
./. ,
web-. - 0/1. 0
, 1 ;
./. ,
web-.
- 0/1. 0 , 1 ;
()
. , ,
, , ;
./. ,
. - 0/1. 0 , 1
;
()
. , ,
, , ;
BOM 1,
BOM (Byte Order Mark),
.
1,
, , ,
;
./. web-. 0
, 1 ;
,
. :
UTF8
UTF16
UTF32
CP1251/WINDOWS1251
KOI8R
BOM 1,
BOM (Byte Order Mark),
.

. 162

. .

". - "
, ,
OK. , , .

:
- ,
( , ,
),
.

6.8.3


:
,
;
, ;
;

. 163

;
,
ASR. , ,
,
. -
OK;
. H.323/SIP ,
, ,
. ,
H.323 .
H.323, , SIP
. SIP;

6.8.4

ENUM-c
ENUM- ENUM, .

ENUM- ENUM,
DDDS (Dynamic Delegation Discovery System) .164
(URI).
(URI) IP- DNS.
, ENUM-
. ENUM
RFC 3761.
ENUM-
SIP.
,
.

ENUM-

. 164

(
, *):
* ENUM-;
,
;
-, ;
* IP- ;
.
, .
(ID),
.
ENUM- (. ).
,
.

6.8.5

DNS-
DNS- ,
(URI), ENUM-.

,
.

DNS-
DNS- OK.
: * (, DNS ) * , '*'.
DNS .
.

. 165

- , .
,
.

6.8.6

.
.

* , ,
. ID .

6.8.7



: , .
,
.


(
*):
* ;
* ;
.
;
. ,
.
, . .

6.8.8

. 166


:
, ;
(CPC)
(OLI) ;
;
.

6.8.9



(CPC) (OLI) .


:
(CPC)
(OLI) ;
;
. CPC OLI,
, CPC. ,
, . CPC
.
. CPC OLI,
, CPC
.
. OLI CPC,
, OLI. ,
, . OLI
.
. 167

. OLI CPC,
, OLI
.
,
( , ..)
(, CPC),
(, OLI).

6.8.10



(capacity group).


( )
(gateways)
( / dial peers). ,
,
, .
, A B 10 ,

15 . B A_B
() 15
.

,
,
, A_B, .

, , , .

A
, A_B, ,
. 168

A_B_C, A_B
.
.


(,
*, ):
* ;
,
;
;
,
0 - .
.

6.8.11


,
. , , -
- ( . ), - ( .
), - (
). ,
, /
, .


* ;
* .
0 - ;
- -,
- -
, - -
.
. 169

6.8.12


,
.
, .


.

, >
( ).
, , ,
>
( ).
.

6.8.13

RADIUS-
RADIUS-.
RADIUS-
RADIUS (. RADIUS).

RADIUS-
:
ID ( );
, : < >-< >, :
:
o rfc RFC2866;
o cisco - Cisco;
o mvts - ;
- ; , RFC2866,
. 170

Cisco.
;
,
(9 = CISCO). , ,
RFC 2866;
(string , integer ..);
() ;
.
RADIUS- RADIUS
RADIUS- (
, ),
-> RADIUS- .

RADIUS-
RADUIS OK
RADIUS- .

RADIUS-

RADIUS .
, RADIUS .
, RADIUS.

6.8.14

CDR
CDR-, .
.

. 171

" CDR"
.
.
mvts_cdr_<><>.
- .
.
.
:
;
;
3 ;
mvts_cdr_000000, CDR-.

CDR-.
CDR- (. ) ,
. , :
( , 05).
CDR- = 2
, ( 03) , .
CDR 0.
, CDR- .
CDR (
, ),
CDR.

6.8.15


,
. ,
.
.

" "
(
*):
* - , .
, .
* - ( ).
* - , ,
.
. 172

.
, . .

. ,
:

6.9

,
web-.

6.9.1


:
. 173

ID ;
, ;
, ;
. . , ;
,
;
IP- , ;
.
, ,
.
, ID .

6.9.2


,
:
ID ( ) ;
ID , ;
;
, ;
, ;
;
;
, ;
.

. 174

6.10

,
csv- .

, ,
.

. 1
:
* ,
;
* ,
;
*
.

web-. ,
, ,
web-.

. 175

,
.

,
web- (
web-, ), ,
(, ID), - .
, (. ).
* ,
csv-;
* - ,
csv-;
, csv- .
, ;
* csv-;
* , csv-.
, (,
(DPs)) ;
,
, .
;
* ,
csv-. , ,
, , ,
. , csv-, ;
, , csv-,
.
, .
, (, ID),
.

.

. 2
,
.


. 176

,
, , ,
.
, ,
. ,
* .

. 177


.
:
.
.
.
.
. .
. -, csv, , -,
, .

. .
. ,

. 178

. 3
, ,
1. , ,
,
, .
,
. ,
.
,
. , ,
.

. 179

6.11

RADIUS

RADIUS ,
RADIUS- ,
RADIUS.
RADIUS-
RADIUS-
.

6.11.1

RADIUS
RADIUS ,
RADIUS-.

RADIUS
H323_IVR_IN UserName 1
H323_IVR_IN, RADIUS-,
, UserName ;

. 180

1
RADIUS-,
RADIUS-;
H.323- 1,
H.323-, RADIUS-,
RADIUS-
*. RADIUS-,
;
Service-Type ,
Service-Type RADIUS-. 0,
. RFC 2865.
Framed-Protocol ,
Framed-Protocol RADIUS-. 0,
. RFC 2865.
RADIUS-
, RADIUS-. .
RADIUS-.
h323-conf-id Conf ID,
h323-conf-id, RADIUS-. 1 Conf ID,
. Conf ID (,
SIP), h323-conf-id . 0
Conf ID, .
1
RADIUS- ( , * ACCT.
START/STOP , .
RADIUS) . RADIUS- .
RADIUS- ,
(accounting)
RADIUS- (. RADIUS-).
Digest : 0 - draft-sterman-aaa-01, 1 - draft-sterman-aaa-04
Digest- (. -), : 0
draft-sterman-aaa-01, 1 draft-sterman-aaa-04.
Interim- RADIUS- , RADIUS ( , ).
- 0,
. 1,
. 0.
1
.

6.11.2

RADIUS-
RADIUS ,
RADIUS,
, .

RADIUS-

. 181

( RADIUS )
.

RADIUS-
(,
*, ):
* RADIUS-;
,
;
- , ;
* .
RADIUS, ( 2 ,
1). RADIUS,
. ,
,
;
. -
RADIUS-;
. -
RADIUS-. , (.
, - ( SETUP -
)), ;
. ,
,
RADIUS- ,
RADIUS- .
. . . -
(accounting) RADIUS-;

. 182

. -
RADIUS, ;
(shared secret)
RADIUS-;
.
RADIUS-,
.
/
.
.
, ( )
RADIUS-.
;

RADIUS-


. /:

IP- RADIUS- ;
- RADIUS-.

. . .:
. . RADIUS-,
(accounting);
. . RADIUS- ;
, .

(ID), .
,
.
RADIUS- ,
RADIUS- ( , RADIUS- )
RADIUS- ( ,
CISCO RADIUS-

. 183

CISCO VSA) .

RADIUS- 60 ,
. 60

,
. ,
, .
, RADIUS- ,
5
TMngr timeout.
RADIUS- .

6.11.3

RADIUS
,
RADIUS-.
RADIUS 140
RADIUS.

RADIUS
,
.

. 184

RADIUS
, , ,
, .
:
ID ( );
, : .
(rfc),
RADIUS- (mvtsxpgk, mvts), (cisco).
.
;
,
(9 = CISCO). , ,
RFC 2866;
(string , integer ..);
;
Python, ,
.
.

alertingTime

ALERTING.


ALERTING.

. 185

ani

-.

-

.

aniADPT

-

.

aniAGT

- .

aniAPT

-
.

aniBasic

-,
.

aniBill

- ,
.

- ,

.

aniIsup

- ISUP (SIP-T).

aniNumberPlan


(numbering plan) .

aniPresentation

Presentation indicator
-.

aniScreening

Screening indicator .

aniSorm

-, .

-,
.

aniTypeOfNumber

-.

-.

callId

Call ID .

code

codecs

confId

Conf ID .

connectTime

CONNECT.


CONNECT.

cpc

creationTime

disconnectInitiator

disconnectTime

. 186

dnis

-

.

dnisADPT

-

.

dnisAGT

- .

dnisAPT

-
.

dnisBasic

-,
.

dnisBill

- -
.

.

dnisIsup

- ISUP (SIP-T).

dnisNumberPlan


(numbering plan) .

dnisSorm

-, .

-,
.

dnisTypeOfNumber

-.

-.

dpName

dpID

ID .

faststart

,
faststart .

gatekeeperAddress

gwAddress

-.

gwID

ID -.

ID .

gwName

-.

,
.

h323Id

"H323-ID" .

h323IvrIn

, H232_IVR_IN
User-Name.

larFaultReason

. 187

localSrcSigAddress

outAniTypeOfNumber

-.

packetType

: 1=START, 2=STOP.

: 1=START,
2=STOP.

proto

radiusForceOriginateTelepho
ny

, ,
"h323call-type"

"Telephony".

radiusNasPortName

RADIUS-.

radiusUser

RADIUS.

remoteMediaAddress,
rtpAddress

-
-.

remoteSrcSigAddress

routeNum

routeRowId

setupTime

SETUP.


SETUP.

sigAddress


. .

signalingSrcSigAddress

,
.

,

.

sigNodeName

tsCallId

Call ID, .

tsConfId

Conf ID, .

user

zone

pdd

PDD.

radiusPassword

RADIUS-.

inOrigDnis

(

inLeg).

. 188

, ,
. ,
inLeg. () outLeg. ().
ani:
( answer)
ani -, .
( originate)
ani -,
.
,
, :
o inLeg.ani ;
o outLeg.ani .
.
RADIUS-.
,

toVsaTimeFormat
(setupTime,
"UTC")

toVsaTimeFormat


VSA time format: 14:09:27.861
UTC Wed Oct 01 2008.

: UTC
SYSTEM.

toCiscoConfId

Conf ID

Conf ID
toCiscoConfId
Cisco conf id: 00000000 (inLeg.confId)
00000000 00000000 00000000

toCiscoCallId

Call ID

Call ID
Cisco call id: 00000000
00000000 00000000 00000000

getIP

IpAddress:port

IP: getIP(gwAddress)
127.0.0.1:1234
127.0.0.1

reasonToH323

H323.

reasonToH323
(code)

ipFromBin

Ip-address

IP-
127.0.0.1

ipFromBin(ip)

replaceAniIn

$ANI$ replaceAniIn(user,

ani)
.

str

Str(setupTime)

toSeconds

toSeconds
(disconnectTimeconnectTime)

toCiscoCallId
(callId)

. 189

toCiscoReleaseSourc
e


Cisco:

toCiscoReleaseSou
rce(inLeg.
disconnectInitiator
,proto)


,
:
Internal call-control application
(Tcl or VoiceXML script) -
7;


7,

: Calling party
located in PSTN - 1;


7,
:
Calling party located in VoIP
network - 2;


7,
:
Calling party located in PSTN
- 3;


7,

: Calling party
located in VoIP network -
4;

6.11.4

RADIUS-
RADIUS-
, RADIUS-.

. 190

" RADIUS-"
RADIUS-
.

.
.

/
.
,
RADIUS, , .
,
.
,
.

.
.

,
(
.
, OK.

6.11.5

RADIUS-
RADIUS-
RADIUS ,
,
.
RADIUS. 191

.
(ID)
RADIUS- RADIUS.

RADIUS

Standart , 1.5.2 ;
Cisco PGW 2200 ,
; Soft switch Cisco PGW 2200.
RADIUS-,
.

RADIUS-
:
* RADIUS-.
* ACCT.START/STOP (accounting),
RADIUS .
. , ,
,
(. . RADIUS-):
. RADIUS- ACCT.START/STOP,
;
. RADIUS- ACCT.START/STOP,
;
. . RADIUS- ACCT.START/
STOP, ;
. ACCT.START/STOP,
,
, RADIUS-:
:

h323-gw-id

ID

. 192

h323-gw-address

IP-
()

h323-remote-id

ID

h323-remote-address

IP- (.)

h323-gw-id

ID

h323-gw-address

IP-
()

h323-remote-id

ID

h323-remote-address

IP- (.)

. RADIUS .
, ,
RADIUS- :
Accounting START .
Accounting START . 1
Accounting STOP . 1
Accounting START . 2
Accounting STOP . 2
Accounting START . 3
Accounting STOP . 3
Accounting STOP .

(. ),
(. RADIUS-) START/
STOP- RADIUS-
:


CISCO . ,
. 193

CISCO, overloaded attribute 44.


CISCO VSA;
Accounting Boot ,
RADIUS- Accounting Boot Message,
. Accounting Boot Message
, RADIUS-,
,
RADIUS-;
ACCT.STOP - , RADIUS-
stop-, ;
START Answer (
RADIUS-) RADIUS- START
. , , START
. , ACCT.
START/STOP ;
STOP Answer (
RADIUS-) RADIUS- STOP
. , ACCT.START/STOP
;
START Originate (
RADIUS-) RADIUS- START
. , , START
. ,
ACCT.START/STOP ;
STOP Originate (
RADIUS-) RADIUS- STOP
. , ACCT.START/
STOP ;

6.11.6

RADIUS-

6.11.6.1

RADIUS
RADIUS-,
. RADIUS-
.

. 194

RADIUS-
. Custom RADIUS.
. . . Accounting RADIUS. .
RADIUS-,
.
OK.
6.11.6.2


,
RADIUS- .
RADIUS- (,
Standard) ,
1.5.2 . :
RADIUS-
. ACCT.START/STOP ,
(
RADIUS-). ,
RADIUS-, ,
.
RADIUS (ID)
RADIUS-.

. 195

, ,
RADIUS-, :
RADIUS- (. RADIUS);
RADIUS- (. RADIUS);
RADIUS-
(. RADIUS).
6.11.6.3

RADIUS
RADIUS-, ,
RADIUS RADIUS-, RADIUS-.
mvts-custom-h323-call-id.
h323-call-id,
, , Cisco.
.

RADIUS-
. mvts-custom-h323call-id.
RADIUS-.
h323-call-id.
. 1.
- .
9 (Cisco VSA).
. string.
.
toCiscoCallId,
callId, , .
, .
OK.
,
RADIUS-.
6.11.6.4

RADIUS
RADIUS- RADIUS.
. 196

RADIUS-
.

RADIUS
RADIUS-. CustomPacket.

RADIUS
. mvts-custom-h323-call-id.

OK.
6.11.6.5

RADIUS
RADIUS ,
RADIUS-,
.
RADIUS-
.

RADIUS-
. Custom-Profile.
ACCT.START/STOP
. ,
.
STOP Answer STOP Originate
Custom-Packet.
OK.
.
RADIUS

. 197

RADIUS- ID . , ID 4.

RADIUS-
OK.
,
RADIUS- Accounting-Stop h323call-id, Call ID, , Cisco.

. 198

( )

(
)

( ) CDR-
.
. ,
.
:
( ).
( ).
( ).
( ).
( ).
7 ( ).
( ).
:
.

7.1


CDR-

:

Server Load Balancing (, CISCO Catalyst 4840G)
Shared-IP,
.
,
30 . .
7,
.
,
.
CDR- ,
, , CDR.
, ,
.
CDR. ,
CDR- :
,
,
.
, CDR.

. 199

( )

7.2

C 2-

, . VoIP-
Server Load Balancing
Shared-IP ( Linux Heartbeat, .
Linux Hertbeat). 7-
7 .

2-
.
CDR-
.
CDR (. ). , ,
, , -1 -1
CDR , 1
CDR- .

7.3

4-
CDR-
.
4- ,
:

,
.
,
,
.
, ,
.
.

. 200

( )

4-
.

7.4



(.
). :
link_send_timeout "500";
link_recv_timeout "1000";
link_restore_timeout "1000";
link_reconnect_interval "200";
link_connect_interval "1000";

(controllink) .
:
, link_send_timeout,
,
.
( - ) -
( ) ,
link_recv_timeout.
,
TCP- . ,

. 201

( )

,
. , TCP-
,
.
link_recv_timeout, TCP-
, link_restore_timeout,
, link_reconnect_interval,
TCP- .
link_recv_timeout , TCP- ,


(, CDR, ..).
, link_recv_timeout
, TCP-
, link_connect_interval.

,
link_recv_timeout , ,
, .
CDR-.
CDR-
:
link_recv_timeout link_restore_timeout ().
link_restore_timeout ().

7.5

7.5.1

-
(, 1 ), ,
, ( )
( ) , 1
Phoenix.
1 . -
, ,
1,
2, 1 , 1,
link_recv_timeout link_restore_timeout.

1
1 (

. 202

( )

1), 1 -
1 2.

7.5.2


1 H.323,
, SIP (..
). SIP
, 1
. , , .

1
, 1 ,
2. 1 1
2 1 2.

, 1, link_recv_timeout
link_restore_timeout ,
1, CDR-
. SIP- BYE .

7.5.3



, ,
, CDR- .
CDR, ,
CDR.

7.5.4


H.323
, SIP/H.323, , .

, , H.323-
CDR. SIP-, 302,
. SIP-,
302, ,
, (
. , . , ),
. CDR.

. 203

( )

7.5.5

7
7 , ,
.

7.5.6



, (./.)
/ .

7.5.7



.
,
. CDR-
, .
.
.

.
( dbms_*_slave, . .
) (. ).
, ,
. CDR-
.
. ,
.

7.6

()
( USB )
.
.
.

(stand-by LMN) c USB- .
phoenix.conf, ,
phoenix.
, phoenix.conf
:
phoenix.conf:
management primary=192.168.132.1:9000 backup=122.168.132.2:9000
phoenix address=127.0.0.1:5000 timeout=7000 count=5 sleep=2000
statestore db=phoenix.db trafficlog=traffic.log
load type=management name=management-1 mode=main
...

, management-1
IP- 192.168.132.1:9000, IP- 192.168.132.2:9000
.
!
,
. 204

( )

show status (sh st.)



:
1. . USB-
;
2. (standby LMN) ,
USB-.
:
USB-;
3. (
)
, ..
USB- ;
;

.

4. 60 .
,
;
5. (
), ,

;
6. .
,
.

7.7

7.7.1

. 205

( )

7.7.2



. IP- 192.168.132.1, IP-
192.168.132.2.
.

7.7.2.1

7.7.2.1.1

phoenix.conf

management primary=192.168.132.1:9000 backup=122.168.132.2:9000


phoenix address=127.0.0.1:5000 timeout=7000 count=5 sleep=2000
statestore db=phoenix.db trafficlog=traffic.log
load type=management name=management-1 mode=main
load type=balancer name=balancer-1
load type=media name=media-1
. 206

( )

load
load
load
load
load
load

7.7.2.1.2

type=media name=media-2
type=media name=media-3
type=commandline name=commandline-1 address=127.0.0.1:7000
type=scripting name=scripting-1
type=synchro name=synchro-1
type=signaling name=signaling-1

system-1.conf

include
include
include
include
include
include

7.7.2.1.3

"/etc/mvts3g/system-1.zone.conf";
"/etc/mvts3g/system-1.balancer.conf";
"/etc/mvts3g/system-1.signaling.conf";
"/etc/mvts3g/system-1.scripting.conf";
"/etc/mvts3g/system-1.media.conf";
"/etc/mvts3g/system-1.synchro.conf";

system-1.balancer.conf

balancer
{
balancer "balancer-1"
{
common
{
loglevel "1";
};
controllink
{
address
{
"192.168.132.1";
};
port "7101";
};
ras
{
address
{
"0.0.0.0";
};
port
"1719";
gkname
"MVTS3G";
allow_md5
"yes";
allow_chap "yes";
allow_plain "yes";
};
sip
{
address
{
"0.0.0.0";
};
port
"5060";

. 207

( )

expiration "1800";
};
h323
{
address
{
"0.0.0.0";
};
port "1720";
};
};
balancer "balancer-2"
{
common
{
loglevel "1";
};
controllink
{
address
{
"192.168.132.2";
};
port "7101";
};
ras
{
address
{
"0.0.0.0";
};
port
"1719";
gkname
"MVTS3G";
allow_md5
"yes";
allow_chap "yes";
allow_plain "yes";
};
sip
{
address
{
"0.0.0.0";
};
port
"5060";
expiration "1800";
};
h323
{
address
{
"0.0.0.0";
};
port "1720";

. 208

( )

};
};
};

7.7.2.1.4

system-1.signaling.conf

signaling
{
common
{
loglevel "1";
};
h323
{
address
{
"0.0.0.0";
};
port "1721";
};
sip
{
address
{
"0.0.0.0";
};
port "5061";
};
synchro
{
address
{
"192.168.132.1";
};
port "7711";
};
signaling "signaling-1"
{
controllink
{
address
{
"192.168.132.1";
};
port "7050";
};
};
signaling "signaling-2"
{
controllink
{
address

. 209

( )

{
"192.168.132.2";
};
port "7050";
};
};
};

7.7.2.1.5

system-1.scripting.conf

scripting
{
scripting "scripting-1"
{
common
{
loglevel
};

"0";

controllink
{
address
{
"192.168.131.1";
};
port

"7710";

};
loader_path "voip2.loader";
environment
{
dbms_type_master "MySQL";
dbms_name_master "192.168.132.1@rtu";
dbms_user_master "rtu";
dbms_pswd_master "rtu";
dbms_type_slave
dbms_name_slave
dbms_user_slave
dbms_pswd_slave

"MySQL";
"192.168.132.1@rtu";
"rtu";
"rtu";

};
};
scripting "scripting-2"
{
common
{
loglevel
};

"0";

controllink
{
address
{
"192.168.131.2";
};
port

"7710";

};
. 210

( )

loader_path "voip2.loader";
environment
{
dbms_type_master
dbms_name_master
dbms_user_master
dbms_pswd_master
dbms_type_slave
dbms_name_slave
dbms_user_slave
dbms_pswd_slave

"MySQL";
"192.168.132.2@rtu";
"rtu";
"rtu";

"MySQL";
"192.168.132.2@rtu";
"rtu";
"rtu";

};
};
};
7.7.2.1.6

system-1.media.conf

media
{
media "media-1"
{
controllink
{
address
{
"192.168.132.1";
};
port "7760";
};
portrange "10000-19999";
};
media "media-2"
{
controllink
{
address
{
"192.168.132.1";
};
port "7761";
};
portrange "20000-29999";
};
media "media-3"
{
controllink
{
address
{
"192.168.132.1";
};
port "7762";
};
portrange "30000-39999";
};

. 211

( )

media "media-4"
{
controllink
{
address
{
"192.168.132.2";
};
port "7760";
};
portrange "10000-19999";
};
media "media-5"
{
controllink
{
address
{
"192.168.132.2";
};
port "7761";
};
portrange "20000-29999";
};
media "media-6"
{
controllink
{
address
{
"192.168.132.2";
};
port "7762";
};
portrange "30000-39999";
};
};
7.7.2.1.7

system-1.syncro.conf

synchro
{
controllink
{
address
{
"192.168.132.1";
};
port "7711";
};
synchro "synchro-1"
{
};
};

. 212

( )

7.7.2.1.8

system-1.zone.conf

zone
{
zone "voip"
{
"192.168.132.0/24";
};
};

7.7.2.2

7.7.2.2.1

phoenix.config

management primary=192.168.132.1:9000 backup=122.168.132.2:9000


phoenix address=127.0.0.1:5000 timeout=7000 count=5 sleep=2000
statestore db=phoenix.db trafficlog=traffic.log
load type=management name=management-2 mode=backup
load type=balancer name=balancer-2
load type=media name=media-4
load type=media name=media-5
load type=media name=media-6
load type=commandline name=commandline-2 address=127.0.0.1:7000
load type=scripting name=scripting-2
load type=signaling name=signaling-2

7.8

Linux Heartbeat
Linux Heartbeat
shared-ip.
IP-, SIP H.323-
. Linux Heartbeat
,
IP- .
.
IP- .
.
:
1. heartbeat expect :
aptitude install heartbeat-2
aptitude install expect

2. heartbeat. heartbeat
/etc/ha.d
/etc/ha.d/ha.cf ( ):
udpport 1680
ucast eth0 x.x.x.x // x.x.x.x ip
node rtu-master
node rtu-slave
logfacility local7# syslog facility
keepalive 1
warntime 2
deadtime 5
auto_failback on

, , heartbeat-
. 213

( )

eth0. rtu-master, rtu-slave hostname- ,


uname -a , /etc/hosts.
/etc/ha.d/authkeys ( )
rtu-master rtu-slave.
sha, md5,
crc. , root
( chmod 600 /etc/ha.d/authkeys)
/etc/ha.d/authkeys:
auth 1
1 crc

/etc/ha.d/haresources , rtumaster rtu-slave. / ,


/etc/init.d. /etc/ha.d/resource.d

( ) .
IPaddr IP- eth0,
.
/etc/ha.d/haresources ( ):
rtu-master IPaddr::89.175.76.155/27/eth0 restart.sh rtu-common

rtu-master - , shared ip,


89.175.76.155 - shared IP, 27 - , eth0 - ,
shared IP, restart.sh ( /etc/ha.d/resource.d/restart.
sh) - , , rtu-common .
, ( ), /etc/ha.d/
haresources :
rtu-master IPaddr::89.175.76.155/27/eth0 restart.sh

restart.sh ( chmod +x /
etc/ha.d/resource.d/restart.sh). haresources
.
,
shared ip, heartbeat.
:
restart.sh :
#!/bin/bash
case $1 in
start)
/etc/ha.d/resource.d/start_slave
exit 0
;;
stop)
echo "Hello"
;;
esac

/etc/ha.d/resource.d/start_slave (
) :
#!/usr/bin/expect
spawn telnet localhost 7000
expect {*mvts3g|> }
send "config /etc/mvts3g/system-1.conf\r"
expect {*mvts3g|> }

. 214

( )

send "quit\r"

restart.sh :
#!/bin/bash
case $1 in
start)
kill -9 `ps ax | awk '/balancer/ && $0 !~/awk/ {print $1}'`
exit 0
;;
stop)
echo "Hello"
;;
esac

3. , , heartbeat- :
/etc/init.d/heartbeat start

7.9



,
, ,
.

7.9.1

, :
1. ;
2. ( , ..);
3. ;
4. CDR, ;
5. mvts_cdr, ,
CDR.
1 2 ,
InnoDB,
MySQL.
InnoDB. mysqldump,
MySQL. mysqldump
SQL
.
, , 3 4-
, MyISAM.
. : ,
InnoDB, mysqldump, ,
, , .

(CDRs), ,
.
,
.
mvts_cdr MERGE. ,
CDR.
,
, , CDR
. mvts_cdr
. 215

( )

.
,
mysqldump.

7.9.2


/usr/
local/lib/mvtspro. ,
:
backupdb.conf - ;
backupdb-cron - Cron ( Cron,
, /etc/cron.daily, /etc/cron.hourly,
..);
backupdb.php , ;
restoredb.sh , ;
ssh_auth_keys.sh - SSH-
,
.

7.9.3

SSH.
,
( ssh/scp).
. ,
.

,
SSH . ,
root,
ssh_auth_keys.sh:
./ssh_auth_keys.sh

, ,
root:
Local user: root
RSA- root ,
:
Generating public/private rsa key pair.
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
aa:bb:cc:dd:ee:ff:aa:bb::cc:dd:ee:ff:aa:bb:cc root@db-server
IP- ,
,
:
Enter remote host: backup-server
Enter remote user: root
Copy public key to remote host
(Enter password for user spatar@ora-testing1 when asked)
...
Password:
. 216

( )

,
, :
ssh root@db-server

ssh "root" , "db-server"


IP- . ,
, , .

7.9.4


backupdb.conf.
:
host - IP- ( localhost);
user - ;
password - ;
db - ;
tmpdir - .
, ( ,
, );
desthost - IP- ,
. ,
, ,
:
#desthost=
destuser - ;
destdir - (
desthost).
, ( ,
destuser,
.) , ;
rotate destdir, .
,
. rotate,
;
backup_prefix (: backup);
backup_cdrs 1 0. ,
CDR. 1 , 0 ;
tables_no_data ,
. mvts_cdr.

7.9.5


() backupdb.php, ,
root ,
mysql, .. .
tab1.sql tab2.sql,
(CDRs) .
, , CDR.
cdr.info,
(CDRs).

. 217

( )

7.9.6



Linux - Cron. ,
, backupdb-cron /etc/
cron.hourly :
cp /usr/local/lib/mvtspro/backupdb-cron /etc/cron.hourly/

ln -s /usr/local/lib/mvtspro/backupdb-cron /etc/cron.hourly/backupdb-cron

7.9.7


restoredb.sh .
, root ,
mysql, ..
.
:
1.
2. restoredb.sh ,
. , ,
:
./restoredb.sh rtu_restored

. ,
.
.
restoredb.sh ,
, :
./restoredb.sh rtu_restored /path/to/backup

7.10

()
() ,
(master replication server)
(slave replication server), ,
.
.
,
.

7.10.1


:
1. :
a) (- /master-slave)
,
(slave server)
(master server.)
b) (- /master-master)
,
, .
2. :
a) ,

. 218

( )

() .
,
. ,
.
b) ,
,
. ( )
.
3. :
a) (row-based rep lication)
.

b) SQL- (statement-based
SQL-.

rep lication)

, ,
master-master . master-master
MySQL
(master-slave replication).
, ,
.
.

7.10.2


.

. , ,
.
.
root.
, root MySQL - ,
mysql mysqldump --p assword
. MySQL root
MySQL.
1. :
#> mysqldump --allow-keywords --triggers --routines --opt --hex-blob -databases rtu > rtu.sql

2. , ,
1, :
#> mysql
mysql> drop database rtu;

3. rtu.sql, 1, ,
SQL:
#> mysql <rtu.sql

4. repl:
#> mysql
mysql> grant replication slave on *.* TO 'repl'@'%' identified by
'slavepass';

5. slave ( , )
:
#> mysql
mysql> stop slave;
mysql> reset slave;
mysql> reset master;
. 219

( )

6. :
#> invoke-rc.d mysql stop

7. /etc/mysql/conf.d/rturepl.cnf :
[mysqld]
#
# * Logging and Replication
#
server-id = 10
#binlog-format = row
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 30
log-slave-updates
auto-increment-increment = 10
auto-increment-offset = 1
replicate-same-server-id = 0
report-host = --
replicate-do-db = rtu
replicate-ignore-table = rtu.mvts_debug_call
replicate-ignore-table = rtu.mvts_debug_call_log
replicate-ignore-table = rtu.mvts_debug_registration
master-host = --
master-user = repl
master-password = slavepass
sync_binlog = 1
slave-skip-errors=1062,1053

8. /etc/mysql/conf.d/rturepl.cnf :
[mysqld]
#
# * Logging and Replication
#
server-id = 20
#binlog-format = row
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 30
log-slave-updates
auto-increment-increment = 10
auto-increment-offset = 2
replicate-same-server-id = 0
report-host = --
replicate-do-db = rtu
replicate-ignore-table = rtu.mvts_debug_call
replicate-ignore-table = rtu.mvts_debug_call_log
replicate-ignore-table = rtu.mvts_debug_registration
master-host = --
master-user = repl
master-password = slavepass
sync_binlog = 1
slave-skip-errors=1062,1053

.
9. :
#> invoke-rc.d mysql start

10. slave :

. 220

( )

#> mysql
mysql> start slave;

11. MySQL:
#> mysql
mysql> show master status \G;
mysql> show slave status \G;

show slave status \G ,


, Slave_IO_State. Waiting for
master to send event. -
, .
Last_Errno Last_Error.

. 221

. ,

. ,

8.1


Like Not like
. % _.
% , (
). , 123% , 123. %
123 , 123. %123% ,
123. % , .
_, . , _123
, , 123, (:
0123, 1123 .). ,
,
, 1_23.
. , %1_23% 04513234, 1823
, 11123456 ..
Like ,
.
Not like ,
.

8.2


.
- , , ,
.

[]

, .

. 222

. ,

0 1

{x}

x .

{x,}

x .

{x,y}

x , y

()

, ,
\.

, CDR- , ,
7095123, 7095124 7095125
. .
^7095(123|124|125).{4}$
, 70951231234, 70951243333,
70951254567, 70951255678 ..
, , , 7095
1 2 3.
.
^7095.*[123]$
70951111111, 709500002, 70951234563 ..
, , , "345",
, .
.
^345.{1,6}$

. 223

. ,

3450, 3451111, 345888888 ..

8.3



. .
, : ,
/.
( ), .
.
\.
, ,
.

:
123456789 1234
:
^1234(.*)/\1
( 1234, )
:
123456789

56789

:
1234# 1234#1234567 0000#
:
^1234#(.*)/0000#\1
( 1234#, , 0000#)
:
1234#1234567

0000#1234567

:
0000#
:
^(.*)/0000#\1
( 0000# )
:
1234567 0000#1234567
7654321 0000#7654321 ..
,
\g<#>, # - .
99. ,
. :

. 224

. ,

:
5555
:
^(.*)/\g<1>5555
( 5555 )
:
1234567 12345675555
:
^1234#/0000# ^1234#(.*)/0000#\1 ( 1234#,
0000#);
^/0000# ^(.*)/0000#\1 (
0000#).

.
.
:
^(78312)/01#\1 ( 01# , 78312);
^(7831)/02#\1 ( 02# , 7831).
^(78312)/01#\1;^(7831)/02#\1 78312555555
01# (01#78312555555).
, 78315555555 ,
02# (02#78315555555).
, ,
:
rand(n) rand(n) n- . n
0 99. , ^(.*)/(123)rand(2)
, 12389 12322, .
^$ .
, ^$/123 123.
blank.

8.4


, , ,

. , :
(,
. -) "()".
, ^123456(.*) ^123456.*.
.
,
-, ";"
. ";"
,
.
"|". , ^123.*;^456.*;^789.* ^123.*|
^456.*|^789.*. , .

. 225

. ,

-
";". ,
12345.*|67890.* 12345.*;67890.*. 12345.*|
67890.* , 67890.
-
"^". , ^12345.*;^67890.*
12345.*;67890.*.
,
(, . -),
, . ,
1234(.*)/\1;1235(.*)/\1; 1236(.*)/\1
123[4-6](.*)/\1.

xxx.{n}, xxx
, n
xxx. , , 1234,
: 1234.{8}.

. 226

. ( )

.
( )

9.1


I. SIP ,
SDP .
,
.
II. ( ,
rtpmap fmtp) (
), , ,
( . . ). ,
, , .
:
, ,
.
rtpmap
fmtp. fmtp rtpmap (
. . SDP rtpmap .
. SDP fmtp ),
;
, (..
), , .
. ,
, ,
. , ;
, .
, ,
;
, ,
;
, .
, .
. SDP
G.729:
m=audio 21000 RTP/AVP 18 100
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=true
a=rtpmap:100 G729/8000

:
G.729:
SDP rtpmap = "G729"
SDP fmtp = "annexb=true"

G.729:
SDP rtpmap = "G729"

G.729 G.729B. G.729


G.729, G.729A, G.729AB, G.729B. ,
G.729, , .
, :
. 227

. ( )

G.729
G.729 ( 2, . )
.
G.729,
.
,
.
III. , II,
, . ,
, II,
, .
IV. , III,
( , ,
, , ).
,
.
,
.



, -, G.711
.

. 228

. ( )


,
, , .
(H.261, H.263) (T.38) .
( )
.
:

-
G.711

- ,
. :
. = ,
, .
. = , ,
, ,
, - .

9.2


,

(dial peer). :


( > (DPs) > ). ,
, ,
( > > .
-). ,
.
:

. ;
( )
( ) ;
,
, ,
.
.
-
, ,
, ,
. 229

. ( )

.

, ,
, , ,
.
:

,
,

CONNECT

CONNECT -


-
,

. 230

. ( )

(
) .



,


.

,

. ,
.

. 231

10

.
,
, .
, ,
,
,
.

. ,
( , ..) RADIUS, ,
.

:
(
),
RADIUS .
( )
( /
), (
).
, ,
. ,

, ,
( ).
,

,
. ,
RADIUS-
,
.
,
:
o SIP-
Digest Authentication.
o H.323- :
H.323- ,
RADIUS-
( ->
H.323- = 0), ,
RADIUS- ( RADIUS- -> ).
H.323-
1.
-> H.323- 1.
H.323-
md5. RADIUS-.
H.323-
Cisco CHAP. RADIUS-.
, .
, , ,
. - ,
. 232


- .
, ,
, .

. 233

. 7

11

.
7
7 :

M3UA

Network 1) RFC4666.
Appearance Routing Context Routing Context Network Appearance

.
2) AS ASP SGP
, ,
SGW,
,
.
, 7- AS Routing
Key ,
Routing Context Network Appearance .
Network Indicator

(point codes).
,

7
()
, ,

7 (
SGW)
, , ,
7.
7
7,
7.
ISUP-R

(overlap
signaling)


,
.
,
(continuity)

.
,
-,
,

.

. 234

. 7


MTP-
(MTP .
congestion)

(Automatic
Congestion Control)

7-
. 7- .

7


7

MGW, SGW

7.

,
.

,
.
7- .


.


.

. 235

12

.

(
, ) .
.
,
CDR-, , .
(call p rogress tones)
28384-89.

.
AudioCodes MP124, , , , .

.

, AudioCodes .
web- AudioCodes,
Software Update Load Auxiliary Files.

AudioCodes
Send Call Progress Tones file from your computer to the device
,
.

, Status & Diagnostics


Device Information. Call
Progress Tones File Name .

. 236

AudioCodes
CDR ,
:
. , , , ,
30, 31, 32, 33 .
CDR-

ID

10

11

. - (.)

12

. - (.)

13

. - ()

14

. - ()

. 237

15

(.)

16

(.)

17

()

18

()

19

20

21

Conference ID

22

Call ID

23

Call ID

24

RAS . -

25

RAS . -

26

27

. -

28

. -

29

(DP)

30

. ,

31

32

33

34

35

. -

36

37

Faststart . -

38

Faststart . -

39

Tunneling . -

40

Tunneling . -

41

42

43

44

SCD,

45

PDD,

. 238

46

PDD

47

. -,

48

. -,

49

. -,

50

. -,

51

. -,

52

. -,

53

. . -,

54

. . -,

55

. -

56

. -

57

. , . -

58

. , . -

59

. , . -

60

. , . -

61

CDR

62

63

64

"From" .

CDR
.

.

. 239

CDR-
CDR- , web- ,
. ,
2009 15-00 3 12-00 4 . CDR
,
.
.

CDR-,
CDR- CSV-. CDR
.
.

. 240

. ( ) RADIUS-

13

. (
) RADIUS-
RADIUS- :
(Authorization), (Accounting),
(Routing).
. RADIUS-
-
.
RADIUS-
AccessRequest AccessAccept
AccessReject. (Accounting)
AccountingRequest (Code 4) AccountingResponse.
RADIUS-
DisconnectRequest (type 40),
DisconnectAck(type41), DisconnectNack(type
42).

RADIUS-.

13.1


RADIUS-
RegistrationRequest, .
AccessRequest RADIUS-

IETF

VSA

.\
.
(\)

NAS-IPAddress

radius_nas_ip_add
r

,

"127.0.0.1"

NAS-Port-Type

Service-Type

26

xpgk-requesttype

"user"

User-Name

string

User-Password

,
MD5,
plain-text

BYTE[16] string

26

xpgk-md5-auth

,
MD5

BYTE[16] string

. 241

. ( ) RADIUS-

CHAPPassword

,
CHAP

string

60

CHAPChallenge

CHAP

string

104

Digest-Realm

RADIUS

string

105

Digest-Nonce


string


Digest

109

Digest-URI


Digest

string

108

Digest-Method


Digest

string

103

DigestResponse


string


Digest

115

DigestUsername

string

: AccessAccept AccessReject
AccessReject ,
RegistrationReject c SecurityDenial.

13.2


RADIUS-
.
AccessRequest RADIUS-

IETF

User-Name

VSA

string,

.\
.
(\)

$ani$,

User-Password

,
MD5

BYTE[16] string

. 242

. ( ) RADIUS-

NAS-IPAddress

NAS-Port

NAS-Port-Type

Service-Type

Framed-Protocol

This attribute indicates the


framing to be used for
framed access.

26

xpgk-requesttype

"number"

30

Calling-StationId

string

31

Called-StationId

string

26

h323-conf-id

24

h323-conf-id=<HEX
[16]>

26

h323-call-id

h323-call-id=<HEX
[16]>

26

h323-gw-id

33

ID -
RADIUS

h323-gwid=<string>

26

h323-gwaddress

23

IP-

h323-gwaddress=<IPaddress>

26

xpgk-srcnumber-in

-,
SETUP

xpgk-src-numberin=<number>

26

xpgk-srcnumber-out

-, xpgk-src-number
out=<number>

26

xpgk-dstnumber-in

-,
SETUP

xpgk-dst-numberin=<number>

26

xpgk-dstnumber-out

-, xpgk-dst-number
out=<number>

44

Acct-Session-Id

string

26

xpgk-record-id

xpgk-recordid=<string>

radius_nas_ip_add
r

,

"127.0.0.1"

. 243

. ( ) RADIUS-

26

xpgk-routeretries

26

h323-remote-id

ID - h323-remote RADIUS
id=<string>

26

h323-remoteaddress

23

IP-

h323-remoteaddress=<ipaddress>

26

xpgk-md5-auth

SETUP
registrationRequest MD5

xpgk-md5auth=<username/
<timestamp>>/HEX
[16]

CHAPPassword

,
CHAP

string

60

CHAPChallenge

CHAP

string

104

Digest-Realm

RADIUS

string

105

Digest-Nonce


string


Digest

109

Digest-URI


Digest

string

108

Digest-Method


Digest

string

103

DigestResponse


string


Digest

115

DigestUsername

string

: AccessAccept AccessReject
AccessAccept RADIUS-

IETF

VSA

.\
.
(\)

26

h323-credit-time

102

h323-credit time=<
>

26

h323-return-

103

h323-return-code ( h323-return-

. 244

. ( ) RADIUS-

code

code=<>
,
0, 13, 51 52,

,
)

27

SessionTimeout

integer

26

h323-ivr-in


string
User-Name
Accounting

AccessReject ,
.

13.2.1

(Accounting Start Record)


RADIUS- ( /originate leg)
SETUP , ( /answer
leg).
AccountingRequest (Code 4).
(Accounting Start), RADIUS-

IETF

User-Name

VSA

string,

.\
.
(\)

$ani$,

NAS-IPAddress

radius_nas_ip_add
r

,

"127.0.0.1"

NAS-Port-Type

Service-Type

41

Acct-DelayTime

( )


Accounting

30

Calling-Station-

string

. 245

. ( ) RADIUS-

Id
31

Called-StationId

string

26

h323-setup-time

25


SETUP

h323-setup-time=<
hh:mm:ss.uuu t
www MMM dd
yyyy>

26

h323-connecttime

28

h323-connecttime=< hh:mm:ss.
uuu t www MMM
dd yyyy>

26

h323-conf-id

24

h323-conf-id=<HEX
[16]>

26

h323-call-id

h323-call-id=<HEX
[16]>

26

xpgk-srcnumber-in

-,
SETUP

xpgk-src-numberin=<number>

26

xpgk-srcnumber-out

-, xpgk-src-number
out=<number>

26

xpgk-dstnumber-in

-,
SETUP

xpgk-dst-numberin=<number>

26

xpgk-dstnumber-out

-, xpgk-dst-number
out=<number>

26

xpgk-record-id

xpgk-recordid=<string>

26

xpgk-routeretries

xpgk-routeretries=<number>

26

h323-call-type

27

h323-calltype=VoIP

26

h323-call-origin

26



h323-callorigin=answer,


h323-callorigin=originate

44

Acct-Session-Id


-
Accounting

26

h323-gw-id

33

ID -
RADIUS-

h323-gwid=<string>

26

h323-gwaddress

IP-

h323-gwaddress=<IPaddress>

. 246

. ( ) RADIUS-

26

h323-remote-id

h323-remoteid=<string>

26

h323-remoteaddress

23

IP- h323-remote
address=<IPaddress>

40

Acct-StatusType

Accounting

26

xpgk_centrex_c
ookie

xpgk_centrex_cooki
e=<number>

26

xpgk_centrex_d
vo


(1 , 0 )

xpgk_centrex_dvo=
<number>

26

xpgk_centrex_ca
lltype

xpgk_centrex_callty
pe=<number>

26

xpgk_centrex_s
ource

Centrex

xpgk_centrex_sourc
e=<number>

26

xpgk_centrex_d
estination

Centrex

xpgk_centrex_destin
ation=<number>

26

xpgk_centrex_bi
lling_id

xpgk_centrex_billing
_id=<number>

26

xpgk_centrex_li
ne_name

xpgk_centrex_line_n
ame=<line name>

26

xpgk-src-codec

xpgk-srccodec=<codecs'
list>

26

xpgk-dst-codec

xpgk-dstcodec=<codecs'
list>

Acct-Session-Id :
<prefix>-<leg type><route number>
:
<prefix> - , -;
<leg type> - AV, OV;
<route number> - .
AccountingResponse.

13.2.2

(Accounting Stop Record)


RADIUS- .
AccountingRequest (Code 4)
Accounting Stop, RADIUS-

.\

. 247

. ( ) RADIUS-

IETF

VSA

User-Name

.
(\)

string,

$ani$,
()


4

NAS-IPAddress

radius_nas_ip_add
r

,

"127.0.0.1"

NAS-Port-Type

Service-Type

41

Acct-DelayTime

( ),


Accounting

30

Calling-StationId

string

31

Called-StationId

string

26

h323-setup-time

h323-setup-time=<
hh:mm:ss.uuu t
www MMM dd
yyyy>

25

SETUP

26

h323-connecttime

28

h323-connecttime=< hh:mm:ss.
uuu t www MMM
dd yyyy>

26

h323disconnect-time

29

h323-disconnecttime=< hh:mm:ss.
uuu t www MMM
dd yyyy>

26

h323-conf-id

24

h323-conf-id=<HEX
[16]>

26

h323-call-id

h323-call-id=<HEX
[16]>

26

xpgk-srcnumber-in

-,
SETUP

xpgk-src-numberin=<number>

. 248

. ( ) RADIUS-

26

xpgk-srcnumber-out

-, xpgk-src-number
out=<number>

26

xpgk-dstnumber-in

-,
SETUP

xpgk-dst-numberin=<number>

26

xpgk-dstnumber-out

-, xpgk-dst-number
out=<number>

26

xpgk-record-id

xpgk-recordid=<string>

26

xpgk-routeretries

xpgk-routeretries=<number>

26

h323-call-type

27

: "Conference"; h323-call"Forward", "FollowMe",


type=VoIP
"CallTransfer",
"GroupCall", "AutoDial",
"AlarmCall",
"AutoDialCBCallTerminator
",
"AutoDialCBCallOriginator"
, "PickUp", "CallWaiting",
"VoiceMail";

26

h323-call-origin

26



h323-callorigin=answer,


h323-callorigin=originate

44

Acct-Session-Id


Accounting Start Stop

26

h323-gw-id

33

ID -
RADIUS-

h323-gwid=<string>

26

h323-gwaddress

IP-

h323-gwaddress=<IPaddress>

26

h323-remote-id

h323-remoteid=<string>

26

h323-remoteaddress

23

IP- h323-remote
address=<IPaddress>

40

Acct-StatusType

Accounting

26

xpgk-scd-time


SETUP
CONNECT

CONNECT

xpgk-scdtime=<number>

. 249

. ( ) RADIUS-

26

xpgk-pdd-time

xpgk-pddtime=<number>

26

h323disconnectcause

30

h323-disconnectcause=<number>

26

xpgk-localdisconnectcause

xpgk-localdisconnectcause=<number>

26

xpgk-source-rtpaddress

IP- -

xpgk-source-rtpaddress=<IPaddress>

26

xpgk-dest-rtpaddress

IP- - xpgk-dest-rtpaddress=<IPaddress>

26

xpgk-sourcefaststart


faststart

xpgk-sourcefaststart=<number>

26

xpgkdestinationfaststart


faststart

xpgk-destinationfaststart=<number>

26

xpgk_centrex_c
ookie

xpgk_centrex_cooki
e=<number>

26

xpgk_centrex_d
vo


(1 , 0 )

xpgk_centrex_dvo=
<number>

26

xpgk_centrex_ca
lltype

: "Conference"; xpgk_centrex_callty
"Forward", "FollowMe",
pe=<number>
"CallTransfer",
"GroupCall", "AutoDial",
"AlarmCall",
"AutoDialCBCallTerminator
",
"AutoDialCBCallOriginator"
, "PickUp", "CallWaiting",
"VoiceMail";

26

xpgk_centrex_s
ource

Centrex

xpgk_centrex_sourc
e=<number>

26

xpgk_centrex_d
estination

Centrex

xpgk_centrex_destin
ation=<number>

26

xpgk_centrex_bi
lling_id

xpgk_centrex_billing
_id=<number>

26

xpgk_centrex_li
ne_name

xpgk_centrex_line_n
ame=<line name>

26

xpgk-src-codec

xpgk-srccodec=<codecs'

. 250

. ( ) RADIUS-

list>
26

xpgk-dst-codec

xpgk-dstcodec=<codecs'
list>

Acct-Session-Id :
<prefix>-<leg type><route number>
:
<prefix> - , -;
<leg type> - AV, - OV;
<route number> - .
AccountingResponse

13.3

AccessRequest
, , ,
.
.
.
,
.
AccessRequest (Code 1)
RADIUS-

IETF

VSA

44

Acct-Session-Id


Accounting Start Stop

User-Name

string

User-Password

,
MD5

BYTE[16] string

NAS-IPAddress

radius_nas_ip_add
r

,

"127.0.0.1"

NAS-Port-Type

Service-Type

26

xpgk-requesttype

"route"

.\
.
(\)

. 251

. ( ) RADIUS-

30

Calling-StationId

string

31

Called-StationId

string

26

h323-conf-id

24

h323-conf-id=<HEX
[16]>

26

h323-call-id

h323-call-id=<HEX
[16]>

26

xpgk-srcnumber-in

-,
SETUP

xpgk-src-numberin=<number>

26

xpgk-srcnumber-out

-, xpgk-src-number
out=<number>

26

xpgk-dstnumber-in

-,
SETUP

xpgk-dst-numberin=<number>

26

xpgk-dstnumber-out

-, xpgk-dst-number
out=<number>

26

xpgk-record-id

xpgk-recordid=<string>

26

xpgk-routeretries

xpgk-routeretries=<number>

26

h323-gw-id

33

ID -
RADIUS-

h323-gwid=<string>

26

h323-gwaddress

IP-

h323-gwaddress=<IPaddress>

User-Password

,
MD5

BYTE[16] string

26

xpgk-md5-auth

,
MD5

BYTE[16] string

CHAPPassword

,
CHAP

string

60

CHAPChallenge

CHAP

string

104

Digest-Realm

RADIUS

string

105

Digest-Nonce


string


Digest

109

Digest-URI

string

. 252

. ( ) RADIUS-


Digest
108

Digest-Method


Digest

string

103

DigestResponse


string


Digest

115

DigestUsername

string

Acct-Session-Id :
<prefix>-<route number>
:
<prefix> - , -;
<route number> - .
AccessAccept, AccessReject.
AccessAccept RADIUS-

IETF

26

h323-returncode

VSA

103

h323-return-code ( h323-return
code=<>

.\
.
(\)

,
0, 13,
51 52,

,
)
26

xpgk-xroutingrouting

252



(

,

)

26

xpgk-xroutingusername

251



( 1
)

26

h323-ivr-in

<>/<>


string
User-Name
Accounting

. 253

. ( ) RADIUS-

13.3.1

xpgk-xrouting-routing
gateway/proxy_mode/source/dest/src_bill/dst_bill/ip-address[:port]/converter/extra
:
gateway - ;
proxy_mode - :
0 - -;
1 - -;
2 - ;
3 - ;
source - (src_number);
dest - ,
(dst_number);
src_bill - ;
dst_bill - ;
ip-address[:port] - ip-, ,
;
converter , ;
extra ;
AccessReject
.

13.4

RADIUS-
RADIUS, ,
:
H.323 ( RADIUS-);
- MD5;
CHAP-;
- (Digest authentication).

13.4.1

H.323 ( RADIUS
)
RADIUS-
AccessRequest, terminalAlias ,
, .
|, :, ! %.
RADIUS- (
), , ,
MVTS , .
MD5 (MD5 ) :
UserPassword = MD5Hash(Shared Secret, RemoteAuthenticator) XOR password,

Shared Secret RADIUS-;


RemoteAuthenticator - ,
AccessRequest;

. 254

. ( ) RADIUS-

password - .

RADIUS
(shared secret),
RADIUS-, RADIUS- MD5 , ,
, , AccessAccept,
(AccessReject).

13.4.2

- MD5

GatekeeperRequest, ,
.
GatekeeperConfirm, ,
(alias), (time stamp), MD5
, (
).
, - RADIUS- password, xpgkmd5-auth ( ) ,
. RADIUS-
xpgk-md5-auth.

- MD5

13.4.3

CHAP-

gatekeeper request, ,

. 255

. ( ) RADIUS-

CHAP-.
GatekeeperConfirm,

(challenge),

. ,
tokens (challenge), , ,
.
RADIUS-, :
CHAP-Password , ;
CHAP-Challenge ;
User-Name - .
.

CHAP-
RADIUS- , CHAP-Password
Challenge,
, .
RADIUS-, ,
.

13.4.4

CHAP
,
,

- (Digest authentication)
,
SIP. :

( REGISTER);

401, "nonce" -
;
nonce MD5- (DigestResponse),
, ,
REGISTER;

, tokens , MD5-,
, ,
;
AccessRequest RADIUS-
, ;
RADIUS- MD5
.
Digest-Responce
( ), .
.

. 256

. ( ) RADIUS-

13.5


Packet-of-Disconnect

RADIUS- Packet-of-Disconnect. -
RADIUS- RFC 3576.
:
Packet-of-Disconnect (,
, ). ID
, .
,
ID.
. 257

. ( ) RADIUS-

o , , RADIUS-,
Packet-of-Disconnect, Disconnect-ACK.
o Disconnect-NACK.
Packet-of-Disconnect ,
.
, Packet-of-Disconnect

Packet-ofDisconnect


RFC 3576
40

h323-conf-id

( ), .
.
, h323conf-id, Access-Request,
Accounting-Request.
h323-incoming-conf-id

, .
.
, h323incoming-conf-id, AccessRequest, Accounting-Request.
h323-conf-id,
h323-incoming-conf-id. ,
,
h323-conf-id.

Disconnect-ACK

41

DisconnectNACK

42

. 258

. CDR-

14

. CDR-
CDR- :
CDR- .
MySQL :
alter table mvts_cdr union=(mvts_cdr_model);

MySQL CDR. :
drop table mvts_cdr_200801
drop table mvts_cdr_200801
drop table mvts_cdr_200801

:
/usr/local/lib/mvtspro/mvtsprodb.py
update_merge_cdr

--user=rtu

--pass=rtu

--db=rtu

. 259

. ( )

15

. (
)
Enter topic text here.

15.1

mvtspro-checker
mvtspro-checker
:

;
CDR-
;
mvts3g-sqlclient mvts3g-sclient;
;
;
.
mvtspro-checker .
/etc/mvts3g/
mvtspro-checker.conf.
= .

. :
Checking modules: , ,
.

directory

yes

yes,

.

database

yes

yes,
CDR-
.

mvts3gutils

yes

yes,
mvts3g-sqlclient mvts3g-sclient.

diskspace

yes

memcpu

yes

yes,

.

ts

yes

yes,
.

yes,

Data Base , .

. 260

. ( )

host

localhost

IP- ,
.

name

mvtspro

user

rtu

passwd

rtu

triggers4tables

mvts_gateway,
mvts_dialpeer

,
.

TS telnet.

15.2

commandlineIP

localhost

IP- ,
.

commandlinePort

7000

,
.

mvtspro-acc-restorer
mvtspro-acc-restorer RADIUS- (
Accounting Boot), .
mvtspro-acc-restorer.
:
-m :
sync : ,
( )
;
async - : -
, .
:
mvtspro-acc-restorer -m async
/etc/mvts3g/
mvtspro-acc-restorer.conf.
, #, .
= .
.
:

host

, RADIUS-, IP.

port

, RADIUS-

. 261

. ( )

Accounting.
secret

retry

timeout

RADIUS-, .

maxpacklen

RADIUS.

path

, Accounting.

template

,
Accounting.

path template , (
) :
path + '/' + template + '.*'

15.3

mvtspro-cdr-restorer
mvtspro-cdr-restorer CDR,
.
mvtspro-cdr-restorer.
/etc/mvts3g/
mvtspro-cdr-restorer.conf.
, #, .
= .
.
:

host

, , IP-.

name

, CDR.

user

passwd

path

, CDR.

template

, CDR.

nodename

template , (
CDR-) :
path + '/' + template + '.*'

. 262

. ( )

15.4

Disk Space Monitor


.
, , .
:
1) , mvts3g-mail ( /usr/sbin/mvts3g-mail);
2) mvts3g-mail (/etc/mvts3g/mvts3g-mail.
conf):
a) "FROM" "TO
b) "DISKSPACE" "ALARM_ID
c) , "CRITICAL" "ALARM_SEVERITY
3) (Sendmail, Exim ..)
;
4) , :
#> echo "Test mvts3g-mail." | mvts3g-mail /etc/mvts3g/mvts3g-mail.conf a -iDISKSPACE -sCRITICAL

5) /
etc/mvts3g/mvts3g-diskspace.conf;
6) /etc/cron.d/mvtspro-utils.
mvts3g-diskspace.conf Disk Space Monitor
/etc/mvts3g/.
:
<> < >
:
<> - , ;
< > -
, ; , ,
.

15.5

checkrepl
()
checkrepl.sh. - /usr/local/lib/
mvtspro/checkrepl/checkrepl.sh.
, .
:
./checkrepl.sh <dbuser> <dbpass> <dbname> <dbhost>

:
<dbuser> - ;
<dbpass> - ;
<dbname> - ;
<dbhost> - IP- ;
, ,
.
,
.
/etc/mvts3g/mvts3g-mail.conf ALARM_ID
DBREPLICATION.

. 263

. ( )

, ,
.
/var/log/mvts-3g/webdb-replication.log.
,
:
ln -sf /usr/local/lib/mvtspro/mvtsprodb-replication-hourly /etc/cron.hourly/
mvtsprodb-replication-hourly

15.6

checkdb_full
checkdb_full.sh.

, .
. - ,


(\voipproducts\RTU\WEB+DB_all_updates) .
:
./checkdb_full.sh <dbuser> <dbpass> <dbname> <webdb_version>
<webengine_version>

:
<dbuser> - , ;
<dbpass> - , ;
<dbname> - ;
<webdb_version> - WEBDB ,
;
<webengine_version> - WEBENGINE ,
. , WEBENGINE
, "-".
WEBENGINE 1.5.3-1 ,
WEBDB. WEBENGINE
1.5.3-1 WEBENGINE .
:
./checkdb_full.sh rtu rtu rtu 1.5.5-14 -

./checkdb_full.sh rtu rtu mvtspro 1.6.2-3 1.5.3-6


.
, :
rtu-test:~/checkdb# ./checkdb_full.sh rtu rtu rtu 1.6.2-8 1.5.3-9
Creating directory checkdb_full
Verifying archive integrity... All good.
Uncompressing MFISoft DB Check................
Input parameters:
DB_NAME = rtu
DB_USER = rtu
WEBDB = 1.6.2-8 (1_6_2_x)
WEBENGINE = 1.5.3-9 (1_5_3_x)
Extracting archive 'webdb_1_6_2_x.tar.bz2'
Extracting archive 'webengine_1_5_3_x.tar.bz2'
Creating temp database
Loading webengine dbdump ...

. 264

. ( )

Loading webdb dbdump ...


Checking databases
Reading standard db
Reading real db
Comparing
Comparing
Comparing
Comparing

databases..
tables with columns and keys
routines
triggers

Database check completed


Dropping temp database
Removing temp dirs
Check successful

, :
rtu-test:~/checkdb# ./checkdb_full.sh rtu rtu rtu 1.6.2-2 1.5.3-5
Creating directory checkdb_full
Verifying archive integrity... All good.
Uncompressing MFISoft DB Check................
Input parameters:
DB_NAME = rtu
DB_USER = rtu
WEBDB = 1.6.2-2 (1_6_2_x)
WEBENGINE = 1.5.3-5 (1_5_3_x)
Extracting archive 'webdb_1_6_2_x.tar.bz2'
Extracting archive 'webengine_1_5_3_x.tar.bz2'
Creating temp database
Loading webengine dbdump ...
Loading webdb dbdump ...
Checking databases
Reading standard db
Reading real db
Comparing
Comparing
Comparing
Comparing

databases..
tables with columns and keys
routines
triggers

Different objects found:


* columns in tables:
gui_relation_set (param);
gui_user_auth (reauth);
mvts_radius_acct_profile (acct_only_last_out)
Database check completed
Dropping temp database
Removing temp dirs
Check failed

15.7

aloe_upgrade_cdrs
aloe_upgrade_cdrs CDR-
. - /
usr/local/lib/mvtspro/cdrmove/aloe_upgrade_cdrs.sh.

. 265

. ( )

, ,
:
./aloe_upgrade_cdrs.sh <dbname> <running_mode>

<dbname> - . - mvtspro, - rtu.


<running_mode> - .
:
run - , web- .
:
CDR,
backup_<number>, <number> - .
mvts_cdr.
, CDR
, mvts_cdr_model,
mvts_cdr .
CDR ( 5000 5 ) ,
/usr/local/lib/mvtspro/
cdrmove/move.log.
,
.
stop - CDR-
.
start - CDR- .
add_backups - move.cfg ,
backup_<number>.
upgrade_table <table_name> -
<table_name>. backup_<number>
<table_name>.
, CDR- (
backup_<number>), .
move.cfg,
, .
/usr/local/lib/mvtspro/cdrmove/move.log.
, (,
CDR-, ),
:
upgrade_table .
web- ->
CDR. :
:
./aloe_upgrade_cdrs.sh mvtspro upgrade_table mvts_cdr_201101

:
./aloe_upgrade_cdrs rtu upgrade_table mvts_cdr_201101

, CDR- ,
mvtsprodb.py recreate_merge_cdr. /usr/
local/lib/mvtspro/cdrmove/ :
--host=<hostname>, <hostname> - IP-.

. 266

. ( )

--user=<username>, <username> - .
--pass=<password>, <password> - .
--db=<dbname>, <dbname> - .
:
:
./mvtsprodb.py --host=localhost
recreate_merge_cdr

--user=rtu

--pass=rtu

--db=mvtspro

:
./mvtsprodb.py
--host=localhost
recreate_merge_cdr

15.8

--user=rtu

--pass=rtu

--db=rtu

mvts3g-logexport
mvts3g-logexport
web-. /usr/sbin/.
:
./mvts3g-logexport.php < >
< >
rtu_log - , web- .
centrex_log - , web- .
:
./mvts3g-logexport.php rtu_log

/etc/mvts3g/mvts3g-logexport_config.php
,
'dbhost'

=> 'localhost' - ;

'dbuser'

=> 'rtu' - ;

'dbpassword'

=> 'rtu' - ;

'dbname'

=> 'rtu' - ;

'save_on'
=> 'local' - (
local - , ftp - FTP-);
'filename_template' => '%Y%m%d_%H%M%S.csv' -
.

<table_id>_<filename_template>, <table_id> - ,
;
'save_path'
=> '/var/log/mvts3g' - ,
;
'last_id_filename'
=> 'last_id.dat' - , ID
. /usr/sbin/.
<table_id>_<last_id_filename>, <table_id> , .
ID;
'csv_separator'
',', '|';

=> ';' - CSV-. ';',

'csv_quote'
=> '"' - CSV-. -
'"' '';
'compression' => '' - CSV-. - ''
( ), 'gzip' 'bzip2';
. 267

. ( )

'ftp_server'
=> 'rtu-test' - FTP-,
CSV- ( FTP);
'ftp_user'
=> 'userftp' - FTP-,
CSV- ( FTP);
'ftp_password' => 'rtu' - FTP-,
CSV- ( FTP);
'ftp_pasv'
=> true - ( - false, - true;
FTP);
, /var/log/mvts3g/autoexport.log.
:
:


IP- ,
,
,
,

,
, ,

:
52281;"2011-01-11 14:22:03";192.168.132.2;users;DPashkov;"System
users";"View data";;;6
52282;"2011-01-11 16:50:38";192.168.130.132;users;Administrator;
Equipment;"View data";;;
52283;"2011-01-11 16:50:43";192.168.130.132;users;Administrator;
Equipment;"View data";;"Array
(
[type] => agg
[operator] => and
[childs] => Array
(
[0] => Array
(
[type] => cond
[column] => description
[operator] => =
[value] => aklishev
)
)
)
";18
52284;"2011-01-11 16:57:37";192.168.132.2;users;DPashkov;"System
users";"View data";;;6

. 268

. ( )

:


IP- ,
, (User, Admin, Operator)
,
,
(Create, Edit, Delete)
,
:
< >, field="< >": previous="<
>", current="< >"
.
.
:
4;"03/01/2011 21:38:37";192.168.129.133;Admin;admin;ROOT;Create;
PersonalDetails;"PersonalDetails of user 3434 domain ROOT was changed,
field=""user_id"": previous="""" current=""9ccf5b57-aa09-478a-be9dd061a65e0037"", field=""user_type"": previous="""" current=""personal"",
field=""document"": previous="""" current=""passport"""
5;"03/01/2011 21:38:37";192.168.129.133;Admin;admin;ROOT;Edit;User;"User
3434 domain ROOT was changed, field=""followme_enabled"": previous=""""
current=""false"""
6;"03/01/2011 21:38:54";192.168.129.133;Admin;admin;ROOT;Delete;User;"User
3434 domain ROOT was deleted"

/
etc/mvts3g/mvts3g-logexport-cron
/etc/cron.daily - .
/etc/cron.weekly - .
/etc/cron.monthly - .
/etc/cron.hourly - .
,
:
ln -s mvts3g-logexport-cron /etc/cron.daily/mvts3g-logexport-cron

/etc/mvts3g/mvts3g-logexport-cron
.
.

. 269

. SIP H.323

16

. SIP H.323

,
.

16.1

H.323
- ,
( ASR
)
, . ,
H.323 .

16.2

SIP
302
, 302 sip
proxying_balancing no,
INVITE
( ASR)
302, .
INVITE ,
.
302
sip
proxying_balancing yes, INVITE
,
. ,
H.323-.
,
302. 302
, 302.

. 270

. (NAT)

17

.
(NAT)
1) - NAT SIP H.323.
IP- NAT-
IP-/, .
2) NAT-
SIP. :
a) ;
b) REGISTER ,
INVITE.
NAT- :
REGISTER NAT-
IP-/ IP-/
.
( keep-alive),
( OPTIONS).

NAT,
, .
3) NAT H.323
NAT ( , IP-/
IP-/ NAT-).

. 271

. ( )

18

.
( )
,
,
( ).
. ,
.
:
;
;
(
, -
);
,
.
,
( ) , .
(, , CDR-
(DPs)), ,
< >-epdp.
(DPs). , IvanIvanovEP
IvanIvanovEP-epdp.
100.

. 272

M. SIP/H.323

19

M.
SIP/H.323

H.323 SIP.

19.1

H.323
H.323
H.323- Lxx.
:
, , ,
, LRQ ;
LCF, ,
.

;

19.2

SIP
SIP SIP 300 Multiple choice,
.
SIP :
, , ,
SIP, INVITE
;
300 Contacts,
,
.

SIP ;

. 273

. IPSP

20

. IPSP
IPSP 7
IP .

20.1


IPSP M3UA,
:
(LocalEndpoint).
o . m3ua

LocalEndpoint.

0-65535.
o . port
LocalEndpoint. - 0-65535. - 2905.
IANA M3UA.
o . IP Addresses.
LocalEndpoint:
LocalEndpoint "42"
{
port
"2905";
Addresses
{
"192.168.17.71";
};
};

(RemoteEndpoint).
o . m3ua

RemoteEndpoint.

0-65535.
o . port
RemoteEndpoint. - 0-65535. - 2905.
IANA M3UA.
o . IP Addresses.
RemoteEndpoint:
RemoteEndpoint "41"
{
port
"2905";
Addresses
{
"192.168.17.72";
};
};

LIPSP ( IPSP).
o LIPSP. LIPSP.
1-65534.
o m3asp_id.
1-1000. , AspUp
Asp id.

. 274

. IPSP

LIPSP:
LIPSP "101"
{
m3asp_id
};

"11";

RIPSP ( IPSP) RIPSP


m3ua. .
1-65534.
.
,
, ASP SCTP-.
o .
Association. 1-100.
o ASP. lsp.
1-1000.
o SGP. rsp.
1-1000.
o . lep.
0-65535.
o . rep.
0-65535.
Association:
Association "1"
{
lsp
"101";
rsp
"102";
lep
"42";
rep
"41";
};

M3UA ( snode, AS, RoutingContext).

20.2

IPSP
role Association
. :
Client - , SCTP INIT chunk.
Server - SCTP INIT chunk
, .
- Client.
Direction RoutingContext
, . :
Both - . SE.
Outgoing - () .
DE. AspUp, AspAc, .
Incoming - () .
DE. AspUp, AspAc, .

. 275

. IPSP

20.3



ss7
{
ss7 "ts-ss7-node-1"
{
fmWaitForDlcx
"true";
fmResetCircuits
"true";
fmWaitForResetCircuits "false";
common
{
loglevel "5";
};
// client nodes connection point
controllink
{
zone "voip-ss7";
port "7700";
};

//
//

callctr
{
addEndOfPulsing "true";
causeLocation "1";
doAutomaticRedial "false";
earlyAcmTimer
"4000";
ss7zone "amorozss7"
{
cid "0";
};
};
isup
{
bAllowCallWithoutCgPaNum
bAskMissingCgPaNum
causeLocation "5";
snode "1"
{
opc "540";
ni "3";
connection "1"
{
dpc
behav_mask
highUtilTh
normalUtilTh

"true";
"false";

"300";
"0x5";
"0";
"0";

span "10"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";

. 276

. IPSP

isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "0";
}; //end of span
span "11"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "32";
}; //end of span
span "12"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "64";
}; //end of span
span "13"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "96";
}; //end of span
span "14"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";

. 277

. IPSP

doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "128";
}; //end of span
span "15"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "160";
}; //end of span
span "16"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "196";
}; //end of span
span "17"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "230";
}; //end of span
}; //end of connection 0
}; // end of snode

. 278

. IPSP

circuit_group "0"
{
cicHuntingPolicy "0";
//?+???-??+?-???+?-? ??+ 50 ?-?+?+?circuit_group_elem
{
span_idx "10";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "11";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "12";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "13";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "14";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "15";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "16";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "17";
out_mask "0xFFFEFFFE";
};
};//end of cig
}; // end of isup
m3ua
{
assocEstablishTimeout
assocEstablishInterval
assocEstablishAttempts
assocInitMaxAttempts
assocMaxInitTimeout

"10000";
"10000";
"0";
"3";
"3000";

snode "1" // Local node (use in As)


{
PC "540"; // Local point code
ni "3";
// Network Indicator
};
AS "1" // Application Server
{
trf_mode
"Override"; // or "LoadShare" or "Broadcast";
. 279

. IPSP

network
"ADC";
RoutingKey
{
RoutingKeyEntry
{
snode
"1"; // snode identifier (see above)
OPCs
// Remote point code list
{
"300";
};
si
"32"; // Service Indicator mask ( 32 - ISUP
(bit5) )
};
};
};
SG "65537";
validation in mconfig)

// Signaling Gateway (use only for m3ua

SGP "65537"
// Signaling Gateway Process (use only for
m3ua validation in mconfig)
{
sg "65537";
// SG identifier
};
LIPSP "101"

// Local IP Server

Process
{
m3asp_id
Use in AspUp message.
};

"11";

RIPSP "102";
Association "1"
{
lsp
identifier (Asp or LIpsp)
rsp
identifier (Sgp or RIpsp)
lep
rep
};

// Proto ASP Identifier.

//

Remote IP Server Process

"101";

// Local Server Process

"102";

// Remote Server Process

"42";
"41";

// Local Endpoint (see below)


// Remote Endpoint (see below)

RemoteEndpoint "41"
{
port
"2905";
Addresses
{
"192.168.17.71";
};
};
LocalEndpoint "42"
{
port
"2906";
Addresses
{
"192.168.17.71";
};
};
RoutingContext "1"
{

. 280

. IPSP

value

"51966"; //51966-CAFE // Use in AspTm, SSNM and

other messages
AS_Id
"1"; // AS identifier
Assoc_Id
"1"; // Association identifier
direction
"Both"; // Both - IPSP Single Exchange,
Outgoing, Incoming - IPSP Double Exchange
};
}; // end of m3ua

mgcp
{
mgcp_conf_inst "1"
{
localAddr
"192.168.17.71";
localPort
"2727";
doScreen
"false";
// list of mgw
mgcp_conf_mgw "1"
{
address
"192.168.17.71";
port
"2427";
outTidMin
"10000000";
outTidMax
"49999999";
pattern
"S0/DS0-${trunk}/${timeslot}@client";
auditPeriod "30000";
// list of trunks
mgcp_conf_trunk "10";
mgcp_conf_trunk "11";
mgcp_conf_trunk "12";
mgcp_conf_trunk "13";
mgcp_conf_trunk "14";
mgcp_conf_trunk "15";
mgcp_conf_trunk "16";
mgcp_conf_trunk "17";
}; // end of mgcp_conf_mgw
}; // end of mgcp_conf_inst
}; // end of mgcp
}; //end of ss7 "ts-ss7-node-1"
};


ss7
{
ss7 "ts-ss7-node-1"
{
fmWaitForDlcx
"true";
fmResetCircuits
"true";
fmWaitForResetCircuits "false";
common
{
loglevel "5";
};
// client nodes connection point
controllink
{
zone "voip-ss7";
port "7700";
};

. 281

. IPSP

//
//

callctr
{
addEndOfPulsing "true";
causeLocation "1";
doAutomaticRedial "false";
earlyAcmTimer
"4000";
ss7zone "amorozss7"
{
cid "0";
};
};
isup
{
bAllowCallWithoutCgPaNum
bAskMissingCgPaNum
causeLocation "5";
snode "1"
{
opc "300";
ni "3";
connection "1"
{
dpc
behav_mask
highUtilTh
normalUtilTh

"true";
"false";

"540";
"0x5";
"0";
"0";

span "10"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "0";
}; //end of span
span "11"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "32";

. 282

. IPSP

}; //end of span
span "12"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "64";
}; //end of span

span "13"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "96";
}; //end of span
span "14"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "128";
}; //end of span
span "15"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";

. 283

. IPSP

doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "160";
}; //end of span
span "16"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "196";
}; //end of span

span "17"
{
hw_id "1";
out_mask "0xFFFEFFFE";
in_mask "0xFFFEFFFE";
useGRS "true";
useCGB "true";
doInitReset "false";
doInitBlock "false";
isInitiallyAvailable "false";
isInitiallyBlockedState "false";
doUnblockWhenUserBinds "false";
releaseOnBlock "false";
dualSeisurePolicy "0";
isConsecutiveCicAlloc "true";
cicBase "230";
}; //end of span

}; //end of connection 0
}; // end of snode
circuit_group "0"
{
cicHuntingPolicy "0";
//?+???-??+?-???+?-? ??+ 50 ?-?+?+?circuit_group_elem
{
span_idx "10";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "11";
out_mask "0xFFFEFFFE";
};
circuit_group_elem

. 284

. IPSP

{
span_idx "12";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "13";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "14";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "15";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "16";
out_mask "0xFFFEFFFE";
};
circuit_group_elem
{
span_idx "17";
out_mask "0xFFFEFFFE";
};
};//end of cig
}; // end of isup
m3ua
{
assocEstablishTimeout
assocEstablishInterval
assocEstablishAttempts
assocInitMaxAttempts
assocMaxInitTimeout

"10000";
"10000";
"0";
"3";
"3000";

snode "1"

// Local node (use

in As)
{
PC "300";
ni "3";

// Local point code


// Network Indicator

};
AS "1"

// Application

Server
{
trf_mode

"Override";

// or "LoadShare" or

"Broadcast";
network
"ADC";
RoutingKey
{
RoutingKeyEntry
{
snode
"1";
OPCs
{
"540";
};
si
"32";

// snode identifier (see above)


// Remote point code list

// Service Indicator mask ( 32 -

ISUP(bit5) )
. 285

. IPSP

};
};
};
SG "65537"; // Signaling Gateway (use only for m3ua
validation in mconfig)
SGP "65537" // Signaling Gateway Process (use only for
m3ua validation in mconfig)
{
sg
"65537";
// SG identifier
};
LIPSP "201"

// Local IP Server

Process
{
m3asp_id
Use in AspUp message.
};

"22";

RIPSP "202";
Association "1"
{
lsp
identifier (Asp or LIpsp)
rsp
identifier (Sgp or RIpsp)
lep
rep
role
in_streams
out_streams
hbInterval
1000 - 60000
};

// Proto ASP Identifier.

//

Remote IP Server Process

"201";

// Local Server Process

"202";

// Remote Server Process

"52";
"51";
"Server";
"2";
"2";
"1000";

// Local Endpoint (see below)


// Remote Endpoint (see below)
// input streams ( 2 )
// output streams ( 2 )
// heart beat interval

RemoteEndpoint "51"
{
port
"2906";
Addresses
{
"192.168.17.71";
};
};
LocalEndpoint "52"
{
port
"2905";
lsp
"1";
Addresses
{
"192.168.17.71";
};
};
RoutingContext "1"
{
value
"51966"; //51966-CAFE // Use in AspTm, SSNM and
other messages
AS_Id
"1";
// AS identifier
Assoc_Id
"1";
// Association identifier
direction
"Both";
// Both - IPSP Single
Exchange, Outgoing, Incoming -

. 286

. IPSP

// IPSP Double Exchange


};
}; // end of m3ua
mgcp
{
mgcp_conf_inst "1"
{
localAddr
"192.168.17.71";
localPort
"2827";
doScreen
"false";
// list of mgw
mgcp_conf_mgw "1"
{
address
"192.168.17.71";
port
"2427";
outTidMin
"50000000";
outTidMax
"99999999";
pattern
"S0/DS0-${trunk}/${timeslot}@server";
auditPeriod "30000";
// list of trunks
mgcp_conf_trunk "10";
mgcp_conf_trunk "11";
mgcp_conf_trunk "12";
mgcp_conf_trunk "13";
mgcp_conf_trunk "14";
mgcp_conf_trunk "15";
mgcp_conf_trunk "16";
mgcp_conf_trunk "17";
}; // end of mgcp_conf_mgw
}; // end of mgcp_conf_inst
}; // end of mgcp
}; //end of ss7 "ts-ss7-node-1"
};

. 287

21

.


, .
.

-
/var/www/rtu/Config.php

'user' => 'rtu' .


'password' => 'rtu'
.

/etc/mvts3g/system-1.
scripting.conf

dbms_user_master "rtu"
.
dbms_pswd_master
"rtu"
.

dbms_user_slave "rtu"
.
dbms_pswd_slave
"rtu"
.


/usr/local/lib/mvtspro/
cdrmove/aloe_upgrade_cdrs.sh

MYSQL_USER='rtu'; .

/usr/local/lib/mvtspro/
cdrmove/aloe_data_mover.sh

-u<user>, <user> .

MYSQL_PASS='rtu'; .

-p<pass>, <pass> .
,

.

/usr/local/lib/mvtspro/
mvtsprodb-daily

--user rtu .
--pass rtu .

/usr/local/lib/mvtspro/
mvtsprodb-hourly
/usr/local/lib/mvtspro/
backupdb.conf

user=rtu .

/usr/local/lib/mvtspro/
mvtsprodb-replication-hourly

./checkrepl.sh
<user> <pass> $db localhost, <user>
, <pass>
.

password=rtu .


/etc/mvts3g/mvtspro-cdrrestorer.conf

user=rtu .
passwd=rtu .

. 288

/etc/mvts3g/mvtspro-cdr-toacc.conf

DBuser=rtu .

/etc/mvts3g/mvtspro-checker.
conf

user=rtu .

DBpasswd=rtu .

passwd=rtu .

. 289

22

.


.

:
, , .
- (, cl5).
, ,

(, cl5).

( , N)
( A), :
,
,
, A ,
N . - .
:

. 1

. 290

. 2

. 291