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

MERA VoIP Transit Softswitch v 2.1.

Mera Networks. 1999-2003

MERA VoIP Transit Softswitch v 2.1.8

15032004SAG_Rus

15/03/2004

Co p yr igh t 199 9-2 00 3 Mera Ne tw orks .


A l l r ig h ts r es er ve d .
M era N e two rks
.


, ,
Mera N e tworks.
-
,
,
, , ,
,
Mer a Ne tw orks .
, .

1. ................................................................................................. 8
1.1.
1.2.
1.3.
1.4.
1.5.

............................................................................................................... 8
................................................................................................................ 8
....................................................................................... 8
............................................................................ 9
................................................................................................ 9

2. MERA VOIP TRANSIT SOFTSWITCH ................................ 11


2.1
2.2
2.3
2.4
2.5

............................................................................................................ 11
..................................................................................... 11
.................................................................... 16
............................................................................ 18
............................................................................................ 19

3. ........................................................................................... 21
3.1. ....................................................................................................... 21
3.1.1. .................................................................................... 21
3.1.2. ................................................................................ 23
3.1.3. ........................................................................................ 25
3.2. ............................................................. 25
3.3. .......................................................... 25
3.3.1. ........................................................... 25
3.3.2. MERA VOIP TRANSIT SOFTSWITCH .............................................. 26

4. ........................................................................................... 30
4.1. .................................................................... 30
4.2. .................................................................... 31
4.3. (GATEKEEPER) ............................................. 31
4.4. H.323 PROXY ....................................................................................... 31
4.5. .......................................................... 32
4.5.1. CDR- ...................................................................................................... 32
4.5.2. RADIUS (RADIUS ACCOUNTING) ................................ 32
4.6. ................................................................ 33
4.6.1. ................................................................................................. 33
4.6.2. IP ............................................................................. 33
4.6.3. RADIUS ( )............ 33
4.7. .............................................................. 33
4.8. .................................................................................. 34
4.9. ................................................................. 34
4.10. RAS- ............................................ 35
4.11. (GATEKEEPERS)............................. 35
4.12. ............................................ 35
4.12.1. .......................................................... 36
4.12.2. ,
............................................................................................................... 36
MERA VoIP Transit Softswitch v 2.1.8

3/209

5. ................................................................... 39
5.1. MVTS...................................................................................... 39
5.1.1. MVTS ......................................................................................................... 39
5.1.2. MVTS ...................................................................................................... 39
5.2. RAS- ........................................................ 39
5.2.1. MVTS RAS- ............................ 39
5.2.2. RAS- ................................................ 39
5.2.3. ................................................... 42
5.2.4. ...................................................................................... 43
5.2.5. ........................................................................................ 43
5.3. ............................................................... 43
5.3.1. MVTS ................................................. 43
5.3.2. .................................................................... 43
5.3.2.1.
............................................................... 46
5.3.3. ............................................................................................... 46
5.3.4. ................................................................................................... 46
5.3.5. ........................................................................................ 47
5.4. (GATEKEEPERS) .......................... 47
5.4.1. MVTS ...................................... 47
5.4.2. ......................................................... 47
5.4.3. (GATEKEEPER) ............................................................ 48
5.4.4. (GATEKEEPER) ................................................................ 48
5.4.5. ................................................................ 48
5.5. ................................................................................ 49
5.5.1. MVTS .................................................................. 49
5.5.2. ..................................................................... 50
5.5.3. ..................................................................................... 51
5.5.4. ............................................................................... 53
5.5.5. ................................................................................... 53
5.5.6. (LOOK_AHEAD_ROUTING) ................. 53
5.5.7. ........................................................................................ 56
5.6. ....................................................................... 56
5.6.1. ....................................................................... 56
5.6.2. CDR- ............................................................................................................ 56
5.6.3. RADIUS ................................................................................................................... 57
5.7. ......................................................................................... 57
5.7.1. ................................................................ 57
5.7.2. .................................................... 58
5.7.3. ................................................................ 58
5.7.4. .................................................................................................. 58
5.7.5. .............................................................................. 58
5.8. ................................................................................ 59
5.8.1. ............................................................................... 59
5.8.2. ............................................................................. 59
5.8.3. ................................................................... 59
5.8.4. ............................................... 60
5.8.5. ................................................................................................... 60

MERA VoIP Transit Softswitch v 2.1.8

4/209

6. ........................................................ 62
6.1. ................................................................................. 62
6.1.1. ................................................................................................................. 62
6.1.2. .......................................................... 62
6.1.3. ................................ 63
6.1.4. RAS-....................................... 105
6.1.5. ............................................................ 123
6.1.6. (GATEKEEPER) ......................... 141
6.1.7. ........................................................... 146
6.1.8. (CDRS)........................................... 155
6.1.9. ..................................................... 157
6.2. ....................................................................................................................... 159
6.2.1. .................................................................. 159
6.2.2. MP_KERNEL.SH ........................................................... 160
6.3. .......................................................................... 161
6.3.1. , ........................................... 161
6.3.2. .................................................................. 162
6.3.3. ........... 162
6.3.4. .................................................. 163
6.4. HASP LINUX ....................................................... 180
6.5. MVTS ....................................... 181
6.5.1. MVTS MS............ 182
6.6. WEB- WEB MONITOR ...................................... 184
6.6.1. WEB- .................................. 184
6.6.2. ......................................... 188

7. .................. 191
: ........... 192
.................................................................................................................. 192
................................................................................................................... 192
.......................................................................... 194
..................................................................... 199
RADIUS ....................... 201
................................................. 203
MVTS ................................................................................................. 205
............................................................................................................ 206

B:
, MVTS ................. 207
C:
MIB ...................................... 209

MERA VoIP Transit Softswitch v 2.1.8

5/209

. 2-1. .......................................... 12
. 2-2. (VPNs) .............................................. 13
. 2-3. ................................................. 14
. 2-4. . .... 15
. 3-1. ............................................................................. 27
. 5-1. ....................................................................... 51
. 7 MVTS MS .................. 181
. 6-8 web-................................................................ 185
. 9

MERA VoIP Transit Softswitch v 2.1.8

. 10 . ............................ 185

6/209

1-1: ............................................................................ 9
1-2: ................................................................................... 9
2-1 MVTS .......................................................................... 20
3-1 ( ) .................................. 21
3-2 ( ) ... 21
3-3 ( )............................ 22
3-4 MVTS ....................................................................... 24
4-1: MVTS............................................................... 30
5-1: RAS- ..................................................................... 40
5-2: ......................................................................................... 43
5-3: ............................................................................... 47
5-4: (dial peer) ......................................................... 51
6-1: (CDR) .......................................... 155
6-2: MVTS (mp_kerneld.x)..................... 159
6-3: , show call .................... 168
6-4: , show call ................. 168
6-5: , show dp ....... 171
6-6: , s h o w s t a t ............................ 174
Table 6-7: , s h o w s t a t g w ........................... 176
6-7: , show ep......................................................... 179

MERA VoIP Transit Softswitch v 2.1.8

7/209

1.
1.1.

MERA VoIP
Transit Softswitch v 2.1.8 ( MVTS), ,
.
.

1.2.

,
, MERA VoIP
Transit Softswitch v 2.1.8

1.3.

1.

C .

2. MERA VoIP Transit Softswitch

C : ,
, , , ,

.

3.

,

.

4.

,
, (gatekeeper), H323
(proxy), (billing system)
.
, .

5.

,
,
, , ,
,
MERA VoIP Transit Softswitch v 2.1.8

8/209

6.

,
,
.

,
.

7.

,

.

1.4.


, ,
(. 1-1).
1-1:

[N]

, .

void

ulimit

1.5.

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


1-2:

[1]
[2]
[3]
[4]

[5]


ITU-T Recommendation H.323 Packet-based multimedia
communications systems
RFC 1889 RTP: A Transport Protocol for Real-Time
Applications. Audio-Video
ITU-T Recommendation H.245 Control protocol for multimedia
communication
ITU-T Recommendation H.225, Call signalling protocols and
media stream packetization for packet based multimedia
communication systems
ITU-T Recommendation E.164, Assigned Country codes

MERA VoIP Transit Softswitch v 2.1.8

9/209

[6]

[7]
[8]

[9]

[10]
[11]
[12]


Remote Authentication Dial-In User Service (RADIUS), RFC
2138,
April
1997
(http://www.pasteur.fr/cgibin/mfs/01/21xx/2138?8#mfs)
RADIUS
Accounting,
RFC
2139,
April
1997
(http://www.pasteur.fr/cgi-bin/mfs/01/21xx/2139)
Jeffrey Friedl Mastering Regular Expressions, OReilly, 1997,
ISBN: 5-318-00056-8
., .
. . , 2001 .
FreeBSD Handbook. The FreeBSD Documentation Project.
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 by
The FreeBSD Documentation Project
Red Hat Linux Manuals. Red Hat Linux 7.2. x86 Installation
Guide, Getting Started Guide, Customization Guide,
Reference Guide. Copyright by Red Hat Inc.
ITU-T Recommendation T.38 Procedures for real-time Group 3
facsimile communication over IP networks, June 1998
Mozilla Public License, version 1.1.
http://www.mozilla.org/MPL/MPL-1.1.html
ITU-T Recommendation Q.931. ISDN user-network interface
layer 3 specification for basic call control.

MERA VoIP Transit Softswitch v 2.1.8

10/209

MERA VoIP Transit Softswitch

2. MERA VOIP TRANSIT SOFTSWITCH


2.1

MERA VoIP Transit Softswitch ( MVTS) -


VoIP
(gatekeeper) . MVTS , IP-,
IP- .
MVTS
:

( MVTS).

( ,
).

(, Cisco VocalTec).

,
RADIUS.

.

- .

2.2


MVTS
. ,
,
.
, ,

.

MERA VoIP Transit Softswitch v 2.1.8

11/209

MERA VoIP Transit Softswitch



MVTS
(H.323) (RTP/RTCP) .

,
.
IP- .

MVTS

3000

.

. 2-2-1.
H.323-
H.323-
MVTS
.323- . ,
, ,
.
MVTS, ,
, :

.

MERA VoIP Transit Softswitch v 2.1.8

12/209

MERA VoIP Transit Softswitch


(VPN)
MVTS
.

regex-.

,
.

RADIUS-.

. 2-2-2. (VPNs)

, NAT-
MVTS ,
NAT- (Network Address Translation). ,
DSL , CISCO 186
, .

MERA VoIP Transit Softswitch v 2.1.8

13/209

MERA VoIP Transit Softswitch


VoIP-
/ IP- , ,
. .
MVTS IP-
.
MVTS
. ,
IP-,
RAS,
.

. 2-2-3.

MVTS " "
,
.
,
.
IP, Firewall
NAT. ,
.
MERA VoIP Transit Softswitch v 2.1.8

14/209

MERA VoIP Transit Softswitch





. MVTS RADIUS,

.
MVTS
(CDR/call detailed record),
,
.
prepaid- postpaid .

. 2-2-4. .


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

.
MERA VoIP Transit Softswitch v 2.1.8

15/209

MERA VoIP Transit Softswitch

2.3



SIP/H.323
( SIP-HIT)
- G.729, G.729A, G.723.1, G.711A-Law,
G.711-Law ( SIP-HIT)
H.323- (
)
(pass-through) T.38

: H.225, H.245
: RTP/RTCP
IP-

/ (Cg/Cd E.164,
Cg/Cd H.323)

/



- ASR
( )
RADIUS-
(RADIUS API )

( )
H.323 Gatekeeper
RAS-
(

MERA VoIP Transit Softswitch v 2.1.8

16/209

MERA VoIP Transit Softswitch


)




( RADUIS)
MD5 Cisco CHAP


(capability)
IP-
( )

RADIUS- ( Cisco VSA)
CDR- ( Call Detailed Records)
VoIP-
NAT-

DoS-


IP-



(regexp-)
( )
MERA VoIP Transit Softswitch v 2.1.8

17/209

MERA VoIP Transit Softswitch


(dial peer priority)

: ASR, ACD, QoS, ,
,
.
: , ,
: MVTS,
MVTS Manager, web- MVTS Web Monitor




MVTS Manager


2.4



H.323 v.2 ( H.245 v.7, H.225 v.4)
SIP v.2 RFC 2543bis ( SIP-HIT)
RTP/RTCP
T.38, T.120
SNMP v.1 (statistics and trap)
MD5, CHAP
RADIUS authentification
RADIUS accounting (Attribute 44 and VSA)

MERA VoIP Transit Softswitch v 2.1.8

18/209

MERA VoIP Transit Softswitch


Linux RedHat 9.0
Linux RedHat Enterprise 3.0
Linux Fedore Core 2
FreeBSD 4.5, 5.0+

(log extractor)
MVTS Manager
: ,
(log rotation)

SNMP- MVTS Manager


SNMP-
'watch dog'
email
MVTS- (redundancy)
RADIUS-


, E1: 30 1500
/
(backup)

2.5

MERA VoIP Transit Softswitch ,


,
, . ,
MVTS ,
.


( ). 3.1.1

MERA VoIP Transit Softswitch v 2.1.8

19/209

MERA VoIP Transit Softswitch



MVTS. , MVTS

, .

2-1 MVTS

( )



(G.711)

(G.729)

5
1000

MERA VoIP Transit Softswitch v 2.1.8

300
500

20/209

3.
3.1.

MVTS

.
,
MVTS .

3.1.1.
3.1.1.1.

, MVTS
,
,
.

MVTS (gatekeeper) (
) 3-1.
3-1 ( )

Pentium III 833/256Mb RAM/10Gb SCSI HDD


Pentium III 1,4/1024Mb RAM/10Gb SCSI HDD
Dual Pentium III 1,4/1024Mb RAM/20Gb SCSI
HDD


( ),
-
3-2.

3-2 (
)

30

Pentium III 933GHz/256Mb RAM/20 Gb HDD/100 Mb Ethernet

60

Pentium III 933GHz/512Mb RAM/20 Gb HDD/100 Mb Ethernet

120

Pentium III 1.13GHz/512Mb RAM/20 Gb HDD/100 Mb Ethernet

MERA VoIP Transit Softswitch v 2.1.8

21/209

300

Pentium III 1.2GHz/512Mb RAM/20 Gb HDD/100 Mb Ethernet

600

Pentium IV 1.4GHz/1024Mb RAM/40 Gb HDD/1 Gb Ethernet

1000

Pentium IV 1.8GHz/1024Mb RAM/40 Gb HDD/1 Gb Ethernet

MVTS


,

3-3.
3-3 ( )

30

Pentium III 1.13GHz/256Mb RAM/20 Gb HDD/100 Mb Ethernet

60

Pentium III 1.2GHz/512Mb RAM/20 Gb HDD/100 Mb Ethernet

120

Pentium IV 1.4/512Mb RAM/20 Gb HDD/100 Mb Ethernet

300

Pentium IV 1.8/1024Mb RAM/40 Gb HDD/100 Mb Ethernet

600

Xeon Pentium IV 2.4/2048Mb RAM/40 Gb HDD/1 Gb Ethernet

1000

Dual Xeon Pentium IV 2.0/2048Mb RAM/40 Gb HDD/1 Gb Ethernet

: 300
,
1Gbit Ethernet.

3.1.1.2.

MVTS ,
,
.
.
MVTS Ethernet,

100Mb. , ,
(full-duplex).

MVTS

(G.729)
100Mb
, , 1100 .

MERA VoIP Transit Softswitch v 2.1.8

22/209


.323
RADIUS.

,
(, Gigabit Ethernet).
3.1.2.
MVTS 1.1
Linux Red Hat 6.1 ( ), FreeBSD
4.3 ( ).
3.1.2.1.

MVTS
.
MVTS,

1:

MVTS
2.


[9].
1.

,
CDR- (RADIUS ),
5
billing/.
,
MVTS.


debug/.
core-. ,
MVTS ,
.
,
.

, MVTS
, , ..
.

MERA VoIP Transit Softswitch v 2.1.8

23/209


3.1.2.2.

MVTS
. ,
(fifo)
. ,
()
.
, MVTS
,
,
.


,
,
6 20 ().

.
, ,

20
.
3.1.2.3.


(accounts),

.
MVTS ,
(. 3-4)
3-4 MVTS

Admin

.
,

.

billing/.

Billing

MERA VoIP Transit Softswitch v 2.1.8

24/209


(s h o w c a l l ),
(s h o w
dp)

Support

.

( show: s h o w c a l l , s h o w
d i a l , s h o w s t a t .. ).
,
MVTS (start, stop
).


MVTS
setup.sh.

[9].
3.1.3.
, MVTS ,

(firewall), , MVTS
.
RAS , ,
RADIUS
,
.
,
, ,
, (
1024 65535).

3.2.




,
(. 3.1.1)

3.3.

3.3.1.
Red Hat Free BSD (
)
MERA VoIP Transit Softswitch v 2.1.8

25/209


.
,

,
, [9].

, ,
.
3.3.2. MERA VOIP TRANSIT SOFTSWITCH
3.3.2.1.

MVTS ,
tar.gz .
,

.
, MVTS-1.1-linux-x86-7.2.tar.gz
MVTS 2.1,
RedHat Linux 7.2 (
x86).
MVTS
:

setup.sh,
MVTS, ..
,
, MVTS
.

MVTS
(mp_kernel.x
mp_kernel.sh).


(mp_shell.x mp_shell.sh).

(meraproxy.cfg,
gateway.cfg, dialpeer.cfg, gatekeeper.cfg, user.cfg).

MVTS.


MVTS :

HASP- Linux
Red Hat rpm-

(
).

MERA VoIP Transit Softswitch v 2.1.8

26/209

MVTS,
Mozilla Public License
(MPL) [11].

3.3.2.2.

MVTS,
meraproxy.tar
current

setup.sh
mp_mond.x
merah323proxy

bin

mp_mond.sh
mp_kerneld.x
mp_kerneld.sh
mp_shell.x
bill_08.08.01_15:45:12

billing

bill_07.08.01_15:46:34
meraproxy.cfg

cfg

gateway.cfg
dialpeer.cfg
gatekeeper.cfg

tmp

user.cfg

log_08.08.01_14:56:23
debug

logs

log_08.08.01_21:12:05
core_08.08.01_14:56:07

cores

core_08.08.01_21:12:56

doc

read.me

3-1.
. 3-3-1.
bin/

setup.sh, .
MERA VoIP Transit Softswitch v 2.1.8

27/209


MVTS
cfg/. MVTS
(meraproxy.cfg, gateway.cfg,
dialpeer.cfg, user.cfg gatekeeper.cfg).
()
CDR-, billing/.
, MVTS
. CDR-
bill_<>_<>, <> - :
yyyymmdd, <> - : hhmmss,
bill
. CDR : bill20020327_113000.
, , .
MVTS debug/logs/.
, ,
CDR-.
logs_<>_< >, <> -
: yyyymmdd, <> -
: hhmmss, logs
.
: log20020327_120000.
. ,
, .
MVTS

core-,

mp_kernel.sh debug/cores/. Core-




MVTS.
tmp/ , MVTS.

MVTS.
doc/ ,
.
3.3.2.3.

MVTS HASP

MVTS
:
1.

root.

2.

/usr/local

3.

MVTS,
:

MERA VoIP Transit Softswitch v 2.1.8

28/209


tar xvzf <__>/MVTS-1.1-linux-x86-7.2.tar.gz
4.

./MVTS

5.

setup.sh
. ,
:
Setup finished successfully

6.

HASP ,
a k s u s b d - r e d h a t - * . * - * . i 3 8 6 . r p m
:
> rpm -i aksusbd-redhat-*.*-*.i386.rpm
HASP
Aladdin Knowledge Systems,
,
USB, .

MERA VoIP Transit Softswitch v 2.1.8

29/209

4.
4.1.


5 , ,
MVTS.
4-1: MVTS

meraproxy.cfg


,
, ,

.

gateway.cfg

dialpeer.cfg


,
,
/ ,
,

gatekeeper.cfg

,

(gatekeepers), MVTS
..

user.cfg

RAS

MVTS
, .
, ,
, MVTS
,
r e l o a d
c o n f i g ( 6.3.4.2).
: -
,
, .

MERA VoIP Transit Softswitch v 2.1.8

30/209

4.2.


MVTS
,
.
:

4.3.

1.


meraproxy.cfg (. 6.1.3).

2.

gateway.cfg (. 5.3).

3.

dialpeer.cfg (. 5.5).

4.

RAS

(user.cfg,
gatekeeper.cfg).

(GATEKEEPER)
MVTS (gatekeeper)

[Gatekeeper]

meraproxy.cfg.
. 6.1.3,
[Gatekeeper].

:

g a t e k e e p e r _ e n a b l e 1

gatekeeper_id
. :

gatekeeper_id=OwnMVTS

4.4.

H.323 PROXY
-
:
[H323] meraproxy.cfg
:

,
(1720)

r o u t e _ c a u s e [ L A R ]
meraproxy.cfg
(Q931 cause),
.

. 6.1.3
MERA VoIP Transit Softswitch v 2.1.8

31/209

4.5.


,
CDR-
RADIUS- .

4.5.1. CDR-
CDR

:

meraproxy.cfg
p e r i o d [b i l l i n g ]
(. 6.1.4 )

f i l e [ b i l l i n g ] ,

l e v e l

,
. 6.1.3
CDR-
( )
rotate.sh,

rotate.cfg .
4.5.2. RADIUS (RADIUS ACCOUNTING)
MVTS RADIUS
( RADIUS
, ..)
[R a d i u s ] meraproxy.cfg.
MVTS c RADIUS-
:

RADIUS-
, 1
acct_enable

RADIUS- a c c t _ a d d r e s s

RADIUS a c c t _ p o r t ( 1813)


RADIUS- l o c a l _ a c c t _ p o r t

,
. 6.1.3

MERA VoIP Transit Softswitch v 2.1.8

32/209

4.6.


RAS- MVTS
: ()
(p u b l i c _ a c c e s s ) IP- .

4.6.1.
IP
( ).
( p u b l i c _ a c c e s s )

[A d m i n i s t r a t i o n ]

meraproxy.cfg (. p u b l i c _ a c c e s s )
4.6.2. IP
(..
IP ), ,
.
4.6.3. RADIUS ( )

RADIUS,

RADIUS,
meraproxy.cfg:

local_address

a u t h _ e n a b l e

(,
(bind) RADIUS).
RADIUS.

s e c r e t RADIUS

a u t h _ a d d r e s s RADIUS

auth_port

l o c a l _ a u t h _ p o r t


RADIUS,
. [R a d i u s ]
(meraproxy.cfg).

4.7.



a d m i n _ g i d , b i l l i n g _ g i d s u p p o r t _ g i d
[C o n s o l e ] meraproxy.cfg
, ,

MERA VoIP Transit Softswitch v 2.1.8

33/209


.
,
setup.sh
, ( )
, [C o n s o l e ]
.

4.8.


, (dial peers),
dialpeer.cfg
meraproxy.cfg.

(dial peers) dialpeer.cfg.
. 5.5

4.9.


gateway.cfg

meraproxy.cfg.
MVTS ,
,
:

IP-


MVTS

IP-,

, (
)


( 1720)

,
(gatekeeper)

(0
, 1

(,
) .


MERA VoIP Transit Softswitch v 2.1.8

34/209


, , . 5.3

4.10.

RAS-
,
, ,
u s e r _ c f g meraproxy.cfg
( user.cfg).
, RAS-
, ,
1 g a t e k e e p e r _ e n a b l e
[Gatekeeper]
(meraproxy.cfg).
, RAS,
user.cfg ( ,

meraproxy.cfg).
,
5.2.3, 5.2.4.
,
6.1.4

4.11.

(GATEKEEPERS)
, c MVTS ,
gatekeeper.cfg (
,
meraproxy.cfg)
MVTS ,
,
, 5.4.
,

.

4.12.



:
(MVTS Manager),
email MVTS,
,
(meraproxy.cfg).
, ,

.

MERA VoIP Transit Softswitch v 2.1.8

35/209

4.12.1.

MVTS
.
MVTS
mail_alert (. . 6
)
, MVTS,

,
meraproxy.cfg

4.12.2.

, ,
()
-
MVTS, HASP ,

.

24 .
-
RAS-
(gatekeeper),
, .

, ,
,
RAS
(gatekeeper).
.
user.cfg

RAS-
(
),


( ).
RAS
:


user.cfg
MERA VoIP Transit Softswitch v 2.1.8

gatekeeper.cfg
36/209

user.cfg

gatekeeper.cfg

[Standby_PC]

[Main_MERA]

type=1

user=user_name

user=user_name

password=MyPass8

password= MyPass8

meraproxy.cfg

[Administration]

master_gatekeeper=Main_MERA

, ,
RAS . MVTS
GRQ GRJ 'resource
unavailable' (" ").
(
-),
,

RAS-.
MVTS
email , m a i l _ a l e r t
[A d m i n i s t r a t i o n ]

meraproxy.cfg.
24 ,
(
, ..).

24 ,
HASP ,
.

MERA VoIP Transit Softswitch v 2.1.8

37/209

,
, ,
HASP (
RAS
),
,
.

RAS-,

,
.

MERA VoIP Transit Softswitch v 2.1.8

38/209

5.
5.1.

MVTS

MVTS.
, MVTS,
.
, MVTS
.

5.1.1. MVTS
MVTS s t a r t
.
5.1.2. MVTS
MVTS s t o p
. s t o p MVTS
,
.
, MVTS .

5.2.

RAS-

5.2.1. MVTS RAS-


, ,
gateways.cfg, IP , ,
,
, MVTS, ,
MVTS , , ,
,
.
RAS .
5.2.2. RAS-

,
.
MVTS ,
, .
MERA VoIP Transit Softswitch v 2.1.8

39/209


5-1: RAS-

[ ]

MVTS


.
.

acct_enable

RADIUS
.
ani-


RADIUS
,
MVTS
.
.
, .
.
.
,


. .
4-

RTP
.
,

RTCP.
.
VocalTec Gateway.

Alerting Message


CallProceeding Message
.
(VocalTec, CISCO ..)
.

ani_allow
auth_enable
capacity

codec_allow

codec_deny

compatibility
datacap_deny
dst_translate

fake_rtcp

force_alerting
force_call_proceeding

gateway_type
group
MERA VoIP Transit Softswitch v 2.1.8

40/209

h323_gw_id
in_converter
in_dst_translate
in_src_translate
ip_precedence

local_address
min_asr

nat_rtp

no_port_clean
number

.
Source H323 Alias
.

RAS
,
,

(dial peers).
. IP-,

IP-
. 3 (
).
IP


(ASR) ,

RTP
.

(NAT).
.

(,
).

numbering_plan

( )
type:plan

password

.
user
.

proxy_type

.

. 0
,
1 .

, .
,
.
,

MERA VoIP Transit Softswitch v 2.1.8

41/209

reg_address
radius_gw_id

radius_uses_callid
rbt_timeout

route_cause

.
1.
IP
RADIUS VSA h323-gw-id
h323-remote-id,




Alert ProgressIndicator

,

src_translate

user

.

MVTS

(Radius).

validation_gap

,
.
.

validation_msg

,

.
.

,
6.1.4
5.2.3.
, MVTS
RAS, :

,
[ G a t e k e e p e r ]
(meraproxy.cfg , )
1.
: g a t e k e e p e r _ e n a b l e = 1

MERA VoIP Transit Softswitch v 2.1.8

42/209

(
) (
6.1.4)

reload
( 6.3.4.2)

config

5.2.4.
:

RAS-.

r e l o a d c o n f i g
( 6.3.4.2)

5.2.5.
:

5.3.

reload

config

5.3.1. MVTS

(p u b l i c _ a c c e s s = 0 ), MVTS
, - ,
, .
5.3.2.
MVTS
, .
5-2:

[ ]

MVTS

.
.
RADIUS .
IP .
ani-

acct_enable
address
ani_allow
MERA VoIP Transit Softswitch v 2.1.8

43/209


RADIUS
auth_enable
, MVTS

capacity
.
,
codec_allow
. .
,
.
codec_deny
.
4-
compatibility

datacap_deny
.

dst_translate
.
RTP .
,
fake_rtcp
RTCP. .
VocalTec Gateway.

Alerting
force_alerting
Message
force_call_proceeding
CallProceeding Message
.
(gatekeeper).
,
gatekeeper
, address
port

gateway_mode
. .
gateway_type
.

group
-
(dial peer).
Source H323 Alias
h323_gw_id
.
,
in_dst_translate

in_src_translate
(dial peer)
IP-,
ip_precedence
IP-
MERA VoIP Transit Softswitch v 2.1.8

44/209

local_address
mask
min_asr

nat_rpt
no_port_clean
number
numbering_plan
password
port

proxy_type
radius_gw_id

radius_uses_callid
rbt_timeout

route_cause
src_translate

user

MERA VoIP Transit Softswitch v 2.1.8

. 3 (
).
IP

.

(ASR) ,

RTP .

(NAT). .


(
)
type:plan


, .
1720.

. 0
,
1 .
RADIUS VSA h323-gw-id h323remote-id,



Alert ProgressIndicator


.
.

MVTS
(Radius).

45/209

validation_gap

-
,
.
.

validation_msg

,
.
.


MVTS .
MVTS ,
, . C
,
,
, .
5.3.2.1.

.


. ,
0. 0
, , 1
, .
,
. 1.

5.3.3.
:


( 6.1.4)

, (. 5.4)

reload
( 6.3.4.2)

config

5.3.4.
:

( 5.4)

MERA VoIP Transit Softswitch v 2.1.8

46/209

reload
( 6.3.4.2)

config

5.3.5.
.
:


dialpeer.cfg ( 5.4)

reload
( 6.3.4.2)

config

5.4.

(GATEKEEPERS)
5.4.1. MVTS
[ A d m i n i s t r a t i o n ]

meraproxy.cfg ,
:
g a t e k e e p e r _cfg

,
gatekeeper.cfg.
(
gateway.cfg)

gatekeeper.

,
,
g a t e k e e p e r . ,
a d d r e s s p o r t .
5.4.2.
5-3:

[]
address
id

.
IP DNS . .
.

MERA VoIP Transit Softswitch v 2.1.8

47/209

.
5 .
keepalive_type ,

IP ,
local_address
RAS

password
.
port
E.164
prefixes

security
MVTS .
terminal
MVTS .
type

user
keepalive

5.4.3. (GATEKEEPER)
(gatekeeper), :



( 6.1.4)


( 5.4)

reload

( 6.3.4.2)

config

5.4.4. (GATEKEEPER)
:

( 5.4)

reload

( 6.3.4.2)

config

5.4.5.
.
:

MERA VoIP Transit Softswitch v 2.1.8

reload

config

48/209


( 6.3.4.2)

5.5.

5.5.1. MVTS
dialpeer.cfg
(
meraproxy.cfg (. 6.1.3).
(dial peers).

( )
, .

(dial peers). ,
.
r e l o a d c o n f i g
( 6.3.4.2).

:


.
d s t _ t r a n s l a t e
(dial peer)

.
s r c _ t r a n s l a t e (dial peer)

,

. c o d e c _ a l l o w ,
codec_deny

,
c o d e c _ a l l o w c o d e c _ d e n y .
c o d e c _ d e n y
, c o d e c _ a l l o w .

:

,
codec_allow

, ,
c o d e c _ d e n y

MERA VoIP Transit Softswitch v 2.1.8

49/209

.
, c o d e c _ a l l o w (c o d e c _ d e n y ) ,
, ( ).

5.5.2.

( ) .
(dial peer) ,


d s t _ p a t t e r n s r c _ p a t t e r n
s r c _ p a t t e r n ,
.

, ,

, /
,
:
o g r o u p _ a l l o w g r o u p _ d e n y - ,
,
o g r o u p _ d e n y - g r o u p _ a l l o w , ,
g r o u p _ d e n y ,
o g r o u p _ a l l o w g r o u p _ d e n y
, ,
g r o u p _ a l l o w ,
o g r o u p _ a l l o w g r o u p _ d e n y ,

,

g r o u p _ a l l o w g r o u p _ d e n y

, gateway ,

( a c c e s s i b i l i t y = 1 .
6.3.4.3. , s h o w g w )

,
.
,
d s t _ p a t t e r n s r c _ p a t t e r n , gateway

AGAIN
(gateway=AGAIN),
MERA VoIP Transit Softswitch v 2.1.8

50/209


,
( 10).

. 5-5-1.

s r c _ p a tte r n ,
d s t_ p a tte r n


g r o u p _ a llo w , g r o u p _ d e n y

NULL

g a te w a y

A G A IN


NULL


d s t_ tr a n s la te ,
s r c _ tr a n s la te


c a p a c ity

5.5.3.
(dial peer) ,
.

5-4: (dial peer)

active_time

(dial
peer)

MERA VoIP Transit Softswitch v 2.1.8

51/209

bill_translate

,
.
(
,
dst_bill_translate
src_bill_translate.

MVTS)
. ,


,


,

.
.
( ),
.
,
.
,
.

capacity
dst_bill_translate

dst_exclude
dst_pattern

dst_translate
gateway
group_allow
group_deny

.

,
hunt_stop
,
, .


override_proxy_mode
(dial peer),
.
(dial peer).
priority
,
, .
.
Q931
q931_cause

gateway=NULL.
group_translate
hunt_mode

MERA VoIP Transit Softswitch v 2.1.8

52/209

src_exclude
src_bill_translate

.


()
,

.
.

src_pattern

src_translate


, , 5.5.2.
5.5.4.

( 6.1.7).
r e l o a d c o n f i g
( 6.3.4.2).
5.5.5.

.
r e l o a d c o n f i g (
6.3.4.2).
5.5.6. (LOOK_AHEAD_ROUTING)

.
, ,
, , ,
( ).
, ,
- (
, ReleaseComplete);
- , ;
- .
,
h u n t _ s t o p -
.
,
.
- (CallProceeding,
MERA VoIP Transit Softswitch v 2.1.8

53/209


Alerting, Progress) (
ReleaseComplete), .
(dial_peer) g a t e w a y
,
( )
.
,
( gateway.cfg),
.
:
1. ( Q931::Cause) ,
.
2. dialpeers.cfg (

).
3. h u n t _ s t o p ( 0)
.
AGAIN
gateway.
, g a t e w a y = A G A I N ,

d s t _ t r a n s l a t e , s r c _ t r a n s l a t e ,
( ).
, (dial peer)
,
,
- .
LAR ,
( ) ,
(dial peer) .

( AGAIN),
. .

AGAIN,
.

.
AGAIN!
.
[TEST1_DP]
MERA VoIP Transit Softswitch v 2.1.8

54/209


dst_pattern=1[0-9]*
src_pattern=[0-9]*
priority=100
hunt_stop=1
gateway=TEST1
[TEST2_DP]
dst_pattern=2[0-9]*
src_pattern=[0-9]*
priority=90
hunt_stop=0
gateway=TEST2
[TEST3_DP]
dst_pattern=2[0-9]*
src_pattern=[0-9]*
priority=80
hunt_stop=0
gateway=TEST3
[TEST4_DP]
dst_pattern=32[0-9]*
src_pattern=[0-9]*
dst_translate=.*/4&
src_translate=
priority=70
hunt_stop=0
gateway=TEST4
[AGAIN_DP]
dst_pattern=2[0-9]*
src_pattern=[0-9]*
dst_translate=.*/3&
src_translate=
priority=60
hunt_stop=0
gateway=AGAIN

222222.
:
TEST2_DP.
.
TEST2 .
- TEST3_DP. TEST3
.
- AGAIN_DP.
222222 -> 3222222, .
TEST4_DP.
. - 43222222.
MERA VoIP Transit Softswitch v 2.1.8

55/209

TEST3_DP hunt_stop=1 TEST3


, .
5.5.7.
.
:

g a t e w a y -
,

r e l o a d c o n f i g
( 6.3.4.2).

5.6.

5.6.1.
MVTS ,
. MVTS

(. 4.5.1).
billing/.
( )
FTP SCP .
, ,
.
( )
.
MVTS (. 5.8.4).
CDR-
, .
:
,
MVTS
.
5.6.2. CDR-

,
MERA VoIP Transit Softswitch v 2.1.8

56/209


[B i l l i n g ] ( 6.1.3).
CDR- billing/
(Admin Billing).

.
CDR . 6.1.8.
5.6.3. RADIUS

MVTS RADIUS
CISCO (CISCO Attribute 44 CISCO VSA [6]).
,
RADIUS, MVTS

meraproxy.cfg.
MVTS RADIUS , a c c t _ e n a b l e
1, a c c t _ a d d r e s s (
[Radius]) RADIUS .

6.1.2

5.7.



.
, (.
4.7, 6.3.1).
Admin

( 6.3.4.2).

5.7.1.
:

,
mp_shell.sh

show call.

,
. 6.3

MERA VoIP Transit Softswitch v 2.1.8

57/209


5.7.2.
Admin Support
s h o w
c a l l (. 6.3.4.2).
:


5.7.1 .

s h o w c a l l

.

,
. 6.3
5.7.3.
, :


mp_shell.sh

s h o w c a l l

,
, t e r m i n a t e c a l l

,
. 6.3
5.7.4.
s h o w
:

dial.


mp_shell.sh

s h o w d i a l ,
.

,
.
,
. 6.3
5.7.5.

:

MERA VoIP Transit Softswitch v 2.1.8

58/209


mp_shell.sh

s h o w s t a t

,
. 6.3

5.8.



. ,

(, G.711).
:
: ,
,
MVTS ..

5.8.1.
MVTS .
- ,
.
, .

.
:

5.8.2.
mp_kerneld.sh
s t a r t ,
core cores/ ( core-
).
.
5.8.3.
,
. MVTS
( ,
core-)
.
MERA VoIP Transit Softswitch v 2.1.8

59/209



.
, ,
, , ,
core-.
.

,

.
: MVTS
, core- ,
.
MVTS 5.8.3
.

5.8.4.

, 3.1.1 .

.

MVTS
MVTS Manager,
.
r e l o a d c o n f i g
,
MVTS

.
5.8.5.
MVTS
, MVTS.
. MVTS
logs_<date>_<time> logs/ (<date> <time>
).
.
. ,

FTP SCP.
:

MERA VoIP Transit Softswitch v 2.1.8

60/209

ASN.1

5.8.5.1.

.
.
.

.
.
- 120 .

. - log.


MVTS [Debug] (. 6.1.3
).
, logs/,
MVTS
.
:
MVTS.
.

MERA VoIP Transit Softswitch v 2.1.8

61/209

6.
6.1.

6.1.1.
(meraproxy.cfg, user.cfg, gateway.cfg,
gatekeeper.cfg, dialpeer.cfg)
, ,

, MVTS.
6.1.2.
.
,
.
:

0-9

.
,
.
:
[ Section ]

.
.
=.
, ;.
,

.
:
[ata3]
address=183.132.44.76;183.132.44.78;183.132.44.71;183.132.44.79;
address=183.132.44.77
:

MERA VoIP Transit Softswitch v 2.1.8

62/209


.
:

, # ()


,
.
0x,
0.

6.1.3.

$H323PROXY_ROOT/cfg/meraproxy.cfg
(.

3.1.3
) ,
.
.

.
:
[Administration]
gateway_cfg=gateway.cfg
dialpeer_cfg=dialpeer.cfg
user_cfg=user.cfg
gatekeeper_cfg=gatekeeper.cfg
mail_alert=skvair@mera.ru
max_call_duration=5000
min_call_duration=200
local_address=*
public_access=1
#master_gatekeeper=
[Console]
console_port=1730
admin_gid=0
billing_gid=0
support_gid=0
[H323]

port=1720
alternate_port=
#converter=

[Billing]
file=../billing/bill
MERA VoIP Transit Softswitch v 2.1.8

63/209


bil_tmpfile_attr=644
bil_file_attr=644
cdr_format=0
period=30:00
level=3
no_empty=1
[Debug]
trace_level=3
level=1
period=1:00:00
file=../debug/logs/log
debug_tmpfile_attr=664
debug_file_attr=664
no_empty=0
max_size=
max_lifetime=
[Radius]
local_address=*
auth_enable=0
acct_enable=0
acct_type=1
acct_leg_type=2
acct_boot_msg=0
acct_stop_only=0
acct_interim_update=30
auth_password_type=1
secret=strongsecret
auth_address=195.98.57.10
auth_port=1812
auth_password_type=0
acct_address=195.98.57.10
acct_port=1813
dst_user_orig_leg=1
local_auth_port=1644
local_acct_port=1645
local_route_port=1725
repeat_time=7
repeat_quantity=5
route_address=915.98.44.23
route_enable=1
route_port=1723
q931_h323_disconnect_cause=0
suppress_Q931_cause=0
use_h323_ivr_in=1
[BackupRadius]
local_address=*
auth_enable=
auth_address=
auth_port=
acct_enable=
acct_address=
acct_port=
repeat_time=7
repeat_quantity=5
route_enable
route_address
MERA VoIP Transit Softswitch v 2.1.8

64/209


route_port
local_auth_port=
local_acct_port=
local_route_port=
secret=strongsecret
[Gatekeeper]
gatekeeper_enable=1
gatekeeper_id=
ras_port=
mult_port=
mult_group=
[LAR]
route_cause=0-16;17-127
validation_gap=3000
[proxy]
read_route_table=0
alias_route_path=
local_ip_manager=192.168.1.1/120/120;192.168.1.2/64/64;192.168.1.3/512/256
local_ip_manager_mode=3

[SNMP]
trap_email=admin@noztel.com
trap_email_cmd=mail_script
trap_email_subject=new traps received
trap_email_from=MERA softswitch server 3
trap_email_period=02:00:00
local_port=161
conact_info=esquire@mear.com +78213995875
system_name=MAIN SILONET GK
system_location=
community=public
trap_community=
trap_address=194.23.122.14
trap_port=162
trap_level=5
trusted_address=126.44.23.15
trap_enable=1
snmp_enable=0
[S t a t i s t i c s ]

statistics_enable=1
file=../debug/stat
period=120:30
reset_after_save=1
time_span=
no_empty=1
asr_alert_email=admin@telnoz.com
call_radix=70
suspend_time=1440
call_sampling_number=45
set_route_asr=20
MERA VoIP Transit Softswitch v 2.1.8

65/209


stat_renewal_time=1440
smart_routing=1
route_statistics_enable=1
stat_email=admin@telnoz.com
stat_email_cmd=stat_script
stat_email_from=MERA Server 3
stat_email_subject=Latest call statistics

[Administration]

.
g a t e w a y _ c f g
, .
.
:
gateway_cfg = _

:
gateway.cfg

:
gateway_cfg = my_gateway.cfg

d i a l p e e r _ c f g
, .
.
:
dialpeer_cfg = _

:
dialpeer.cfg

:
dialpeer_cfg = my_dialpeer.cfg

u s e r _ c f g
, .

.
:
user_cfg = _

:
user.cfg

:
user_cfg = my_user.cfg

MERA VoIP Transit Softswitch v 2.1.8

66/209


g a t e k e e p e r _ c f g
, .
.
:
gatekeeper_cfg = _

:
gatekeeper.cfg

:
gatekeeper _cfg = my_ gatekeeper.cfg

m a i l _ a l e r t
E-mail ,
. .
:
mail_alert =

- e-mail , somebody@domain.ru.
:
mail_alert = admin@mera.ru

m a s t e r _ g a t e k e e p e r
,
(gatekeeper), RAS
.
, .
:

master_gatekeeper=<>
<> ,

gatekeeper.cfg
:
master_gatekeeper=Major_GK

m a x _ c a l l _ d u r a t i o n
( ).
100 1000000.
, MVTS
301 ( ).
:
max_call_duration=<>

MERA VoIP Transit Softswitch v 2.1.8

67/209


<> 100 1000000.
:
10000 (2. 46. 40.)

:
max_call_duration=3000

m i n _ c a l l _ d u r a t i o n

. , , 200
(, min_call_duration=200) ,
45,19 . ,
45 .,
45,21 . 46 .
:
min_call_duration=<>

<> 10 999.
:
500

:
min_call_duration=300

l o c a l _ a d d r e s s
IP-, MVTS ,

. .
:
local_adress = <address> *

<address> IP- * - .
:

default gateway .
:
local_address = *

MERA VoIP Transit Softswitch v 2.1.8

68/209


p u b l i c _ a c c e s s
IP ,
. .
:
public_access = 1 | 0

: 0
:
public_access = 0

[H323]

H.323 .
a l t e r n a t e _ p o r t
()
.
:
port = <>

<number>
:

:
port=1770

p o r t
.
:
port =

, .
:
1720

:
port = 1770

c o n v e r t e r

().

MERA VoIP Transit Softswitch v 2.1.8

69/209


:
converter=<>;<>

<>
converter_name/converter_ip_address/port/mode/type

c o n v e r t e r _ n a m e
c o n v e r t e r _ i p _ a d d r e s s IP
p o r t
m o d e ( g a t e w a y _ m o d e )
t y p e , (1 H323; 2 SIP)

;
:
converter= SIPconv/198.98.12.50/1720/3/2;H323conv/198.98.12.12/1720/3/1

[Billing]

.
p e r i o d
.
:
period = [[< >:] :]

:
15:00

:
period = 120:40

f i l e
,
( ).
:
file =

- AZ, az .
:
bill

:
file = ../billing/bill

b i l _ t m p f i l e _ a t t r
().
( ,
) UNIX- .
MERA VoIP Transit Softswitch v 2.1.8

70/209


0 7 (.. 000 111).
,
- ,
, .
,
1.
:
bil_tmpfile_attr = <>

<>

:
NIL

:
bil_tmpfile_attr=664

664 ( 110 110 100) :


110 1 . ; 1
; 0
110 1 . ; 1
; 0
100 1 . ; 0
; 0 .
:

, .
b i l _ f i l e _ a t t r
().
( ,
) UNIX- .
0 7 (.. 000 111).
,
- ,
, .
,
1.
:
bil_file_attr = <>

<>

:
NIL

MERA VoIP Transit Softswitch v 2.1.8

71/209


:
bil_file_attr=664

664 ( 110 110 100) :


110 1 . ; 1
; 0
110 1 . ; 1
; 0
100 1 . ; 0
; 0 .
:

, .
c d r _ f o r m a t
CDR-.
:
cdr_format=<>

0 1. 0 CDR-
MVTS , 1 CDR-
MIND CTI.
:
0

:
cdr_format=1

l e v e l
/ .
:
level =

, 0 1. 0
, 1 . , 1,
1.
:

:
level = 1

MERA VoIP Transit Softswitch v 2.1.8

72/209


n o _ e m p t y
/
. 1 -
.
:
no_empty = (1 0)

:
no_empty=1

[Debug]

.
m a x _ s i z e

( ) .
.
:
max_size=<>
<> - .

:
0 ( )

:
max_size=500

m a x _ l i f e t i m e

.

:
max_lifetime=<>
<> - .

:
0 ( )

:
max_lifetime=30

MERA VoIP Transit Softswitch v 2.1.8

73/209

l e v e l

(debug log). ,
.
:
level=<>

0 3.
:
3

:
level=2

t r a c e _ l e v e l

(trace log),
mp . k e r n e l . s h . l o g - < d a t e > . ,
.
:
trace_level=

0 3.
:
3

:
trace_level=2

p e r i o d
.
:
period = [[< >:] :]

:
120:00

:
period = 120:40

f i l e
, (
).

MERA VoIP Transit Softswitch v 2.1.8

74/209


:
file =

- AZ, az .
:
log

:
file = ../debug/logs/pr_statistics

d e b u g _ t m p f i l e _ a t t r
(debug-file).
( , )
UNIX- .
0 7 (.. 000 111).
, ,
, .
,
1.
:
debug_tmpfile_attr = <>

<>

:
NIL

:
debug_tmpfile_attr=664

664 ( 110 110 100) :


110 1 . ; 1
; 0
110 1 . ; 1
; 0
100 1 . ; 0
; 0 .
:

, .
d e b u g _ f i l e _ a t t r
(debug-file).
( , )
UNIX- .
MERA VoIP Transit Softswitch v 2.1.8

75/209


0 7 (.. 000 111).
, ,
, .
,
1.
:
debug_file_attr = <>

<>

:
NIL

:
debug_file_attr =664

664 ( 110 110 100) :


110 1 . ; 1
; 0
110 1 . ; 1
; 0
100 1 . ; 0
; 0 .
:

, .
n o _ e m p t y
/ .
1 -
.
:
no_empty = (1 0)

:
no_empty=0

[Console]

.
c o n s o l e _ p o r t
,
MERA VoIP Transit Softswitch v 2.1.8

76/209


.
:
console_port =

, .
:
1730

port = 1750
a d m i n _ g i d
. ,
.
:
admin_gid =

- , .
:
admin_gid = 101

b i l l i n g _ g i d
. ,
.
:
billing_gid =

- , .
:
billing_gid = 101

s u p p o r t _ g i d
.
,
.
:
support_gid =

- , .
:
support_gid = 101

[Gatekeeper]

.
.

MERA VoIP Transit Softswitch v 2.1.8

77/209


g a t e k e e p e r _ e n a b l e
/
. 1
, 0 .
:
gatekeeper_enable = <>

<> - 0 1
:
gatekeeper_enable=1

r a s _ p o r t
RAS- .
:
port =

, .
:
1719

:
port = 1771

m u l t _ p o r t
RAS- .
:
port =

, .
:
1718

:
port = 1770

m u l t _ g r o u p
RAS-
multicast).

(RAS

:
mult_group= <>

<> oct.oct.oct.oct.
:
224.0.1.41

MERA VoIP Transit Softswitch v 2.1.8

78/209


:
mult_group=224.0.135.17

g a t e k e e p e r _ i d
() .
:
gatekeeper_id = < >

< > -
:
MeraGK: <_>

:
gatekeeper_id=OwnMVTS

[Radius]


(RADIUS
)
.
l o c a l _ a d d r e s s
IP , (bind)
RADIUS.
:
local_adress = <address>

<address> .IP oct.oct.oct.oct *


:
local_address = *
local_address = 199.99.99.99

a u t h _ e n a b l e
RADIUS.
. 1 RADIUS , 0
RADIUS .
:
auth_enable = <>

<> - 0 1
MERA VoIP Transit Softswitch v 2.1.8

79/209


:
auth_enable=0

a c c t _ e n a b l e
RADIUS .
. 1 RADIUS
, 0 RADIUS
.
:
acct_enable = <>

<> - 0 1
:
acct_enable=0

a c c t _ t y p e
.
0, 1. 0 CISCO ( , overloaded
attribute 44), 1 CISCO VSA .
:
acct_type = <>

<> - 0 1
:

0
:
acct_type=1

a c c t _ l e g _ t y p e

1, 2, 3, 4 5

RADIUS

1 start/stop , answer
telephony;
2
originateVoIP;

start/stop

3 start/stop ,
answer telephony, originate VoIP
4 4 account-
RADIUS:
incoming leg:
h323-call-origin=answer
MERA VoIP Transit Softswitch v 2.1.8

80/209


h323-call-type=VoIP
h23-remote-address=IP-
h323-remote-id=ID
h23-gw-id=ID
h323-setup-time= setup'

outgoing leg:
h323-call-origin=originate
h323-call-type=VoIP
h23-remote-address=IP-
gatekeeper'
h323-remote-id=ID gatekeeper'
h323-gw-id=ID
h323-setup-time= setup'
5 4
account- answer leg. ,
(reroute)
:
start answer leg record
start originate leg record 1
stop originate leg record 1
start originate leg record 2
stop originate leg record 2
start originate leg record 3
stop originate leg record 3
stop answer leg record
:
acct_leg_type = <>

<> - 1, 2, 3, 4 5
:

2
:
acct_leg_type=2

a c c t _ b o o t _ m s g
/
(Accounting-on/Accounting-off).

:
acct_boot_msg = <>

MERA VoIP Transit Softswitch v 2.1.8

81/209


<> - 0, 1
:

1
:
acct_boot_msg=0

a c c t _ s t o p _ o n l y
RADIUS- stop-.
:
acct_stop_only = <>

<> - 0, 1
:
0

:
acct_stop_only=1

a c c t _ i n t e r i m _ u p d a t e

RADIUS- start stop
account .
:
acct_interim_update = <>

<> ,
. 0,
. 10,
,
10 .
:
0

:
acct_interim_update=0

a u t h _ p a s s w o r d _ t y p e
. 0, 1. 0 MD5
(RFC 2138). 1 ASCII
( MindCti).
:
auth_password_type = <>

MERA VoIP Transit Softswitch v 2.1.8

82/209


<> - 0 1
:

0
:
auth_password_type=1

s e c r e t
. ( shared secret)
RADIUS .
:
secret = <>

<> - .
:
secret = strongsecret

a u t h _ a d d r e s s
IP RADIUS.
:
auth_address = oct.oct.oct.oct

oct.oct.oct.oct - IP RADIUS .
:
auth_address = 195.88.97.20

a u t h _ p o r t
RADIUS.
:
auth_port =

, .
:
1812

:
port = 1813

a c c t _ a d d r e s s
IP RADIUS .

MERA VoIP Transit Softswitch v 2.1.8

83/209


:
acct_address = oct.oct.oct.oct

oct.oct.oct.oct - IP RADIUS .
:
acct_address = 195.88.97.20

a c c t _ p o r t
RADIUS .
:
acct_port =

, .
:
1813
:
acct_port = 1813

d s t _ u s e r _ o r i g _ l e g

UserName
(accounting packets of the originating leg),
RADIUS
:
dst_user_orig_leg=<number>

<number> 0 1
:
0

:
dst_user_orig_leg=1

:
a c c t _ l e g _ t y p e 4 5

q 9 3 1 _ h 3 2 3 _ d i s c o n n e c t _ c a u s e
Cisco
VSA(30) h323-disconnect-cause
(Q931 disconnect cause), ,
AccessReject RADIUS-,
(reject) RADIUS Q931 3 (destination
unreachable).

MERA VoIP Transit Softswitch v 2.1.8

84/209


:
q931_h323_disconnect_cause=<>

<> 0 1 . 1 , 0
.
:
0

:
q931_h323_disconnect_cause=1

: Q931 cause Release Complete,


, .,

.

l o c a l _ a u t h _ p o r t
RADIUS .
:
local_auth_port =

, .
:
1812

(2812 [BackupRadius])
:
local_auth_port=1644

: , , , j
,
[BackupRadius]
l o c a l _ a c c t _ p o r t
RADIUS
.
:
local_acct_port=<>

<> , ,
:
1813

MERA VoIP Transit Softswitch v 2.1.8

85/209


(2813 [BackupRadius])
:
local_acct_port=1845

: , , , j
,
[BackupRadius]
l o c a l _ r o u t e _ p o r t
,
.
:
local_route_port=<>

<> , ,
:
1814

(2814 [BackupRadius])
:
local_route_port=1844

: , , , j
,
[BackupRadius]
r e p e a t _ t i m e
RADIUS-
.
:
repeat_time=<>

<> , , 1 9
:
3

:
repeat_time=8

r e p e a t _ q u a n t i t y
RADIUS- .
MERA VoIP Transit Softswitch v 2.1.8

86/209


:
repeat_quantity=<>

<> , , 1 9
:
5

:
repeat_quantity=7

r o u t e _ a d d r e s s
,

.

:
acct_address = oct.oct.oct.oct

oct.oct.oct.oct - IP .
:
route_address=195.88.97.20

r o u t e _ e n a b l e
()
,
.
:
route_enable=<>

<> 0 1. 1 , 0
.
:
0

:
route_enable=1

r o u t e _ p o r t
r o u t e _ a d d r e s s .
:
route_port=<>

MERA VoIP Transit Softswitch v 2.1.8

87/209


<> ,

:
auth_port
:
route_port=1798

s u p p r e s s _ Q 9 3 1 _ c a u s e
RADIUS- 16
Q931- ,
. ,
16 Q931
() .
RADIUS
.
:
suppress_Q931_cause=<>

0 1
:
0

:
suppress_Q931_cause=1

u s e _ h 3 2 3 _ i v r _ i n
UserName
, RADIUS .
h 3 2 3 _ i v r _ i n Cisco AV-pair(1)
AccessAccept.
.
:
use_h323_ivr_in=<>

<> 0 1
:
0

:
use_h323_ivr_in=1

MERA VoIP Transit Softswitch v 2.1.8

88/209


:
a c c t _ l e g _ t y p e 1 4
[BackupRadius]

[B a c k u p R a d i u s ]

RADIUS ,
RADIUS ,
( a u t h _ a d d r e s s a u t h _ p o r t ).
[Radius],
:
acct_enable
acct_address
acct_port
auth_enable
auth_address
auth_port
local_auth_port
local_acct_port
local_route_port
route_enable
route_address
route_port
secret
repeat_time
repeat_quantity

.
: , ,
local_auth_port, local_acct_port local_route_port,
, [Radius]
[LAR]

(Look_ahead_routing)
r o u t e _ c a u s e
,
.
:
route_cause = <>;[< >]

<> () , ()
,

. ';'.

route_cause=0-127

MERA VoIP Transit Softswitch v 2.1.8

89/209


:
.

:
route_cause=0-16;18-127
NB! ,
release_complete 17 ( ),

v a l i d a t i o n _ g a p
( ) ,
- .
,
MVTS,
-

v a l i d a t i o n _ g a p ,

v a l i d a t i o n _ m s g (allProceeding, Progress, Facility, Alerting).


( ,

CallProceeding, , CallProceeding
Release_complete,
( )
,
CallProceeding)
:
validation_gap=<>

<>
- ,
.
:
0

validation_gap=3000
[proxy]

proxy
r e a d _ r o u t e _ t a b l e
0 1. 0
. 1
. ,
alias_route_path
MERA VoIP Transit Softswitch v 2.1.8

90/209


..
:
read_route_table=<>

<> 0 1.
:
0

read_route_table = 0
a l i a s _ r o u t e _ p a t h
.
:
alias_route_path=<path>;<path>;<path>

<path>
: / / IP-,
, ';
:

:
alias_route_path=1.1.1.1/255.255.255.255/123.345.678.12;1.2.1.1/255.2
55.255.255/211.123.111.4

l o c a l _ i p _ m a n a g e r

IP-.
30
. 0 ( )

.
:
local_ip_manager=<ip_address>/<RxMax>/<TxMax>/TcpPingAddress:Port

<ip_address> IP , <RxMax>
,
(/), <TxMax> ,
(/), TcpPingAddress:Port
, TCP-
. 30 ..
,
.
.
MERA VoIP Transit Softswitch v 2.1.8

91/209


:
0

:
local_ip_manager=192.168.1.1/120/120;192.168.1.2/64/64;192.168.1.3/512/256

l o c a l _ i p _ m a n a g e r _ m o d e
,
, l o c a l _ a d d r e s s ,
.
:
local_ip_manager_mode=<>

<> 0, 1, 2, 3
0 ;
1 ;
2 ;
3 ;
:
0
:
local_ip_manager_mode=3

[SNMP]

l o c a l _ p o r t
SNMP.
:
local_port=<>

<> ,
:
161

MERA VoIP Transit Softswitch v 2.1.8

92/209


:
local_port=161

c o n t a c t _ i n f o
..
:
contact_info=<> <>

<> <> - ,
.
:
conact_info=esquire@mear.com +78213995875

s y s t e m _ n a m e
.
:
system_name=<> <>

<> <> , () .
:
system_name=MAIN SILONET GK/PROXY

s y s t e m _ l o c a t i o n
.
:
system_location=<> <>

<> <> , () .
:
system_location=SEATTLE OFFICE, 5-th ALLEY

c o m m u n i t y
SNMP (SNMP community)
(access environment).
:
MERA VoIP Transit Softswitch v 2.1.8

93/209


community=<>

<> (SNMP
community), SNMP .
SNMP .
:
community=transCity

t r a p _ c o m m u n i t y
trap .
:
trap_community=<>

<> , .
:
trap_community=municipal

t r a p _ a d d r e s s
IP trap .
:
trap_address=<>

<> 32- IP
:
trap_address=194.23.122.14

t r a p _ p o r t
trap .
:
trap_port=<number>

<number> .
:
0
:
trap_port=162

MERA VoIP Transit Softswitch v 2.1.8

94/209


t r a p _ l e v e l
trap .
:
trap_level=<>

<> 0,1, 2, 3, 4 5
0 trap
1 (critical errors)
2 (non-critical errors)
3 (warnings)
4 (information)
5 (notification)
:
0
:
trap_level=1

t r u s t e d _ a d d r e s s
IP-, SNMP. ;.
:
trusted_address=<>

<> 32- IP
:
trusted_address=126.44.23.15

t r a p _ e m a i l
. trap.
:
trap_email=<>

<> . ,
$EMAIL$
:

MERA VoIP Transit Softswitch v 2.1.8

95/209


:
trap_email=admin@noztel.com

t r a p _ e m a i l _ c m d
(), .
.
:
trap_email_cmd=<>

<> - .
.
:

:
trap_email_cmd=((printf "From: mvts@\nTo: $EMAIL$\nSubject:
$SUBJECT$\n\n";cat $FILE$) | /usr/sbin/sendmail -B8BITMIME -f mvts@ F$FROM$ $EMAIL$)

t r a p _ e m a i l _ s u b j e c t
:
(Subject) , . .
:
trap_email_subject=<>

<> (
), : (Subject)
$SUBJECT$.
:

:
trap_email_subject=Routine trap report

t r a p _ e m a i l _ f r o m
(From) .
.
:
trap_email_from=<>

MERA VoIP Transit Softswitch v 2.1.8

96/209


<> ,
$FROM$.
:

:
trap_email_from=MVTS server No.3

t r a p _ e m a i l _ p e r i o d
.
.
:
trap_email_period=<[[<hours>:] minutes:] seconds>

<[[<hours>:]

minutes:] seconds>

:
00:00:00

:
trap_email_period=02:00:00

t r a p _ e n a b l e
/ trap-.
:
trap_enable=<>

<> 0 1. 1 , 0
.
:
0
:
trap_enable=1

s n m p _ e n a b l e
/ SNMP-
:
snmp_enable=<>

MERA VoIP Transit Softswitch v 2.1.8

97/209


<> 0 1. 1 SNMP-, 0
SNMP .
:
0
:
snmp_enable=1

Note: MIB .

[Statistics]

.
s t a t i s t i c s _ e n a b l e
/ .
:
statistics_enable=<>

<> 0 1.
0
1
:
1

:
statistics_enable=1

c a l l _ r a d i x
,
().
:
call_radix=<>

<> 10 500.
:
500

MERA VoIP Transit Softswitch v 2.1.8

98/209


:
call_radix=200

c a l l _ s a m p l i n g _ n u m b e r
,
().
:
call_sampling_number=<>

<> 1 ,
c a l l _ r a d i x .
:
50

:
call_sampling_number=70

f i l e
, (
).
:
file=<>

<> - AZ, az .
:

:
file=../debug/stat

p e r i o d
,
.
:
period = [[< >:] :]

MERA VoIP Transit Softswitch v 2.1.8

99/209

:
00:00

:
period=120:30

r e s e t _ a f t e r _ s a v e
.
:
reset_after_save=<>

<> 0 1. (reset_after_save=1)
, .
(reset_after_save=0)
.
:
0

:
reset_after_save=1

r o u t e _ s t a t i s t i c s _ e n a b l e
/ .
:
route_statistics_enable=<>

<> 0 1. 1 , 0
.
:
0

:
route_statistics_enable=1

s e t _ r o u t e _ a s r
ASR (
) ().

MERA VoIP Transit Softswitch v 2.1.8

100/209


:
set_route_asr=<>

<> 1 100.
:
20

:
set_route_asr=15

t i m e _ s p a n
t i m e _ s p a n ,

,
(
) .
:
time_span=[[<hours>:] minutes:] seconds

:
00:00:00

:
time_span=120:00

n o _ e m p t y
/ .
1 -
.
:
no_empty = (1 0)

:
0

:
no_empty=1

a s r _ a l e r t _ e m a i l
,
ASR (
MERA VoIP Transit Softswitch v 2.1.8

101/209


).
:
asr_alert_email=<>

<> .
:


:
asr_alert_email=admin@noztel.com

s m a r t _ r o u t i n g
/
.
:
smart_routing=<>

<> 0 1. 0
(smart routing).
:

0
:
smart_routing=1

s t a t _ e m a i l

.
:
stat_email=<>

<> - ,
$EMAIL$.
:


MERA VoIP Transit Softswitch v 2.1.8

102/209

:
stat_email=admin@noztel.com

s t a t _ e m a i l _ c m d
(), .
.
:
stat_email_cmd=<>

<> - .
.
:


:
stat_email_cmd=((printf "From: mvts@\nTo: $EMAIL$\nSubject:
$SUBJECT$\n\n";cat $FILE$) | /usr/sbin/sendmail -B8BITMIME -f mvts@ F$FROM$ $EMAIL$)

s t a t _ e m a i l _ f r o m
(From) .
.
:
stat_email_from=<>

<> ,
$FROM$.
:

:
stat_email_from=MVTS Server Statistics Manager

s t a t _ e m a i l _ s u b j e c t
:
(Subject) , . .
:
stat_email_subject=<>

MERA VoIP Transit Softswitch v 2.1.8

103/209


<> (
), : (Subject)
$SUBJECT$.
:

:
stat_email_subject=Routine call statistics

s t a t _ r e n e w a l _ t i m e
,
, (,
, MVTS).
:
stat_renewal_time=<>

<> .
0 525599 (.. 1 ). 0 .
:
720 (12 )
:
stat_renewal_time=1440

s u s p e n d _ t i m e

()
(ASR) . 1 525599 (..
).
:
suspend_time=<>

<> ,
( ).
:
30

:
suspend_time=50

MERA VoIP Transit Softswitch v 2.1.8

104/209

6.1.4. RAS-
RAS- (
) user.cfg
, (. 3.1.3).

.
:
[default]
u s e r =default

i p _ p r e c e d e n c e =3
g r o u p =RAS
p r o x y _ t y p e =1
c o d e c _ a l l o w =g7231;g711U64k
validation_gap=2000

[ata1]
user=ata
password=test
number=78312778790
ip_precedence=3
group=RAS
reg_address=255.125.125.046
capacity=40
compatibility=0x208
datacap_deny=2048
ani_allow=78312[0-9]*;7812[0-9]*
acct_enable=0
auth_enable=0
nat_rtp=1
fake_rtcp=0
force_alerting=0
force_call_proceeding=4000
gateway_type=1
p r o x y _ t y p e =1
route_cause=0-16;18-127
radius_remote_address=0
radius_uses_callid=0
rbt_timeout=
dst_translate=
src_translate=
in_dst_translate=77|.|.|32/774\332
in_src_translate=
number=78312775825
numbering_plan=33
dialpeer=ATA1
c o d e c _ a l l o w =g7231;g711U64k
codec_deny=g729
validation_gap=3500
validation_msg=7

:
,
MERA VoIP Transit Softswitch v 2.1.8

105/209


.

.
()
MVTS
(dialpeer.cfg).
. :
[ ata1 ]


RADIUS, RAS-
[d e f a u l t ].
u s e r u s e r = d e f a u l t (. ), RADIUS
( ; . a u t h _ e n a b l e =
[R a d i u s ] meraproxy.cfg).
,
, ,
[d e f a u l t ].
RAS- user=default
RADIUS-, RADIUS- AccessAccept
Cisco AV-Pair(1) xpgk-ep-number=< >.

RAS-, .
, AccessRequest RAS AccessAccept xpgk-epnumber=78312778708;78312788865,
78312778708 78312788865

gateway=ENDPOINTS,
RAS-.
u s e r
.
MVTS
RADIUS.
user [default]
:
user = <>

<> , ,

:
user = anyone

MERA VoIP Transit Softswitch v 2.1.8

106/209


p a s s w o r d
. .

.
:
password = < >

< > ,
.
'*'.
p a s s w o r d = *
RADIUS-.
, RAS-
user.cfg.
<user>|<passwd>.
:
password = Key0598E
password=*

i p _ p r e c e d e n c e

IP-,

:
ip_precedence = <>

<> [0..7]
:
3

( )

:
ip_precedence = 2

g r o u p
. .
:
group = <>

<> - .
:

RAS

MERA VoIP Transit Softswitch v 2.1.8

107/209


:
group = GROUP1

h 3 2 3 _ g w _ i d
Source H323 Alias, ,
.
.
:
h323_gw_id=< >

< > .
:
.

:
H323_gw_id=DistantGate

r e g _ a d d r e s s
IP RAS-.
:
reg_address = oct.oct.oct.

oct.oct.oct.oct - IP
:
reg_address = 195.128.97.20

c a p a c i t y
, MVTS
.
:
apacity =

, .
:
65535

:
apacity = 30

c o m p a t i b i l i t y
4- .

MERA VoIP Transit Softswitch v 2.1.8

108/209


.
.
, .
,
, (120
38) ,
.
, :
001 G711 A-law
0x02 G711 U-law
0x04 G729
0x08 G723
:
0x01 - T120
0x02 - T38
0x40
:
compatibility=<>

<> unsigned int,


.
:
0xFFFFFFFF

1:
[originator_GW]

compatibility=0x0105 (G711 A-law, G729, T120)

[terminating_GW]

compatibility=0x30C (G723, G729, T120, T38)

0x0105 AND 0x30C=0x0104
, terminating_GW
originator_GW.

2:
[originator_GW]

compatibility=0x0105 (G711 A-law, G729, T120)

MERA VoIP Transit Softswitch v 2.1.8

109/209



[terminating_GW]

compatibility=0x208 (G711 A-law, T38)

0x0105 AND 0x208=0x0000
, terminating_GW
originator_GW.

a l e r t _ p r o g _ i n d _ o r i g
ProgressIndicator Alert Progress.
ProgressIndicator,

.
ProgressIndicator , MVTS
.
:
alert_prog_ind_orig=<>

<> 0, 1, 2, 3, 4, 5, 8. 0
.
:
0

:
alert_prog_ind_orig=2

a l e r t _ p r o g _ i n d _ t e r m
ProgressIndicator Alert Progress.
MVTS ProgressIndicator
,
. ,
.
:
alert_prog_ind_term=<>

<> 0, 1, 2, 3, 4, 5, 8. 0
.
:
0

:
alert_prog_ind_term=2

MERA VoIP Transit Softswitch v 2.1.8

110/209

a n i _ a l l o w
, ..
, -,
ani_allow.
. src_number,

ani_allow.
:
ani_allow = < >

< > - ,
.
:
ani_allow=78312[0-9]*;7812[0-9]*

a c c t _ e n a b l e
RADIUS .
. 1 RADIUS
, 0 RADIUS
. ( RADIUS

RAS-

,
[Radius]
meraproxy.cfg)
:
acct_enable = <>

<> - 0 1
:
acct_enable=0

a u t h _ e n a b l e
RADIUS.
. 1 RADIUS , 0
RADIUS . (
RADIUS RAS
, [Radius]
meraproxy.cfg)
:
auth_enable = <>

MERA VoIP Transit Softswitch v 2.1.8

111/209


<> - 0 1
:
auth_enable=0

l o c a l _ a d d r e s s

.
IP .

l o c a l _ i p _ m a n a g e r _ m o d e [proxy]

meraproxy.cfg.

l o c a l _ a d d r e s s , ,
. ,
l o c a l _ a d d r e s s , ,
, ,
,
H245 / RTP
RTCP . RAS , ,
,
, l o c a l _ a d d r e s s
RAS-.
:
local_address=<>

<> IP , oct.oct.oct.oct (oct=0255)


:
local_address=195.88.57.123

m i n _ a s r
ASR (
),
. .
:
min_asr=<>

<> - 0 100,
. ASR
:
0

:
MERA VoIP Transit Softswitch v 2.1.8

112/209


min_asr=50

n a t _ r t p
RTP .
(NAT). .
:
nat_rtp = <number>

<number> - 0 1. 1 RTP
, H.245 , ,
RTP .
:

0
:
nat_rtp = 1

n o _ p o r t _ c l e a n
, .
,
( ),
RTP- ,
H.323 . (
, ,
MediaRing)
:
no_port_clean = <>

<> 0 1. ( no_port_clean=1)
, (0)
.
:
0
:
no_port_clean=1

f a k e _ r t c p
RTP . ,
RTCP. .
VocalTec Gateway. ( ,
.)

MERA VoIP Transit Softswitch v 2.1.8

113/209


:
fake_rtcp = <number>

<number> - 0 1. 1 RTCP
.
:

0
:
fake_rtcp = 1

f o r c e _ a l e r t i n g
, ,

Alerting Message .
:
force_alerting=<number>

<number> - 0 . 0
.
:

0
:
force_alerting=4000

: ,
Alerting Message. , VocalTec 2000 (,
Cisco)
.
.
f o r c e _ c a l l _ p r o c e e d i n g
, ,

CallProceeding Message ,
MVTS
Setup Message.
:
force_call_proceeding=<number>

<number> - 0 . 0
.
:

MERA VoIP Transit Softswitch v 2.1.8

114/209


:
force_call_proceeding=4000

: ,
C a l l P r o c e e d i n g M e s s a g e
H.323 (4 ),
, ( ,
, SMG .
)

g a t e w a y _ t y p e
. .
:
gateway_type = <number>

<number> - 0, 1, 2, 3 4. 0 . 1 CISCO, 2
VocalTec, 3 Samsung, 4 Media Ring.
:

0
:
gateway_type=1

p r o x y _ t y p e
.
(0 , 1
).
, , ,
.
,
. 1.
:
proxy_type = <flag>

<flag> [0,1]
:
1

:
proxy_type = 0

r a d i u s _ g w _ i d
RADIUS VSA h323-gw-id h323-remote-id,
. radius_gw_id
, h323-gw-id h323-remote-id IP
.
MERA VoIP Transit Softswitch v 2.1.8

115/209


:
Radius_gw_id=< >

< > .
:
.

:
radius_gw_id=DistantGate

r a d i u s _ r e m o t e _ a d d r e s s
,
RADIUS- IP- (gatekeeper) IP-
. 0 h323-remote-address
h323-remote-id IP- , 1
- IP- (gatekeeper)..
:
radius_remote_address=<>

< > 0 1.
:
0

:
radius_remote_address=1

r a d i u s _ u s e s _ c a l l i d

. ,
(
Vocaltec, ,

),

radius_uses_callid.
radius_uses_callid Radius
(confID)
(callID). 0 1. (0)
h323-incoming-conf-id h323-conf-id
, (1) call
ID ,
.
:
radius_uses_callid=<number>

<number> 0 1

MERA VoIP Transit Softswitch v 2.1.8

116/209


:
0

:
radius_uses_callid=1

r b t _ t i m e o u t
Alert
/ ProgressIndicator ( .).
.

validation_gap

v a l i d a t i o n _ m s g !
, v a l i d a t i o n _ g a p = 1 0 0 0 0 ,
v a l i d a t i o n _ m s g = 7 (..
10 . Connect)
r b t _ t i m e o u t = 9 (9 .), Connect
9 . Setup
eRBTTimeout.
:
rbt_timeout=<>

<>
:
0, ..

:
rbt_timeout=10

r o u t e _ c a u s e
,
.
:
route_cause = <>;[< >]

<> () ,
,

. ';'.

route_cause=0-127
:
.

:
route_cause=0-16;18-127
NB! ,
release_complete 17 ( ),

MERA VoIP Transit Softswitch v 2.1.8

117/209

s r c _ t r a n s l a t e , d s t _ t r a n s l a t e

(followup translation) (src_translate)
(dst_translate) . , ,
/

regexp,

, ,
|. ,
, \.

,
&. .
:
src_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]
dst_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]

regexp - regexp, str -


:


:

dst_translate = ....../78312&
778899 -> 78312778899

src_translate = 77|.|.|32/774\332
778832 -> 774832

d i a l p e e r
,
(dailpeer.cfg) gateway,

,
:
dialpeer = <>

<>
:
dialpeer=ATA1

MERA VoIP Transit Softswitch v 2.1.8

118/209

c o d e c _ a l l o w
C , .
. . .
:
codec_allow = 1; 2; 3

# .

g711A64k
g711A56k
g711U64k
g711U56k
g722_64k
g722_56k
g722_48k
g7231
g728
g729
g729A
is11172
is13818
g729B
g729AwB
g7231C
gsmFR
gsmHR
gsmEFR
NS:<_>

.
:
codec_allow = g729; g7231; g711U56k; NS:g729ar8

: ,
codec_deny.
c o d e c _ d e n y
C ,
. .
. .
:
codec_deny = 1; 2; 3

MERA VoIP Transit Softswitch v 2.1.8

119/209

# . ,
codec_allow.
:
.

:
codec_deny = g729; g7231; g711U56k

d a t a c a p _ d e n y
.
, ,
.
:
datacap_deny=<>

<>
.
enum DataCapability {
e_nonStandard=1,
e_t120=2,
e_dsm_cc=4,
e_userData=8,
e_t84=16,
e_t434=32,
e_h224=64,
e_nlpid=128,
e_dsvdControl=256,
e_h222DataPartitioning=512,
e_t30fax=1024,
e_t140=2048,
e_t38fax=4096,
e_genericDataCapability=8192
};

:
datacap_deny=2048

v a l i d a t i o n _ g a p
,
- .
,
MVTS,
-
MERA VoIP Transit Softswitch v 2.1.8

120/209

v a l i d a t i o n _ g a p ,

v a l i d a t i o n _ m s g (allProceeding, Progress, Facility, Alerting).


( ,

CallProceeding, , CallProceeding
Release_complete,
( ) ,
CallProceeding).

, ,
meraproxy.cfg
:
validation_gap=<>

<>
- .
:
0

:
validation_gap=3500

v a l i d a t i o n _ m s g

,
- , (

, validation_gap)

, .
: ,
TCP- H.245.
:
validation_msg = <>

<> ,

MERA VoIP Transit Softswitch v 2.1.8

121/209


:
, Alerting=1, CallProcessing=2, Progress=3,
Connect=7(), Facility=98. (
validation_gap)
:
validation_msg=7

i n _ c o n v e r t e r
,
RAS .
:
converter=<>

<> , c o n v e r t e r
[H323] meraproxy.cfg
:
converter=SIPconv

or
converter=H323conv

i n _ d s t _ t r a n s l a t e , i n _ s r c _ t r a n s l a t e
,
, (dial peers).
, -
164.
,
src_translate, dst_translate.
:
src_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]
dst_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]

regexp - regexp, str -


:


:

dst_translate = ....../78312&
778899 -> 78312778899

src_translate = 77|.|.|32/774\332
778832 -> 774832

MERA VoIP Transit Softswitch v 2.1.8

122/209


n u m b e r
.
.
dialpeer.cfg,
ENDPOINTS, :
[DIRECTNUMBERS]
dst_pattern=[0-9]*
priority=1000
gateway=ENDPOINTS
:
number = <>

<> ,
.
:
number = 78312775825

n u m b e r i n g _ p l a n
type:plan
, , National number + ISDN/telephony
numbering plan . [5] .
:
numbering_plan = <number>

<number> :

0
:
numbering_plan = 33

6.1.5.
gateway.cfg
(. 3.1.3).

.
:
,
.

MERA VoIP Transit Softswitch v 2.1.8

123/209



. .
:
[NNOV_KIS]
address=127.0.0.1
port=1720
capacity=30
ip_precedence=3
proxy_type=1
codec_allow=g711A64k;
g729
codec_deny=
g711U56k
datacap_deny=2048
compatibility=0x0105
group=GROUP1
acct_enable=1
auth_enable=1
nat_rtp=1
fake_rtcp=1
force_alerting=0
force_call_proceeding=4000
gatekeeper=nnov
gateway_type=2
gateway_mode=3
mask=255.255.255.0
rbt_timeout=10
route_cause=0-16;18-127
radius_remote_address=1
radius_uses_callid=0
dst_translate=
src_translate=
number=78123323232
in_dst_translate=77|.|.|32/774\332
in_src_translate=
validation_gap=3500
validation_msg=7
user=test
password=unknown
[ h323 ]

a d d r e s s
IP DNS- . .
, a d d r e s s
m a s k .
:
address =

IP , oct.oct.oct.oct (oct=0255),
DNS . : address
, 127.

MERA VoIP Transit Softswitch v 2.1.8

124/209


:
address=196.88.57.12
address=computer.mera.ru

a l e r t _ p r o g _ i n d _ o r i g
ProgressIndicator Alert Progress.
ProgressIndicator,

.
ProgressIndicator , MVTS
.
:
alert_prog_ind_orig=<>

<> 0, 1, 2, 3, 4, 5, 8. 0
.
:
0

:
alert_prog_ind_orig=2

a l e r t _ p r o g _ i n d _ t e r m
ProgressIndicator Alert Progress.
MVTS ProgressIndicator
,
. ,
.
:
alert_prog_ind_term=<>

<> 0, 1, 2, 3, 4, 5, 8. 0
.
:
0

:
alert_prog_ind_term=2

p o r t
.
:
port =

, .
MERA VoIP Transit Softswitch v 2.1.8

125/209


:
1720

:
port = 1780

c a p a c i t y
, MVTS
.
:
apacity =

, .
:
65535

:
apacity = 30

i p _ p r e c e d e n c e

IP-,

:
ip_precedence = <number>

number [0..7]
:
3

( )

:
ip_precedence = 2

: ip_precedence 3
,
3
.
c o d e c _ a l l o w
C , .
. . .
:
codec_allow = 1; 2; 3

g711A64k
g711A56k
g711U64k

MERA VoIP Transit Softswitch v 2.1.8

126/209

g711U56k
g722_64k
g722_56k
g722_48k
g7231
g728
g729
g729A
is11172
is13818
g729B
g729AwB
g7231C
gsmFR
gsmHR
gsmEFR
NS:<_>

.
:
codec_allow = g729; g7231; g711U56k; NS:g729ar8

: ,
codec_deny.
c o d e c _ d e n y
C ,
. .
. .
:
codec_deny = 1; 2; 3

. ,
codec_allow.
:
.

:
codec_deny = g729; g7231; g711U56k

c o m p a t i b i l i t y
4- .

.
.
MERA VoIP Transit Softswitch v 2.1.8

127/209


, .
,
, (120
38) ,
.
, :
001 G711 A-law
0x02 G711 U-law
0x04 G729
0x08 G723
:
0x01 - T120
0x02 - T38
0x40
:
compatibility=<>

<> unsigned int,


.
:
0xFFFFFFFF

1:
[originator_GW]

compatibility=0x0105 (G711 A-law, G729, T120)

[terminating_GW]

compatibility=0x30C (G723, G729, T120, T38)

0x0105 AND 0x30C=0x0104
, terminating_GW
originator_GW.

2:
[originator_GW]

compatibility=0x0105 (G711 A-law, G729, T120)

[terminating_GW]

MERA VoIP Transit Softswitch v 2.1.8

128/209



compatibility=0x208 (G711 A-law, T38)

0x0105 AND 0x208=0x0000
, terminating_GW
originator_GW.

d a t a c a p _ d e n y
.
, ,
.
:
datacap_deny=<>

<>
.
enum DataCapability {
e_nonStandard=1,
e_t120=2,
e_dsm_cc=4,
e_userData=8,
e_t84=16,
e_t434=32,
e_h224=64,
e_nlpid=128,
e_dsvdControl=256,
e_h222DataPartitioning=512,
e_t30fax=1024,
e_t140=2048,
e_t38fax=4096,
e_genericDataCapability=8192
};

:
datacap_deny=2048

g r o u p
.
.
:
group = <>

<> - .
MERA VoIP Transit Softswitch v 2.1.8

129/209

DEFAULT
:
group = GROUP1

a c c t _ e n a b l e
RADIUS .
. 1 RADIUS
, 0 RADIUS
. ( RADIUS

[Radius]
meraproxy.cfg)
:
acct_enable = <>

<> - 0 1
:
acct_enable=1

a u t h _ e n a b l e
RADIUS.
. 1 RADIUS , 0
RADIUS . (
RADIUS

[Radius]
meraproxy.cfg)
:
auth_enable = <>

<> - 0 1
:
auth_enable=1

n a t _ r t p
RTP .
(NAT). .
:
nat_rtp = <number>

<number> - 0 1. 1 RTP
, H.245 ,
MERA VoIP Transit Softswitch v 2.1.8

130/209


RTP .
:

0
:
nat_rtp = 1

n o _ p o r t _ c l e a n
, .
,
( ),
RTP- ,
H.323 . (
, ,
MediaRing)
:
no_port_clean = <>

<> 0 1. ( no_port_clean=1)
, (0)
.
:
0
:
no_port_clean=1

f a k e _ r t c p
RTP . ,
RTCP. .
VocalTec Gateway.
:
fake_rtcp = <number>

<number> - 0 1. 1 RTCP
.
:

0
:
fake_rtcp = 1

MERA VoIP Transit Softswitch v 2.1.8

131/209


f o r c e _ a l e r t i n g
, ,

Alerting Message .
:
force_alerting=<number>

<number> - 0 . 0
.
:

0
:
force_alerting=4000

: ,
Alerting Message. , VocalTec 2000 (,
Cisco)
.
f o r c e _ c a l l _ p r o c e e d i n g
, ,

CallProceeding Message ,
MVTS
Setup Message.
:
force_call_proceeding=<number>

<number> - 0 . 0
.
:

0
:
force_call_proceeding=4000

MERA VoIP Transit Softswitch v 2.1.8

132/209

: ,
C a l l P r o c e e d i n g M e s s a g e
H.323 (4 ),
, ( ,
, SMG .
)

g a t e k e e p e r
. ,
p o r t a d d r e s s ,
.
:
gatekeeper = <>

<> - ,
(gatekeeper.cfg)
:

:
gatekeeper=nnov

g a t e w a y _ t y p e
. .
:
gateway_type = <number>

<number> - 0, 1, 2, 3 4. 0 . 1 CISCO, 2
VocalTec, 3 Samsung, 4 Media Ring.
:

0
:
gateway_type = 1

g a t e w a y _ m o d e
. .
:
gateway_mode = <number>

<number> - 0, 1,2 3. 0
; 1 ,
; 2 ,
MERA VoIP Transit Softswitch v 2.1.8

133/209


; 3
;.
:

3
:
gateway_mode = 3

h 3 2 3 _ g w _ i d
Source H323 Alias, ,
.
.
:
h323_gw_id=< >

< > .
:
.

:
H323_gw_id=DistantGate

l o c a l _ a d d r e s s

.
IP .

l o c a l _ i p _ m a n a g e r _ m o d e [proxy]

meraproxy.cfg.

l o c a l _ a d d r e s s , ,
. ,
l o c a l _ a d d r e s s , ,
, ,
,
H245 / RTP
RTCP .
:
local_address=<>

<> IP , oct.oct.oct.oct (oct=0255)


:
local_address=195.88.57.123

MERA VoIP Transit Softswitch v 2.1.8

134/209

m a s k
.
,
address/mask.
:
mask = <number>

<number> - oct.oct.oct.oct.
:

255.255.255.255
:
mask=255.255.255.0

m i n _ a s r
ASR (
),
. .
:
min_asr=<>

<> - 0 100,
. ASR
:
0

:
min_asr=50

p r o x y _ t y p e
(0
, 1
). .
:
proxy_type = <flag>

flag [0,1]
:
1

MERA VoIP Transit Softswitch v 2.1.8

135/209


:
proxy_type = 0

r a d i u s _ g w _ i d
RADIUS VSA h323-gw-id h323-remote-id,
. radius_gw_id
, h323-gw-id h323-remote-id IP
.
:
Radius_gw_id=< >

< > .
:
.

:
radius_gw_id=DistantGate

r a d i u s _ r e m o t e _ a d d r e s s
,
RADIUS- IP- (gatekeeper) IP-
. 0 h323-remote-address
h323-remote-id IP- , 1
- IP- (gatekeeper)..
:
radius_remote_address=<>

< > 0 1.
:
0

:
radius_remote_address=1

r a d i u s _ u s e s _ c a l l i d

. ,
(
Vocaltec, ,

),

radius_uses_callid.
radius_uses_callid Radius
(confID)
(callID). 0 1. (0)
MERA VoIP Transit Softswitch v 2.1.8

136/209


h323-incoming-conf-id h323-conf-id
, (1) call
ID ,
.
:
radius_uses_callid=<number>

<number> 0 1
:
0

:
radius_uses_callid=1

r b t _ t i m e o u t
Alert
/ ProgressIndicator ( .).
.

validation_gap

v a l i d a t i o n _ m s g !
, v a l i d a t i o n _ g a p = 1 0 0 0 0 ,
v a l i d a t i o n _ m s g = 7 (..
10 . Connect)
r b t _ t i m e o u t = 9 (9 .), Connect
9 . Setup
eRBTTimeout.
:
rbt_timeout=<>

<>
:
0, ..

:
rbt_timeout=10

r o u t e _ c a u s e
,
.
:
route_cause = <>;[< >]

<> () , ()
() ,
. ';'.
MERA VoIP Transit Softswitch v 2.1.8

137/209

route_cause=0-127
:
.

:
route_cause=0-16;18-127
NB! ,
release_complete 17 ( ),

src_translate, dst_translate
(src_translate)
(dst_translate) . ,
, /

regexp,

, ,
|. ,
, \.

,
&. .
:
src_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]
dst_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]

regexp - regexp, str -


:


:

dst_translate = ....../78312&
778899 -> 78312778899

src_translate = 77|.|.|32/774\332
778832 -> 774832

n u m b e r
.
.
dialpeer.cfg,
ENDPOINTS, :
[DIRECTNUMBERS]

MERA VoIP Transit Softswitch v 2.1.8

138/209


dst_pattern=[0-9]*
priority=1000
gateway=ENDPOINTS
:
number = <>

<> ,
.
:
number = 78312775825

i n _ d s t _ t r a n s l a t e , i n _ s r c _ t r a n s l a t e
,
, (dial peers).
, -
164.
,
src_translate, dst_translate.
:
src_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]
dst_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]

regexp - regexp, str -


:


:

dst_translate = ....../78312&
778899 -> 78312778899

src_translate = 77|.|.|32/774\332
778832 -> 774832

v a l i d a t i o n _ g a p
,
- .
,
MVTS,
-

v a l i d a t i o n _ g a p ,

MERA VoIP Transit Softswitch v 2.1.8

139/209


v a l i d a t i o n _ m s g (allProceeding, Progress, Facility, Alerting).

( ,

CallProceeding, , CallProceeding
Release_complete,
() ,
CallProceeding).

, ,
meraproxy.cfg
:
validation_gap = <>

<>
.
:
0

:
validation_gap=3500

v a l i d a t i o n _ m s g
,

- , (
,
validation_gap)

, .
: ,
TCP- H.245.
:
validation_msg = <>

<> ,
:
Connect=7, Alerting=1, Progress=3, Facility=98. (

validation_gap)
:
validation_msg=7

MERA VoIP Transit Softswitch v 2.1.8

140/209

u s e r
.

RADIUS.
:
user=<>

<> , ,
, ,
$ i p $ , $ g r o u p $ , $ a n i $ ,
.

$ a n i $ , RADIUS
.
$ i p $ (IP ), $ g r o u p $ ( )
RADIUS
. 127.0.0.2
u s e r , , $ip$ (V : $ i p $ @ ) ,
V : 1 2 7 . 0 . 0 . 2 @
:
user=anyone
user=$ani$
user=V:$ip$@

p a s s w o r d
.
.
:
password = < >

< > ,
.
:
password = Key0598E

6.1.6. (GATEKEEPER)

gatekeeper.cfg

MERA VoIP Transit Softswitch v 2.1.8

141/209


(. 5.4.2).
.
:
,
.


, .
:
[ nnov_kis

a d d r e s s = 215.24.79.120
p o r t = 1719
type= 1
u s e r =skvair
password=

local_address=215.24.79.122
security=2
t e r m i n a l =0
k e e p a l i v e =30
p r e f i x e s =789#;889#

[ mera ] ,

a d d r e s s
IP DNS- . .
:
address = <>

<> IP , oct.oct.oct.oct (oct=0255),


.
:
address = 196.88.57.12
address = computer.mera.ru

i d
.
:
id = <> (, , .._

(, ..).
:
id=

MERA VoIP Transit Softswitch v 2.1.8

142/209


k e e p a l i v e
.
:
keepalive = < >

<>
. 5.
:
keepalive = 10

k e e p a l i v e _ t y p e
, .
:
keepalive_type=< >

<> 0 1. 0
, 1
.
:
0
:
keepalive_type=1

l o c a l _ a d d r e s s
IP ,
RAS .
:
local_address=<>

<> IP , oct.oct.oct.oct (oct=0255)


:
local_address=196.88.57.12

p a s s w o r d
.
:
password=< >

< > -
MERA VoIP Transit Softswitch v 2.1.8

143/209


:
password = 04efd7

p o r t
RAS .
:
port = <>

, .
:
1719

:
port = 1780

p r e f i x e s
, (
terminal = 0) E.164 (
terminal = 1).
:
prefixes = < >

<> E.164 ,
;
:
prefixes=789#;889#;775#

s e c u r i t y
Cc, .
:
security = < >

<> 0, 1, 2 3
0
source_alias="user|password"
1 - VocalTec
2 CISCO
3 CHAP
: 0
:
security=0

MERA VoIP Transit Softswitch v 2.1.8

144/209

t e r m i n a l
MVTS . 1
0. 1, , 0
. .
:
terminal = < >

<> [0,1]
:
0

:
terminal = 1

t y p e
MVTS .
1, MVTS ARQ
. Pregranted ARQ .
0, MVTS
LRQ.
:
type = < >

<> [0,1]
:

0 (MVTS
LRQ)
:
type = 1

u s e r

:
user = < >

<>
:
user = anyone

MERA VoIP Transit Softswitch v 2.1.8

145/209


6.1.7.
dialpeer.cfg
(. 3.1.3).

.
:

, .

(dial peer) .
.
:
[KIS]

d s t _ p a t t e r n =78312[0-9]*;78319[0-9]*
dst_exclude=
source_exclude=

s r c _ p a t t e r n =[0-9]*
d s t _ t r a n s l a t e = [0-9]*/78312778899
s r c _ t r a n s l a t e = 7831277|.|.|32/78312774\332
dst_bill_translate=
bill_translate=
hunt_stop=0
p r i o r i t y =10
g a t e w a y =NNOV_KIS
g r o u p _ a l l o w = GROUP1; GROUP2
g r o u p _ d e n y = GROUP3
group_translate=NEWGROUP/OLDGROUP
capacity=40
override_user=OtherUser
q931_cause=1

[KIS1]
active_time=1/08:00-5/20:00
dst_pattern =78312[0-9]*;78319[0-9]*
gateway =NNOV_KIS1
src_exclude=78312[0-9]*
dst_exclude=78095[0-9]*

[ moscow ] :
a c t i v e _ t i m e
C active_time
(dial_peer).
:
active_time=<DAY>/<HH:MM>-<day>/<hh:mm>

D A Y - (=1, =2 ... =7),


MERA VoIP Transit Softswitch v 2.1.8

146/209


d a y - (=1, =2 ... =7)
H H : M M - (, )
h h : m m - (, )
:
active_time=1/08:00-5/20:00


8 20 .
. a c t i v e _ t i m e
, .
capacity

. 0 65535.
:
apacity=<>

< > 0 65535


:
65535

:
apacity=200

b i l l _ t r a n s l a t e

.
, ,
, , .164.
(dial-peers) b i l l _ n u m b e r
dst_number,
,
dst_translate,

b i l l _ t r a n s l a t e ,
.
d s t _ t r a n s l a t e .

e m p t y .
, ( g r o u p _ t r a n s l a t e
dialpeer.cfg)

MERA VoIP Transit Softswitch v 2.1.8

147/209


:
$ani$ - ANI-
$dnis$ -
$bill_ani$ - ANI-
$bill_dnis$ -
$user$ -
$id$ ( CDR )
<time stamp MVTS>#<
>#
:
bill_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]
dst_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]

regexp - regexp, str -


:


:
[DIALPEER_TEST]
dst_pattern=[0-9]*
src_pattern=[0-9]*
dst_translate=..../1234#8812788&
bill_translate=..../7812788&
3264
:
dst_number=1234#88127883264
bill_number=7127883264
:
1.
src_translate=empty/$user$
2. :
src_translate=empty/$ani$

: b i l l _ t r a n s l a t e
,
dst_bill_translate src_bill_translate.
MVTS.
d s t _ b i l l _ t r a n s l a t e


().
d s t _ t r a n s l a t e
MERA VoIP Transit Softswitch v 2.1.8

148/209



e m p t y .
, ( g r o u p _ t r a n s l a t e
dialpeer.cfg)

:
$ani$ - ANI-
$dnis$ -
$bill_ani$ - ANI-
$bill_dnis$ -
$user$ -
$id$ ( CDR )
<time stamp MVTS>#<
>#
:
dst_bill_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]
dst_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]

regexp - , str -

:

:

dst_bill_translate
bill_translate,

d s t _ n u m b e r
d s t _ b i l l _ t r a n s l a t e
d s t _ e x c l u d e , s r c _ e x c l u d e
(. ),
.
:
src_exclude=<>; <>;
dst_ exclude=<>; <>;

<> - regexp .

MERA VoIP Transit Softswitch v 2.1.8

149/209

src_exclude -
dst_ exclude -
:
dst_ exclude = 78312.... ; 7095[0-9]*
src_exclude = 78414....

d s t _ p a t t e r n , s r c _ p a t t e r n
(dst_pattern)
(src_pattern) . regexp .
src_pattern - .
:
src_pattern = <>; <>;
dst_pattern = <>; <>;

<> - regexp .
:

dst_pattern -
src_pattern -
:
dst_pattern = 78312.... ; 7095[0-9]*
src_pattern = 78414....

d s t _ t r a n s l a t e , s r c _ t r a n s l a t e

(s r c _ t r a n s l a t e ) (d s t _ t r a n s l a t e ) .
, , /

regexp,

, ,
|. ,
, \.

,
&. .

e m p t y .
, ( g r o u p _ t r a n s l a t e
dialpeer.cfg)

:
$ani$ - ANI-
MERA VoIP Transit Softswitch v 2.1.8

150/209


$dnis$ -
$bill_ani$ - ANI-
$bill_dnis$ -
$user$ -

$id$ ( CDR )
<time stamp MVTS>#<
>#
:
src_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]
dst_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]

regexp - regexp, str -


:


:

dst_translate = ....../78312&
778899 -> 78312778899

src_translate = 77|.|.|32/774\332
778832 -> 774832

s r c _ b i l l _ t r a n s l a t e


().
s r c _ t r a n s l a t e
:
src_bill_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]
dst_translate =
regexp1[|regexp2[|regexp3]]/[str][\1][str][\2][str][\3][str][&]

regexp - , str -

:

g a t e w a y
,
MERA VoIP Transit Softswitch v 2.1.8

151/209


(dial peer).
AGAIN,

, .
NULL,
.
ENDPOINTS (
) NEXT (
dial-peer). ENDPOINTS

. NEXT AGAIN
,
(dial peer).
EXTERNAL
RADIUS .

gateway.cfg user.cfg,
,
.
.
:
gateway=<string >

string - ,
(AGAIN, ENDPOINTS, NULL, NEXT,
EXTERNAL)
:


:
gateway=Moscow

g r o u p _ a l l o w , g r o u p _ d e n y
,
.
. .
:
group_allow = <string1>; <string2>;
group_deny = <string3>; <string4>;

<stringN> - .
:

MERA VoIP Transit Softswitch v 2.1.8

152/209


:
group_allow = GROUP1; GROUP2
group_deny = GROUP3

g r o u p _ t r a n s l a t e
. .
:
group_translate=<string1>/<string2>;

<> - .
:


:
group_translate=OLDGROUP/NEWGROUP

h u n t _s t o p
, ,
,
(1- , 0
). .
:
hunt_stop =

- 1 0
:
0

:
hunt_stop = 1

h u n t _ m o d e

, gateway .
0, 1, 2, 3.
hunt_mode=0 ;
hunt_mode=1 10 , ,
.
hunt_mode=2 10
.
hunt_mode=3 10

.

MERA VoIP Transit Softswitch v 2.1.8

153/209

:
hunt_mode = <value>

<value> 0, 1, 2 3
:
0

:
hunt_mode=1

o v e r r i d e _ p r o x y _ m o d e

. 0, 1, 2, 3.
.
:
override_proxy_mode=<number>

<number> 0, 1, 2, or 3
0
1 (
)
2
3
:

:
override_proxy_mode=2

o v e r r i d e _ u s e r
()
( )
-
, .
:
override_user=<>

<> - ,
.
:

MERA VoIP Transit Softswitch v 2.1.8

154/209


:
override_user=OtherUser

p r i o r i t y
.
.
. .
:
priority=<number>

number - [0..65535]
:
1

:
priority=4

q 9 3 1 _ c a u s e
q 9 3 1 _ c a u s e , Q931

gateway=NULL. , = 1
, , .. ,
, .
:

q931_cause=<>
<> - 0 127.
:
q931_cause=0

6.1.8. (CDRS)
(billing
system) ,
.
6-1: (CDR)

CALLID

CONFID

MERA VoIP Transit Softswitch v 2.1.8

155/209

CONNECT-TIME

DIALPEER-NAME
DISCONECT-CODE-LOCAL

DISCONECT-CODE-Q931

Q931

DISCONNECT-TIME

DST-BYTES-IN

DST-CODEC

DST-IP

IP

DST-NAME

DST-NUMBER-BILL
DST-NUMBER-IN

,
()

DST-NUMBER-OUT

DST-USER

ELAPSED-TIME

HOST

MVTS

INITIAL-INCOMINGLOCAL-ADDRESS

IP-, Setup

LAR-FAULT-REASON
OUTGOING-LOCALADDRESS

LAR (
)
IP-

PROXY-MODE

QoS

RADIUS-USER

, RADIUS

u s e _ h 3 2 3 _ i v r _ i n
accounting- (. [Radius]
meraproxy.cfg)

RECORD-ID


<start-time>-<call-number>, <start-time> MVTS,
1-
1970 MVTS,

DST-BYTES-OUT

MERA VoIP Transit Softswitch v 2.1.8

156/209

<call-number> -
MVTS.

REMOTE-GATEKEEPER-IP

IP- (gatekeeper)

ROUTE-RETRIES

SELECTED-INCOMINGLOCAL-ADDRESS

IP-

SETUP-TIME

SRC-BYTES-IN

SRC-CODEC

SRC-IP

IP

SRC-NAME

SRC-NUMBER-BILL
SRC-NUMBER-IN

,
()

SRC-NUMBER-OUT

SRC-USER

SRC-BYTES-OUT

:
Fri Oct 12 17:13:50 2001, HOST=195.98.57.10, SRC-NUMBER=78312778794,
DST-NUMBER=78312788847, SRC-IP=195.98.57.27:1993, DSTIP=215.24.78.120:1720, SRC-USER=skvair, ELAPSED-TIME=6, SETUPTIME=17:13:38.000 +0400 Fri Oct 12 2001, CONNECT-TIME=17:13:40.000
+0400 Fri Oct 12 2001, DISCONNECT-TIME=17:13:46.000 +0400 Fri Oct 12
2001, DISCONECT-CODE-LOCAL=2, DISCONECT-CODE-Q931=8090, SRC-BYTESIN=5394, DST-BYTES-IN=3863, SRC-BYTES-OUT=3707, DST-BYTES-OUT=4823,
SRC-CODEC=g7231 , DST-CODEC=g7231 ,
CALLID=5108205609bfd511a30300002125184a,
CONFID=5208205609bfd511a30300002125184a, PROXY-MODE=0, ROUTERETRIES=3

DISCONNECT-CODE-LOCAL (
) . Error! Not a valid bookmark
self-reference.Error! Not a valid bookmark selfreference. B:
, MVTS
6.1.9.
.

.
MERA VoIP Transit Softswitch v 2.1.8

157/209



( 6.1.3).
1
, IP , /
.
:
<> <> <Recv/Sent> <IP > <> < >

, :
<> <> -
<Recv/Sent> - Recv - , Sent -
<IP > - , /

<> -
< > - ( H.323
[1])
:
12:16:47
12:16:47
12:16:47
12:16:47
12:16:47
12:16:47
12:16:47

12/09/2001
12/09/2001
12/09/2001
12/09/2001
12/09/2001
12/09/2001
12/09/2001

Recv
Sent
Recv
Sent
Recv
Sent
Recv

192.168.5.1:1813
192.168.5.1:1720
192.168.5.1:1720
192.168.5.1:1813
192.168.5.1:1720
192.168.5.1:1813
192.168.5.1:1813

Q.931
Q.931
Q.931
Q.931
Q.931
Q.931
Q.931

Setup
Setup
Facility
Facility
Connect
Connect
Facility

2 .
:
<> <> <Recv/Sent> <IP > <> < >

, :
<> <> -
<Recv/Sent> - Recv - , Sent -
<IP > - , /

<> -
< > - (
)
:
15:05:05 12/09/2001 Recv 192.168.5.1:2883
{
protocolDiscriminator = 8
callReference = 1
from = originator
messageType = Setup
IE: Bearer-Capability = {
88 c0 a5
}

MERA VoIP Transit Softswitch v 2.1.8

Q.931

...

158/209


IE: Display = {
4d 45 52 41 20 70 68 6f

6e 65 20 37 37 37 37 30

30

MERA phone
77770
0

}
}

6.2.

MVTS (/),

( start)
.
MVTS ,
. .

6.2.1.
MVTS
, .
6-2: MVTS
(mp_kerneld.x)

start

-h --help
-v --version





()




(pid-file)

(pidfile)

(pidfile)

-d --daemon
-u --uid uid
-g --gid gid
-p --pid-file

-t --terminate

-k --kill

-c --console

MERA VoIP Transit Softswitch v 2.1.8

159/209

start

-l --log-file

-x --execute
-i --ini-file

-C --core-size

()
syslog


syslog

()

,
':'

core-



.

:

bash-2.05$ ./mp_kerneld.x
error: must specify one of -v, -h, -t, -k, -d or -x
usage: [-c] -v|-d|-h|-x
-h --help
output this help message and exit
-v --version
display version information and exit
-d --daemon
run as a daemon
-u --uid uid
set user id to run as
-g --gid gid
set group id to run as
-p --pid-file
name or directory for pid file
-t --terminate
orderly terminate process in pid file
-k --kill
preemptively kill process in pid file
-c --console
output messages to stdout rather than
syslog
-l --log-file file
output messages to file or directory
instead of syslog
-x --execute
execute as a normal program
-i --ini-file
set the ini file to use, may be explicit
file or
a ':' separated set of directories to
search.
-C --core-size
set the maximum core file size

6.2.2. MP_KERNEL.SH
:

core-

MERA VoIP Transit Softswitch v 2.1.8

160/209


mp_kerneld.sh [cfg_file]

, bin/.
cfg_file -
meraproxy.cfg).

MVTS,
.

6.3.


,
: ,
.

6.3.1. ,
,

MVTS.
.
.
,
.

.
:

Admin
, ,
.
Support

,
MVTS.
Billing

.

GID
.
:

MVTS

MERA VoIP Transit Softswitch v 2.1.8

161/209

MVTS,

MVTS

6.3.2.

.

- ,
.
6.3.3.

mp_shell.sh (. 3.3.2.1).
MVTS.
:
Proxy server not found. Use command start
to run it.


.

:
#>


quit.

r e p e a t : ,
, .
,
.
:

1 MVTS

:
mp_shell.sh [command]

, command .
:
mp_shell.sh reload config

MERA VoIP Transit Softswitch v 2.1.8

162/209


repeat, , r e p e a t : ,
10 ,
Ctrl+C.

.
:
mp_shell.sh repeat: [command]

, command .
:
mp_shell.sh repeat: help

10
6.3.4.
MVTS :

: help

: reload config,
reset statistics, start, stop, stop gracious, terminate call, disable
gatekeeper

: show call, show dial, , show disconnect, show


dp, show gw, show stat, show route, show stat route, show ep, show
incoming, sh ipload, show stat file, show stat param

,

:
#>

,
.
6.3.4.1.

h e l p

.
, help ,
.
.
:
help

MERA VoIP Transit Softswitch v 2.1.8

163/209


:
#>help
List of command:
start [cfgfile]
- starts proxy server
stop
- stops proxy server
reload config
- reloads new configuration from config
...
terminate call call_number - terminates call with call_number
terminate call [-src oct.oct.oct.oct] [-dst -src oct.oct.oct.oct]
- terminates selected calls
quit
- quits from console
(for more detail information see system administrator guide)
#>

6.3.4.2.

r e l o a d c o n f i g [ - d ] [ - r a s ]
MVTS
.
d
.
ras RAS .
,
MVTS
.
Admin .
:
reload config

:
#>reload config
Configuration reloading ...
Reloading successful

r e s e t s t a t i s t i c s ( r e s t ) [ a l l | s r c | d s t | g w | d p ]
( ,
, / .).

MERA VoIP Transit Softswitch v 2.1.8

164/209


r e s e t s t a t a l l


r e s e t s t a t s r c | d s t | g w | d p
IP- ( ,
, , )
r e s e t s t a t s r c | d s t | g w | d p < n a m e >


s t a r t
MVTS, .
Admin.
:
start [_]

, _ (
meraproxy.cfg)
:
#> start myproxy.cfg
Try to start Mera H323 Proxy Server ...
Mera H323 Proxy Server started successfully.
#>

s t o p
MVTS.
Admin.
:
stop

:
#> stop
Starting shutdown system...
#>

s t o p g r a c i o u s ( s t o p g r a , s t o p g r )
,
MVTS,.
Admin.
:
stop gracious stop gra stop gr

:
#> stop gr
Starting shutdown system...
#>

t e r m i n a t e c a l l

MERA VoIP Transit Softswitch v 2.1.8

165/209


,
.
Admin.
:
terminate call <ICID>|<[-dst <oct.oct.oct.oct>] [-src
<oct.oct.oct.oct>]>

, :
ICID
-dst -
-src -
oct - [0..255]
:
#>terminate_call 125
Call #125 has been terminated.
#>

d i s a b l e g a t e k e e p e r ( d i g k )
, ,
(gatekeeper),

(reload config).
(gatekeeper).
,
(gatekeeper)
:
disable gatekeeper <gkname1> <gkname2>

, :
gkname (gatekeeper),

(gatekeeper)
:
.
. (.
gatekeeper.cfg)
. reload config
u n r e g i s t e r e n d p o i n t [ n u m ]

RAS-,
.
n u m RAS ( ,
s h o w
ep)

RAS .
MERA VoIP Transit Softswitch v 2.1.8

166/209


Admin.
:
unregister endpoint(id endpoint_id | addr endpoint_call_addr[:port])
:
un ep(id endpoint_id | addr endpoint_call_addr[:port])

, :
id
addr
:
#> un ep id 1:mera
#> un ep addr 195.99.45.12:1720
#> un ep addr 195.99.45.12

addr , 1720
6.3.4.3.

s h o w c a l l [ t a b l e ] [ n a m e ] ( s h c a [ t a ] [ n a ] )
,
, .
Admin , Support Billing.
[t a b l e ] .
(
112 )
#> s h c a t a n a
source
call

source_number

dest_number source

destination

time

destination

from

to

from

to

5 555512345678901> 41512114

h323_in_test_t> h323_out_out_o>

17

41K

41K

41K

41K

6 555512345678901> 41518258

h323_in_test_t> h323_out_out_o>

11

27K

27K

27K

27K

7 555512345678901> 41518994

h323_in_test_t> h323_out_out_o>

13K

13K

13K

13K

,
>.
.
[n a m e ] IP
.
:
show call [-dst <oct.oct.oct.oct>] [-src

MERA VoIP Transit Softswitch v 2.1.8

167/209


<oct.oct.oct.oct>]

,:
-dst

-src

oct

- [0..255]

, CSV.
.
6-3: , show call

ICID

Number_in

Number_out

Ip_in

IP ,

Ip_out

IP ,

Talk_time

show call <>

CSV.
.
6-4: , show call

ICID

Number_in

Number_out

Ip_in

IP ,

Ip_out

IP ,

CallID

ConfID
Time_setup

Time_connect

Talk_time

Bytes_in_src

MERA VoIP Transit Softswitch v 2.1.8

168/209

Codecs_used_in

Codecs_used_out

Bytes_out_src
Bytes_in_dst
Bytes_out_dst

:
#> show call -dst
124, 78312778899,
100543, 100453
125, 78127867234,
2543,
3443
126, 70953456732,
500346, 500143
#> show call 125

195.98.57.10
70951231212, 195.98.57.11, 195.98.57.10,
78312778890, 195.98.57.103, 195.98.57.10,

400,
120,

78312778895, 195.98.57.12, 195.98.57.10, 7300,

Call #125
Number in : 78127867234
Number out : 78312778890
Ip in : 127.0.0.3
Ip Out : 127.0.0.1
CallID: 0102030405060708090a0b0c0e0f
ConfID: 0102030405060708090a0b0c0e0f
Time setup: 10:45:15
Time connect: 10:45:18
Talk time : 120
Bytes in : 2543
Bytes out: 3443
Codec used in: G.729
Codec used out: G.723
#>
: show call table (sh ca ta),
112
.

s h o w d i a l

() .
dial peer .

, ,
, .
Admin, Support.
:
show dial <number_out> [number_in] [number_in group_in]

,:

MERA VoIP Transit Softswitch v 2.1.8

169/209


number_out - ( )
number_in - ( )
group_in - ( )
:
>show dial 5555 3333 TEST
Seach dialpeer for
Number In :3333
Number Out :5555
Group :TEST
Check dial peer MOBILE
failed
Check dial peer STOP
failed
Check dial peer KASAN
failed
Check dial peer KIS
failed
Check dial peer MOSCOW
failed
Check dial peer SAMARA
failed
Check dial peer TEST
valid
try to find gateway (STATIC:TEST)
gateway found
Gateway/Endpoint : Alias: TEST
group
: DEFAULT
ip_precendence: 3
proxy_type
: 1
capacity
: 300
current_load : 0
accessibility : 1
target_ip
: 195.98.57.10:1720
translate addresses
SUCCESS
Number In :3333
Number Out :5555
#>

s h o w d i s c o n n e c t ( s h d c )

. .
s h o w d p
,
, .
Admin , Support Billing.
:
show dp []

,
MERA VoIP Transit Softswitch v 2.1.8

170/209


,
.
6-5: , show dp

dialpeer

gateway

priority

hunt_stop

,
, ,

.

regexp.

dst_pattern
src_pattern
src_translate
dst_translate

group_allow

group_deny

:
>show dp MOBILE
Dialpeer
: MOBILE
gateway
: STATIC:NNOV_KIS
prio
: 2
hunt_stop
: 1
dst_pattern : 78312778797
src_pattern : [0-9]*
dst_translate: 78312778797/78319041303

>

s h o w g w

, ,
.
Admin, Support .
:
show gw [ip_address]

ip_address ( )
:
show gw
Gateway/Endpoint : Alias: SU29 E164: 78312778795
group
: DEFAULT
ip_precendence: 3

MERA VoIP Transit Softswitch v 2.1.8

171/209


proxy_type
:
capacity
:
current_load :
accessibility :
target_ip
:
Gateway/Endpoint :
group
:
ip_precendence:
proxy_type
:
capacity
:
current_load :
accessibility :
target_ip
:
#>

1
2
0
1
212.45.29.51:1720
Alias: TEST
DEFAULT
3
1
300
0
1
195.98.57.10:1720

s h o w i n c o m i n g < I P a d d r e s s > ( s h i n < I P a d d r e s s > )


(endpoint ID)

() (gateway.cfg),
.
Admin, Support .
:
show incoming <ip_address>
show in <ip_address>

ip_address ( )
:
#> sh in 195.27.88.12
Incoming Endpoint resolution for address 195.27.88.12
endpoint_id : 0:gway
#>

s h o w i p l o a d ( s h i p l o a d )
IP .
:
show ipload

:
#> sh ipload

#> sh ipload
Traffic load statistics for local addreses:
Mode: if all local address overloaded use default address
Address :175.50.98.121
Rx (kb/s): 1 - unlimited
Tx (kb/s): 1 - unlimited
Address :175.50.98.122
Rx (kb/s): 1 - unlimited
Tx (kb/s): 1 - unlimited

MERA VoIP Transit Softswitch v 2.1.8

172/209

s h o w r o u t e
produces the loaded table of call routing and can also show the local
address chosen by the proxy server for the called party
:
show route
:
sh route 195.99.55.23

s h o w s t a t [ f u l l | s r c | d s t | g w | d p ]


( ) (dialpeer).
Admin,
Support.
:
#> show stat full

:
s h o w s t a t f u l l .
show stat src|dst|gw|dp

(,
)
show

stat

src|dst|gw|dp

<name>

.
s h o w s t a t f u l l s h o w s t a t s r c | d s t | g w | d p .
.


#>s h o w s t a t f u l l
--------------------------------------- Originators -----------------------------------ASR % ACD QoS MaxL ActC TotalTime TotalCal Normal Failed
h323_in 100.00
0:00:04 0
1
0
0:00
1
1
0
--------------------------------------- Terminators -----------------------------------ASR % ACD QoS MaxL ActC TotalTime TotalCal Normal Failed
h323_out 100.00
0:00:04 0
1
0
0:00
1
1
0

MERA VoIP Transit Softswitch v 2.1.8

173/209


--------------------------- Dialpeers --------------------------ASR % ACD MaxL ActC TotalTime TotalCal Normal Failed
DP
100.00 0:00:04 1
0
0:00
1
1
0
#>s h o w s t a t s r c
ASR % ACD QoS MaxL ActC TotalTime TotalCal Normal Failed
h323_in 100.00 0:00:04
0
1
0
0:00
1
1
0
#>show stat dst
ASR % ACD QoS MaxL ActC TotalTime TotalCal Normal Failed
h323_out 100.00 0:00:04 0
1
0
0:00
1
1
0
#>show stat gw
ASR % ACD QoS MaxL ActC TotalTime TotalCal Normal Failed
h323_in 100.00 0:00:04 0
1
0
0:00
1
1
0
h323_out 100.00 0:00:04 0
1
0
0:00
1
1
0

#>s h o w s t a t d p
MaxL ActC TotalTime TotalCal Normal Failed
DP
1
0
0:00
1
1
0

6-6: , s h o w s t a t

ASR (Average
Success Rate)

. MVTS
ASR


100

ACD

QoS (Quality of
Servie)

,
RTP
RTP ,
100.

RTCP , ,

QoS

MERA VoIP Transit Softswitch v 2.1.8

174/209

. ( ,
, QoS )

MaxL (Max.
Load)

ActC (Active
Calls)

TotalTime

(/.)

TotalCal

Normal

Failed

,
, IP-.
#>s h o w s t a t g w h 3 2 3 _ o u t
h323_out as gateway
Statistic start time 15.07.03 13:21:19
Last update was at 15.07.03 13:21:23
Current ASR
100.00 %
Current ACD
0:00:04
Average QoS
0
Active calls maximum 1
Current active calls 0
Total calls duration 4
Total calls received 1
Normal calls
1
Zero normal calls 0
Failed calls
0
Zero failed calls 0
Total KBytes received 9
Total KBytes sent 9
Disconnect codes statistics:
Local disconnect code <-> Q931 cause
Originator normal (1) <-> No route to destination (3) 10
Originator normal (1) <-> Normal call clearing (16) 2008
Originator normal (1) <-> No answer from user (user alerted) (19) 56
Originator normal (1) <-> Call rejected (21) 13
Originator normal (1) <-> Normal, unspecified (31) 28
Originator normal (1) <-> Temporary failure (41) 1
Terminator normal (2) <-> Requested circuit/channel not available (44) 722
MERA VoIP Transit Softswitch v 2.1.8

175/209


Terminator normal (2) <-> Resource unavailable, unspecified (47) 7782
Terminator normal (2) <-> Bearer capability not implemented (65) 5
Dangling call (301) <-> Normal, unspecified (31) 1

Q931.
Table 6-7: , s h o w s t a t g w

Statistics start time

Last update was at

Current ASR


(ASR)

Current ACD

(:)

Average QoS

(QoS)

Active calls maximum

Current active calls

Total calls duration

,
IP (:.)

Total calls received

Normal calls

Zero normal calls

Failed calls

s h o w s t a t r o u t e [ a l l ] [ - d s t ] [ - s r c ] [ - d p ]
(sh st rt [all] [-dst] [-src] [-dp])

... (
) .
,
, .

200 .
:
FA (fully accessible)

PA (partially accessible)

NA (non-accessible)
MERA VoIP Transit Softswitch v 2.1.8

176/209

.
FA NA

ASR 200 20%

NA PA

30
NA

PA NA

ASR 20 20%

PA FA

ASR 20 20%

:
(30 , 200 20 , 20%
MVTS,
)
2.
,

.
.
3. 250 ,
, ,
.
1.

s r c

()

d s t

()

d p
()
a l l (s h s t r t a l l ),
.
,
, . :
#> . / m p _ s h e l l . x s h s t r t a l l > r o u t e _ s t a t . t x t

MERA VoIP Transit Softswitch v 2.1.8

177/209


:
#> sh st rt src TORONTO

mvks_syntet

ASR %(std)

ACD

QoS

MaxL

ActC

TotalTime

Normal

FailedStatus

100( 88)

0:04:23

46

5:50

80

0 FA(88)

TORONTO

MVKS_SYNTET

TORONTO

R192_NNOV

DELOVAYA

88( 81)

0:10:23

16:57

98

13 FA(81)

TORONTO

RODION_192

DELOVAYA

100( 50)

0:01:38

0:03

0 FA(50)

TORONTO

TORONTO

TORONTO

0:00:00

0:00

3 FA(0)

0(

0)

: MVTS ASR (
) ,

100.
ASR ( ASR
MVTS)
.
s h o w s t a t f i l e ( s h s t f i l e )

.
s h o w s t a t p a r a m ( s h s t p a )
,
,
#>sh st pa
Statistics parameters:
file period
: 86400
file name
: /usr/local/xpgk/stat/stat
file attribute
: 660
no empty flag
: 1
reset after save
: 0
span time
: 0
alert ASR email
: vozyakov@mera.ru
email alert ASR
: 30
statistics email
: vozyakov@mera.ru
stat email command : ((printf "From: mvts@\nTo: $EMAIL$\nSubject:
$SUBJECT$\n\n";cat $FILE$) | /usr/sbin/sendmail -B8BITMIME -f mvts@ -F$FROM$
$EMAIL$)
stat email subject : MVTS_statistic
stat email from
: MVTS_KIS_rack
route stat enable : 1
route call radix
: 500

MERA VoIP Transit Softswitch v 2.1.8

178/209


route suspend time :
route sampl.number :
route minimum ASR :
stat renewal time :
smart routing
:
--- Total objects in
originators : 15
terminators : 12
gateways
: 20
dialpeers
: 21
routes
: 91

1800
50
20
43200
0
statistics ---

s h o w e p [ n u m b e r ]
s h o w
ep

(end
points) . [number]
,
, ,
.
:
show ep [number]

6-8: , show ep

Num

Gateway/Endpoint
Endpoint ID

Username

dst/src IP

/ IP-

:
#>sh ep
Num : Gateway/Endpoint : Endpoint ID : Username : dst/src IP
---------------------------------------------------------------------------------8 : E164 : 757
: ilsy
: ilsy
: 193.28.55.102:1720
15 : E164: 78312773704 :
:
:
: E164: 3000
: nokia1
: nokia1
:24.101.126.44:1720
16 :
: nokia2
: nokia2
:24.101.126.43:1721
22 :
: phone1
: phone1
:192.93.59.100:1720
28 : E164: 3005
: kramnik
: kramnik
:24.101.4.76:1720
34 : E164: 3003
: my_home
:my_home
:24.103.152.108:1720

MERA VoIP Transit Softswitch v 2.1.8

179/209

6.4.

HASP LINUX
2003.
MVTS HASP Aladdin
Knowledge Systems,
(/ ),

.
,
, HASP :
,
.
,

HASP
24 .
HASP
,

.

HASP USB
.
MVTS
25-30 ,
.

MERA VoIP Transit Softswitch v 2.1.8

180/209

6.5.

MVTS
MVTS Management System (MVTS MS)
MVTS
MVTS. MVTS MS
,
UNIX
(
mp_shell)
, WIN32.
MVTS MS
, MVTS ,
MVTS.

MVTS MS MVTS Manager
Windows. MVTS MS,
Linux, MVTS . MVTS
, MVTS
MVTS.
TCP/IP. ,

-.

. 6-1
MVTS MS

:

MVTS

MERA VoIP Transit Softswitch v 2.1.8

181/209


(
gateway.cfg, gatekeeper.cfg, dialpeer.cfg, user.cfg)


(admin, billing, support)

, (dial peers)
(. ,

, ASR, ACD .)


( ,
, ..)

(gatekeepers)

(
,
, ,
..)

SNMP MVTS

SNMP MVTS

(
)

(CDR)

(
html)

6.5.1.
MVTS MS

MVTS MVTS
Windows.

root.
:
1. root
2.
MERA VoIP Transit Softswitch v 2.1.8

182/209


3. m v t s _ m a n a g e m e n t /
:
#> ./configure

4. ,
,
5. :
#> make install

6. - MVTS MS :
#> /sbin/service mvtsagnt start



Windows, , ,
.
MVTS manager,
SetupMVTSmgr.exe.
.

C : \ P r o g r a m F i l e s \ M V T S M a n a g e r
folder.

( MVTS Manager) .

Windows : Start -> Programs -> MVTS
Manager -> mpsh ( ) Start > Programs -> MVTS Manager -> MVTS manager (
).

MERA VoIP Transit Softswitch v 2.1.8

183/209

6.6.

WEB- WEB MONITOR


Web- MVTS Web Monitor
web-
MVTS web- (, MS Internet
Explorer Opera Web browser).
Web Monitor
MVTS Manager.
Web-
GUI.
Web Monitor MVTS

MVTS. Web MVTS .
( )
IP ,
. MVTS (
1730) Web-.

6.6.1. WEB-
Web Monitor
admin admin,
.

VoIP , MVTS,
, .
web- MVTS ( )
MVTS Address web-.
:,
:
https://<server IP address>:1730 https://<servername.com>:1730
web-
. 6-2.

MERA VoIP Transit Softswitch v 2.1.8

184/209

. 6-2 web-

, :


(dialpeers)
web- MVTS
,
.

. 6-3

MERA VoIP Transit Softswitch v 2.1.8

. 6-4 .

185/209



.
. 9 10.
.

(
,
).

VoIP , MVTS,
,
,
(dial peers). (, ,
, (dial peers))
. (

,

/ )

. ,
.
,
.
,
( .
6.6.2).

web-.
,
,

.

. 6-5

.

.
, ,
MERA VoIP Transit Softswitch v 2.1.8

186/209


.

.

. 6-6

,
(checkboxes).
:

/
)

/
( ,
, )

/ (

MERA VoIP Transit Softswitch v 2.1.8

187/209

/
( )

MVTS ,

(..

,
).

6.6.2.
web-
.

-
.
,
UNICODE/UTF-8, UNICODE/UTF-16.
:
LANGUAGE

ACD
ASR
Account
Accounts
Active_calls
Administrator_of_MVTS_server
Apply
Are_you_sure
Can_reset_statistics
Cancel
Change_password
Common_settings
Common_statistics
Create_account
Creating_account
Delete
Delete_account
Description
Detailed_dialpeer_statistics
Detailed_gateway_statistics

=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

.
.. ..
,
, LANGUAGE.


,
.
MERA VoIP Transit Softswitch v 2.1.8

188/209

. 6-7 web-


.
,
=.
:
LANGUAGE

= Spanish

ACD
ASR
Account
Accounts
Active_calls
Administrator_of_MVTS_server
MVTS
Apply
Are_you_sure
Can_reset_statistics
Cancel
Change_password

=
=
=
=
=
=

ACD
ASR
Cuenta
Cuentas
Llamadas activas
Administrador del servidor

=
=
=
=
=

Esta seguro?
Puede reajustar estadstica
Cancelacin
Cambiar la contrsea

... ... ... ... ...


..
,

, ,
LANGUAGE (. LANGUAGE = Russian).
UNICODE/UTF-8,-16
. ,

Browse (
, Web Monitor)
,
,
.

.
,
(
),
MERA VoIP Transit Softswitch v 2.1.8

189/209

. 6-8

. 6-9 ()

MERA VoIP Transit Softswitch v 2.1.8

190/209

7.

MVTS
,
,

1
(public_access=1)


.

RADIUS

RADIUS ,
(auth_enable=1)

(auth_enable=0)

MVTS .
0.

MERA VoIP Transit Softswitch v 2.1.8

,
,
.

191/209

CDR-
RAS-
MVTS (MERA
VoIP Transit
Softswitch)
(codec)

(dial peer)

, (
, ..).
IP (, ),
RAS .
, IP-,
IP .
.
.
(dial peers):
(POTS dial peer)
(VoIP dial peer)
, MVTS

.
, ,
MVTS, .


(billing system)

(runtime
journal)
(gateway)
, IP-
(PBX/PSTN) :
- PBX/PSTN
-
- PBX/PSTN
- , ( )
H.323 ,

.323
(gatekeeper)
. .323
,
.
.

.

AOH
ACD
ASR


(Average Call Duration)
(Average Success Rate)

MERA VoIP Transit Softswitch v 2.1.8

192/209

CDR
CSV
FTP
Oct
QoS

RAS

RTCP

RTP
SCP
VSA
MVTS

(. 6-6)
Call Detail Record ( )
Coma Separated Values (, )
File Transfer Protocol ( )
Octet
(Quality of Service) ,
RTP
RTP , 100.

RTCP , ,

QoS
. ( ,
, QoS )
Registration, Admission, and Status protocol. (
, ). .225 ,

. RAS

, ,
, .
Real-time Transport Control Protocol
(
)
Real-time Transport Protocol

Secure Copy (/ )
Vendor Specific Attribute - () ()
MERA VoIP Transit Softswitch

MERA VoIP Transit Softswitch v 2.1.8

193/209


,
, -
.


, .
.
(Character class)
, (
), . ,
'1[23]45' <1245> <1345>, ..,
<1>, <2> <3>,
<45>.
, , ,
. , '[^1-6]'
, 1 6.
, (Quantifiers)
,
, ,
(quantifiers).
, "1234+5", ,
"123", "4",
"5". ,
, .
:
:

*
+

0
.
, '12*' "1" "122".
1 .
, "12+" "12" and "122",
"1".
0 1 .

MERA VoIP Transit Softswitch v 2.1.8

194/209

{n}

{n,}

{n,m}

, '12(34)?' "12" "12"


"1234"
n - .
.
, '1{2}' "1" "121",
"1"' "2113".
n - . ,
n . , '1{2,}'
"1" "212", "1" "2111113".
'2{1,}' '2+'. '2{0,}' '2*'.
m n - , n <= m.
n m .
, '4{1,3} "4" "5444446".
'4{0,1}' '4?'.
.

'*' '+' .
, - , . ,
$test = "hello out there, how are you";
$test =~ m/h.*o/
" 'h',
, 'o'". , , "hello",
"hello out there, how are yo" - -
, , "".
, '?'. ,
$test = "hello out there, how are you";
$test =~ m/h.*?o/
"hello", , 'h',

, 'o'".


^ $. ,
"^thing" , "thing". "thing$"
, "thing".

MERA VoIP Transit Softswitch v 2.1.8

195/209

:

'|' .
- '(...|...|...)' .
""
$1, $2, ...,
$9.



. ,
'?:'.
,
$test = "Today is monday the 18th.";
$test =~ m/([0-9]+)th/
"18" $1,
$test = "Today is monday the 18th.";
$test =~ m/[0-9]+th/
- - .
$test = "Today is monday the 18th.";
$test =~ m/(?:[0-9]+)th/

'?:'.
,
:
$test = "Today is monday the 18th.";
$test =~ s/ the ([0-9]+)th/, and the day is $1/
"Today is monday, and the day is 18."
$test.
, ,
\1, \2, ..., \9.
:
$test = "the house is is big";
$test =~ s/\b(\S+)\b(\s+\1\b)+/$1/
"the house is big" $test.
--------------------------------------------------------------------MERA VoIP Transit Softswitch v 2.1.8

196/209

:
2.
MVTS
--------------------------------------------------------------------
:
dialpeer.cfg
- dst_pattern, src_pattern,
- dst_translate, src_translate
- dst_bill_translate, src_bill_translate
- user_translate
user.cfg; gateway.cfg
- dst_pattern, src_pattern,
- dst_translate, src_translate,
- in_dst_translate, in_src_translate


.
: ^0123456789*#\&
(
) ,
mp . k e r n e l . s h . l o g <date>

2.1 dst_patern, src_pattern


:
dst_pattern=777[0-9]+

(: , 777
)
: 77711, 777922
: 77811, 7771
dst_pattern=777[0-5].[0-9]+

(: 777,
0 5 )
. : 77711, 777422
. : 777, 77811, 77761, 7775,
dst_pattern=......

(: )
MERA VoIP Transit Softswitch v 2.1.8

197/209

.: 123456, 976065, 1
.: 1111111, 111

2.2
,
.
78 12345:
d s t _ t r a n s l a t e = 12345/78&

: 12345 7812345

78312 :
d s t _ p a t t e r n =. . . . . .
d s t _ t r a n s l a t e =.*/78312&

: 123456 78312 123456


: 654321 78312 654321

78312 , 777:
d s t _ p a t t e r n =777. . . . . .
dst_translate=[0-9]*/78312&

: 777123456 78312777123456
: 777121212 78312777121212


dst_translate=095|.*/\2
( : 095, ()
)

: 09512345 095 | 123456 123456

d s t _ p a t t e r n =8182. . . . . .
dst_translate=8182|[0-9]*/\2
( : 8182,.. 8182,
)

: 8182123456 8182 | 123456 123456


dst_pattern=8182......
dst_translate=8182|[0-9]*/777\2
( : 8182
777, )

: 8182123456 8182 | 123456 777 123456

MERA VoIP Transit Softswitch v 2.1.8

198/209

bill_translate=1212|.*/1718\2
( : 1212
1718, )

: 121212345 1212 | 12345 1718 | 12345 171812345


#
src_translate=[0-9]*|#|[0-9]*/\1\3
( : #, 1- 3-
)

: 123#45 123 | # | 45 12345

#,
dst_bill_translate=[0-9]*|#/\1

: 123456# 123456 | # 123456


dst_translate=....|/\177
( : 77 )

: 1234 123477


, ,
:
$ani$ - ANI
$dnis$ - DNIS
$user$ -
$bill_ani$ - ANI
$bill_dnis$ -
.
$id$ ( CDR )
<time stamp MVTS>#<
>#

:
MERA VoIP Transit Softswitch v 2.1.8

199/209

( )
dst_translate=.*/$ani$
src_translate=.*/$dnis$
$bill_ani$, $bill_dnis$ ,
, .. , in_ ,
(, i n _ d s t _ t r a n s l a t e , i n _ s r c _ t r a n s l a t e )

MERA VoIP Transit Softswitch v 2.1.8

200/209

RADIUS

RADIUS
RADIUS
h323-call-id ( )
h323-gw-id ( )
h323-gw-address (IP )
h323-remote-id ( )
h323-remote-address (IP )
xpgk-destination-user ( )
xpgk-h323-id (H.323 )
xpgk-src-number-in ( VTS)
xpgk-src-number-out ( VTS)
xpgk-dst-number-in ( VTS)
xpgk-dst-number-out ( VTS)
xpgk-initial-incoming-local-address ( IP-,
Setup )
xpgk-selected-incoming-local-address ( IP-
)
xpgk-outgoing-local-address ( IP-
)

RADIUS
dialpeer.cfg g a t e w a y E X T E R N A L ,
Radius-,
Radius-
AV-PAIR "xpgk-routingrequest=1".
Radius-: r e j e c t , ; a c c e p t ,
;

a c c e p t c ,
ID: o CISCO VSA ID=251 n e w _ u s e r n a m e / n e w _ p a s s w o r d
( , o v e r r i d e _ u s e r

MERA VoIP Transit Softswitch v 2.1.8

201/209

RADIUS

dialpeer.cfg). ,
u s e r 0 1 / q w e r t y ,
u s e r 0 1 q w e r t y
o CISCO VSA ID=252 5-, 6- :
gateway/proxy_mode/source/dest/src_bill/dst_bill/ip-address[:port]

, : g a t e w a y () gateway.cfg;
proxy_mode :
0 -
1 - ;
2 - ;
3 - ;
s o u r c e (s r c _ n u m b e r )
d e s t ,
(d s t _ n u m b e r )
s r c _ b i l l ;
d s t _ b i l l ;

ip-address[:port] IP , [:port]
. ,
- 1720
5 .
ID=251 . ID=252 ,
.

MERA VoIP Transit Softswitch v 2.1.8

202/209


MVTS ,
, ,
6000
,
1024.
,

,
,
.

,

.


Red Hat Linux :
1. ( ),

2. :
a.

/usr/src/linux-X.X.XXX/include/linux

limits.h

N R _ O P E N , fs.h I N R _ O P E N ,
8192.

b. posix_types.h _ F D _ S E T S I Z E 8 1 9 2
3.
4.
.
OC Red Hat, FreeBSD
($maxfiles)
, $maxusers.

:
$maxfiles=(20+$maxusers*16)*2
, FreeBSD
8000 (
20 ), OC,
maxusers 249, ..
MERA VoIP Transit Softswitch v 2.1.8

203/209


$maxfiles = (20+249*16)*2 = 8008
: maxusers
FreeBSD 384


maxusers
/usr/src/sys/i386/conf/GENERIC ,
, .

MERA VoIP Transit Softswitch v 2.1.8

204/209

MVTS

MVTS
, MVTS

:
#> rm -rf $H323PROXY_ROOT
#> vi /etc/profile #remove $H323PROXY_ROOT
#> runlevel
#> cd /etc/rc5.d
#> ls |grep mvts
#> rm -rf S50mvts
#> cd /etc/init.d
#> rm -rf mvts

MERA VoIP Transit Softswitch v 2.1.8

205/209

B: ,
MVTS

VoIP
MERA VoIP Transit Softswitch
H.323, :
CISCO (IOS-based, ATA 186)
VocalTec (VGW 1.4f+, VGK 1.3+)
Samsung (SMG 400, SMG 3200)
Nortel Networks (BCM, Succession)
Clarent (Clarent GK)
D-Link (DG-10xSH)
BosCom (Bosanova)
Well-Tech (SmartNode 1200, 1400, 2300, 2400)
AudioCodes (Mediant-2000, MP-104)
Quintum (Tenor Digital MaltiPath Switch)
Network Systems Group (NSGate)
soft- (Microsoft NetMeeting, VocalTec Phone Lite)

MVTS RADIUS

.
, :
IPSoft Billing
MIND CTI
Advanced VoIP Billing System
T-Soft Billing
PortaBilling
, Cisco

MERA VoIP Transit Softswitch v 2.1.8

206/209

B: ,
MVTS

B:
, MVTS
eCallerNormal=1 eCalledNormal=2
Release complete
/

eCallerDropTCP=3 eCalledDropTCP=4
Release complete
TCP /

eForceTerminateCall=100,
( MVTS,
terminate call)

eTimeoutTCPConnectH225=101
H225
3

eTimeoutConnectMsg=102
Connect Message 120

eTimeoutRBT=103
Alerting Message 30

eDestinationUnreachable=110
(dial peer)

eFailedTCPConnectH225=112
H225

eInvalidTPKTCaller=115 eInvalidTPKTCalled=119
, /
.
.

eDuplicateCallId=118
Call ID,
( )

eTimeoutSetupMsg=121
Setup Message 15 .

eTimeoutRouteAttempt=120

10 .

eTimeoutRTPidle=122

MERA VoIP Transit Softswitch v 2.1.8

207/209

B: ,
MVTS
180 . .

eFailedTCPConnectH245=123
H245

eInvalidSetupMsg=124,
Setup Message ( UserUser
Setup Message)

eMaxRerouteRetries=125,
10 (
look ahead routing)

eRadiusAdmissionCallerReject=200
eRadiusAdmissionCalledReject=207
Radius-

eGkClientAdmissionTimeout=201,
Admission Request (gatekeeper)
10

eGkClientAdmissionReject=203,
Admission
(gatekeeper)

Request

eSourceGatewayAniReject=205,
src_number ,
ani_allow RAS-

eRadiusAdmissionTimeout=206,
Radius- 10

eRadiusAdmissionRouteReject=208,
Radius-

eOutgoingDestNumberEmpty=212,
Setup CalledStationId.

eMaxSessionTime=300,
( Radius-
CISCO_H323_CREDIT_TIME)

eDanglingCall=301
(10000 ,
3- ), , .
NB!

NB!

Q931 . ITU-T
Recommendation Q.850

MERA VoIP Transit Softswitch v 2.1.8

208/209

C:
MIB

C:
MIB
1.3.6.1.2.1.1.1.0 (sysdescr)
1.3.6.1.2.1.1.2.0 MVTS (sysobjectid)
1.3.6.1.2.1.1.4.0 (syscontact)
1.3.6.1.2.1.1.5.0 (sysname)
1.3.6.1.2.1.1.6.0 (syslocation)
1.3.6.1.2.1.1.7.0 (sysservices)
1.3.6.1.2.1.1.8.0
1.3.6.1.4.1.999.10.1.0 (SNMPGetAcviveCalls)
1.3.6.1.4.1.999.10.2.0 5
(SNMPGetAvg5Calls)
1.3.6.1.4.1.999.10.3.0
(SNMPGetMaxCalls)
1.3.6.1.4.1.999.10.4.0 (SNMPGetUpTime)
1.3.6.1.4.1.999.10.5.0 (SNMPGetStatTime)
1.3.6.1.4.1.999.10.6.0 (SNMPGetCallDuration)
1.3.6.1.4.1.999.10.7.0 (SNMPGetReceivedCalls)
1.3.6.1.4.1.999.10.8.0 (SNMPGetNormalCalls)
1.3.6.1.4.1.999.10.9.0 (SNMPGetFailedCalls)
1.3.6.1.4.1.999.10.10.0 (rejected)
(SNMPGetRejectedCalls)
1.3.6.1.2.1.1.3.0 (sysuptime)

MERA VoIP Transit Softswitch v 2.1.8

209/209