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

1.

.............................................................3

1.1.

........................................................................................ 3

1.2.

...........................................................................4

1.3.

..........................4

1.4.

.......................................................................5

1.5.

NTP.......................................................................6

1.6.

................................................7

1.7.

........................................................................................... 7

1.8.

.......................................................................7

1.9.

Phobos Server............................................................................... 10

1.10

..............................................................11

1.11

.................................................11

2.

, ...............................................11

2.1.

................................................................................................ 11

. 1. Phobos Iptel....................................12
2.2.

SPAN-...................................................................................................... 12

2.3.

.................................................................................................. 12

2.4.

Iptel Core............................................................................................................ 12

2.5.

........................................................................................................... 13

2.6.

MFS..........................................15

2.7.

................................................................................................................... 15

2.8.

....................................................................................... 16

2.9.

......................................................................................... 20

2.10.

....................................................................21

2.11.

Phobos.................................................................................. 21

2.12.

USB-Key................................................................................ 22

2.13.

MFS.........................................................................22

3.

, ......................22

3.1.

SIP-..........................................................................23

3.1.1.

-.........................................23

3.1.2.

siproxd...........................................................................24

3.1.3.

.............................................................................. 24

3.2.

SCCP/SKINNY Cisco.........26

3.2.1.

skinny_proxy.........................................................................26

3.2.2.

skinny_proxy..................................................................27

3.2.3.

............................................................................ 28

3.3.

UNISTIM.......................................28

3.3.1.

unistim_proxy........................................................................28

3.3.2.

unistim_proxy......................................................................30

3.3.3.

.....................................................................30

3.3.3.1.

IP- Node......................................................30

3.3.3.2.

.....................................................31

3.4.

HFA/CornetIP Siemens.....31

3.4.1.

cornet_proxy.........................................................................31

3.4.2.

cornet_proxy.....................................................................32

3.4.3.

................................................................................. 32

3.5.

-..........................................32

4.

...............................................................33

, ,
. ,
.
IP-ATC - , VoIP: IP- IP- .
- IP-, IP-.
IP-ATC ,
, ..
.

Phobos Server.
.
Phobos
Iptel.
- .
() Ethernet- .
VoIP-.
- ,
VoIP- . VoIP.

1.
1.1.

Phobos Iptel,
.
,
64- .
,
Intel VT-. , BIOS
Intel VT-x. AMD
. 60,
, Phobos Server
.
1 ,
Phobos Server.
1 .
, :
. , ,

Ethernet: ,
VoIP-.
USB- USB. . 1
1 . USB-
.
.
,
, .
, -.
+1 USB-.

1.2.

ISO- .
DVD-ROM, USB-. DVD USB . BIOS.
. BIOS. .
:
ISOLINUX 4.04 2011-04-18 EHDD Copyright 1994-2011 H. Peter Anvin et al
Gentoo Linux Installation LiveCD
Enter to boot: F1 for kernels F2 for options.
Press any key in next 15 seconds or well try to boot from disk.
boot:

Enter :
livecd ~ #

. ,
:
livecd ~ # mount | grep iso9660
/dev/sdb on /mnt/cdrom/ type iso9660
/dev/sdb on /mnt/cdrom/ type iso9660

/dev/sdb, ,
USB- SCSI-.
, SATA DVD-:
livecd ~ # mount | grep iso9660
/dev/sr0 on /mnt/cdrom/ type iso9660
/dev/sr0 on /mnt/cdrom/ type iso9660

, SCSI /dev/sda , .
:
login: cat /proc/partitions
major minor
8

#blocks
0

name

244198584 sda

, , , 250
. 1024 , blocks. -
, ,
, .

, .
.
#/mnt/cdrom/iptel_paste /dev/sda

iptel_paste ,
, , ,
, .
,
, .
SATA- 3
.
, :
umount: /mnt/cdrom/opt: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)

:
#halt

. (
USB).

1.3.

.
.
,
: eth0,
eth1,
udev
, .
,
, , ,
eth. :
#dmesg | grep udev
[

4.290268] e1000e 0000:00:19.0 enp1s0: renamed from eth0

4.307264] systemd-udevd[413]: renamed network interface eth0 to enp1s0

4.331232] e1000e 0000:01:00.0 enp0s25: renamed from eth1

4.343265] systemd-udevd[412]: renamed network interface eth1 to enp0s25

enp1s0 enp0s25 .
udev

, ,
. ,
,
Ethernet eth. , lan. ,
.
,
#ethtool p enp1s0

enp1s0 , .
. Ctrl-C. MAC-:
# ifconfig enp1s0

enp1s0:

flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500


ether 00:1c:c0:a3:37:10 txqueuelen 1000 (Ethernet)
device interrupt 20 memory 0xe4100000-e4120000

MAC-.
:
#ethtool p enp0s25

MAC-:
# ifconfig enp0s25
enp0s25:
flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 00:1c:c0:a3:62:13 txqueuelen 1000 (Ethernet)
device interrupt 20 memory 0xe4100000-e4120000

/etc/udev/rules.d/70-persistent-net.rules,
, :
SUBSYSTEM=="net",
ACTION=="add",
KERNEL=="eth*", NAME="lan1"
SUBSYSTEM=="net",
ACTION=="add",
KERNEL=="eth*", NAME="lan0"

ATTR{address}=="00:1c:c0:a3:37:10

",

ATTR{address}=="00:1c:c0:a3:62:13",

ATTR{address} NAME .
, .
lan0 lan1. , lan0,
lan1.
-
(, .), /etc/udev/rules.d/70persistent-net.rules .

1.4.

lan0 IP . /etc/conf.d/net.
, vim,
- , Midnight Commender. ,
Norton Commander:
#mc
, -.
. , Enter - .
, ...
F4 - .
F2 - ;
Esc - ;
Clrl-O / .
, /etc/conf.d/net. .
- :
modules="!iproute2"
#config_lan0="192.168.3.139/22"
#routes_lan0="default via 192.168.0.1"

# ,
.
config_lan0 IP-
. , 22 255.255.252.0.
routes_lan0 .
() . ,
:
config_lan0="192.168.3.139/22 192.168.3.140/22 192.168.3.141/22"

lan0 192.168.1.139, lan0:1 192.168.1.140,


lan0:2 192.168.1.141. 255.255.248.0.


.
, :
#bzcat /usr/share/doc/netifrc-0.2.2/net.example.bz2 | less

1.5.

NTP

. ,
, SIP- (. . 3.1.3),
,
. , NTP-
.
/etc/ntp.conf <F4>:
- #,
server.
server IP- () .
.
<F2>, <F10>;
/etc/conf.d/ntp-client.
F4. , :
NTPCLIENT_OPTS="-s -b -u \
0.gentoo.pool.ntp.org 1.gentoo.pool.ntp.org \
2.gentoo.pool.ntp.org 3.gentoo.pool.ntp.org"

NTP-,
, :
NTPCLIENT_OPTS="-s -b -u 10.77.32.254 10.77.33.254"

: .
,
/usr/share/zoneinfo . :
# date
Mon May 28 13:40:52 MSK 2015
# date s 13:44
Mon May 28 13:44:00 MSK 2015

:
#hwclock -w

ntp-client ntpd:
/etc/init.d/ntp-client start
* Starting ntp-client
/etc/init.d/ntpd start
* Starting ntpd

[ ok ]
[ ok ]

. ntpq -p,
:
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
192.168.0.1 77.233.172.7 3 u 16 64 3 0.170 -233210 13.615

reach 377.
, .
ntpd ntp-client :
#rc-update add ntp-client default
#rc-update add ntpd default

ntp-client , ntpd
.

1.6.


, .. ,

. ,
,
. , .
:
#cd /usr/local/opt/iptel/etc
#ls -l iptel.conf*
# lrwxrwxrwx 1 root root
18 Apr 13 23:06 iptel.conf -> iptel.conf.unistim
-rw-r--r-- 1 root root 1335 Apr 13 22:01 iptel.conf.alcatel
-rw-r--r-- 1 root root 1463 Apr 13 22:01 iptel.conf.h323
-rw-r--r-- 1 root root 1333 Apr 6 17:13 iptel.conf.iax
-rw-r--r-- 1 root root 1318 Apr 6 17:13 iptel.conf.lync
-rw-r--r-- 1 root root 1200 Apr 6 17:13 iptel.conf.mgcp
-rw-r--r-- 1 root root 2613 Apr 13 18:28 iptel.conf.sigtran
-rw-r--r-- 1 root root 1428 Apr 13 21:59 iptel.conf.sip
-rw-r--r-- 1 root root 1473 Apr 13 20:16 iptel.conf.skinny
-rw-r--r-- 1 root root 1491 Apr 13 22:01 iptel.conf.smpp
-rw-r--r-- 1 root root 1309 Apr 13 22:01 iptel.conf.unistim

iptel.conf
iptel.conf.unistim
Nortel, Unistim.
SIP-.
:
#ln sf iptel.conf.sip iptel.conf

Avaya,
DCP H.323:
#ln sf iptel.conf.h323 iptel.conf
#rc-update add h323_dec default

1.7.

: . -

Cisco SPAN Switched Port Analysis.


, lan1 ,
. ,
. ,
RSPAN Remote SPAN. SPAN- ,
. .

1.8.

, . .
, , 60
. , ,
.
, . 8 .
. :
#fdisk /dev/sda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes


Disklabel type: dos
Disk identifier: 0xfd6856a0
Device
/dev/sda1

Boot Start
End Sectors Size Id Type
*
2048 16779263 16777216
8G 83 Linux

Command (m for help): n


Partition type
p
primary (1 primary, 0 extended, 3 free)
e
extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2):
First sector (16779264-976773167, default 16779264):
Last sector, +sectors or +size{K,M,G,T,P} (16779264-976773167, default 976773167):
Created a new partition 2 of type 'Linux' and of size 457.8 GiB.
Command (m for help): t
Partition number (1,2, default 2): 2
Hex code (type L to list all codes): 7
Changed type of partition 'Linux' to 'HPFS/NTFS/exFAT'.
Command (m for help):wq
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy
The kernel still uses the old table. The new table will be used at the next reboot
or after you run partprobe(8) or kpartx(8).

fdisk
. , .

# reboot

/dev/sda2 . ,
:
# fdisk /dev/sda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): p
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xa545a8ea
Device
/dev/sda1
/dev/sda2

Boot
*

Start
End
Sectors
Size Id Type
2048
16779263
16777216
8G 83 Linux
16779264 1953525167 1936745904 923.5G 7 HPFS/NTFS/exFAT

Command (m for help): q


#

. :
, , .., ..
(MBM)
/root/qemu_run. . :
#!/bin/bash
qemu-system-x86_64 -boot cd -smp 2 -soundhw sb16 -m 2048 -vnc 127.0.0.1:0 \
-net nic,macaddr=a0:1a:64:49:ab:e1,model=rtl8139 \
-net tap,script=/etc/qemu-ifup,ifname=tap0 \
-enable-kvm \
-hda /dev/sda2 \
-monitor telnet:127.0.0.1:4444,server,nowait \
-cdrom /dev/sr0

. 1.
. .
, .

1.

-boot cd

, CD-ROM,
.

-smp 2

2 .

-soundhw sb16

Sound Blaster ( ?). ,


.

-m 2048

2 .

-vnc 127.0.0.1:0

VNC-. 0.0.0.0:0
VNC Viewer.
VNC-, .
:0 TCP- 5900. , ,
.

Realtek 8139 MAC-net nic,


macaddr=a0:1a:64:49 . TAP- tap0,
:ab:e1, model=rtl8139 /etc/qemu-ifup.
-net tap,
script=/etc/qemu-ifup,
ifname=tap0

-enable-kvm

-hda /dev/sda2

4444 .
- monitor
telnet:127.0.0.1:4444, , ,
,
server,nowait
.

-cdrom /dev/sr0

CD/DVD- CD-ROM
. ISO
Windows.

,
:
# qemu-system-x86_64 -h | more

, , , .
:

# /etc/init.d/qemu start
* Starting qemu

[ ok ]

.
# /etc/init.d/xdm start
* Starting xdm

[ ok ]

. login=root,
password=1.
Windows. VNC-.
. . ,
. . .
,
. ,
/etc/qemu-ifup, , ,
br0,
lan0 tap0.
.
Ctrl-Alt-Fn
, Fn F1, , F7.
1, , 7. 7-
.
1: Clrl-Alt-F1.
:
#
*
#
*

rc-update add qemu default


service qemu added to runlevel default
rc-update add xdm default
service xdm added to runlevel default

Windows
. ,
=root, =1 Windows.
Windows .
/ / /.
.
. Ok. -, -.
, .

1.9.

Phobos Server

MS SQL Server.

SQL
2005
Express,

ftp://ftp.vocord.ru/priv/ph_2_2_15/SQL/SQL2005%20Express.pdf.
:
ftp://ftp.vocord.ru/priv/ph_2_2_15/SQL/SQLEXPR_ADV_2005SP4_x86_RUS.exe.EXE
, .
Phobos System. .
/.Phobos system/. , .
/.
Iptel, .
/ /PHOBOS System/.
, . . - .
/.
. Iptel (3- ).
, .

Regedit.exe.

HKEY_LOCAL_MACHINE\SOFTWARE\Vocord Telecom\PhobosInstallOptions.
INSTALLDIR, Ctrl-Ins.
: C:\Program Files\Vocord Telecom\Phobos System\.

D8Service1, INSTALLDIR
Shift-Ins.

E:\Program
Files\Vocord
Telecom\Phobos
System\D16Proxy.ini, :
IpTel:0:192.168.0.218:10230:128

IP- 192.168.0.218. .
PhNotifyserv.
64 ( 128 D16Proxy.ini, 2)
.
/.Phobos system/ .
IP- / /.
, B- * (
, ).

, B- * .
, - .
, ,
, ,
.

1.10
-
,
DVD-ROM, ,
1.2 .
:
# mkfs.ext3 /dev/sda1
mke2fs 1.42.12 (29-Aug-2014)
/dev/sda1 contains a ext3 file system
created on Thu May 14 21:34:52 2015
Proceed anyway? (y,n)

,
. ,
y Enter.

1.11
,
. , Windows
, ,
LILO. , -
.
:
#dd if=/dev/zero of=/dev/sda bs=512 count=1024

1 ,
Vocord D8, D8Service
. ,
D16Proxy.ini. .

1+0 records in
1+0 records out
512 bytes (512 B) copied, 3.1804e-05 s, 16.1 MB/s
#halt

2. ,
2.1.

, . 1.

. 1. Phobos Iptel

2.2.

SPAN-

. Cisco
Systems,
-. ,
.

2.3.

,
Ethernet.
Intel. . ,

DMA .
. ,
, ,
.

2.4.

Iptel Core

, -,
, , ,
. ,
/usr/local/opt/iptel/etc/iptel.conf.
iptel.conf. Iptel Core
socketpair. ,
Iptel Core, . . 1.
Iptel Core . ,
. iptel.conf
.
. . 1.6.
iptel.conf. , XML,
. ,
#. , , <module>.
Iptel
. ( 2):

2. , Iptel Core

name

. Iptel Core <module>,


. , Iptel Core , name=core

so_name

,
. /usr/local/opt/iptel/bin.

u_name

, ,
.

affinity

, .
. man 2 sched_setaffinity

, Iptel Core, <module> iptel.conf


-. <module>,
name . ,
<module>, name=sniff_h.

2.5.


MFS. .
, ,
. , Iptel Windows.
,
. , Linu
.
memory-mapped packet socket.
. Windows .

.

iptel.conf. <module>,
name snif_h. 3.

3.

<eth_if>
name = lan1
</eth_if>

. ,
lan1
(promiscuous mode).
.

log_level


. , . ,
. 0,
. , ,
.
.

play_file

, .. Ethernet-
. Iptel
XYZ
.
tcpdump .pcap ( .pcapng). ,
Ethernet-.

play_to

( )
. ,
. Phobos
.

play_mode

. r,
.
r, , .
.

, (
),
.

play_fmt

. play_file ,
t ( tcpdump). .

rtp_decoder_version

RTP-. 3, 4, 5.
5. , 5.
. .

process_rtcp,
rtcp_ipresolve,
rtcp_phonenum

process_rtcp , RTCP.
.

(rtcp_phonenum)

(rtcp_ipresolve). .
, n,
. .
H.323- Avaya.

rtcp_paranoical

, RTCP- RTP.
1. RTP, RTCP. process_rtcp
, UDP-,
RTP-, RTCP.
H.323- Avaya. .
, , y,

<modules>

<mod_sip>

UDP.
sip , UDP,
VoIP: SIP, UNISTIM, IAX2, NOE, MGCP.
H.323- Avaya.

enabled

y, UDP- UDP MFS (MFS-),


. . port.

port

, UDP- UDP-
MFS-. . :
*- UDP- ( );
<> [- <>] .
, UDP 5060, 5061, 5090,
:
port = 5060-5061
port = 5090

</mod_sip>

UDP.

<mod_tcp>

TCP.

port

, TCP- TCP-
MFS-. . :
*- TCP- ( );
<> [- <>] .
, TCP 2000 (SKINNY) 1720
(H.323/H.225), :
port = 2000
port = 1720
, MFS- TCP.
H.323,
H.245, .. TCP-
h323_dec H.225 H.245.

</mod_tcp>

TCP.

2.6.

MFS

.
. . : Memory File
System. , ()
Phobos ().

2.7.

/var/log/iptel Iptel .
, iptel, ,
, -, MFS cleaner.
<_>.log.tmp.
.
, USR1.
<_>.log
<_>.log.tmp.
/var/log/iptel/archive .

,
.

grablog_run,

grablog.

/usr/local/opt/iptel/bin.
crontab. :
# grablog -e

.
grablog 4.

4. grablog

-ld <>,
--log-dir=<>

, .
/var/log/iptel.

-ad <>,
--archive-dir=<>


/var/log/iptel/archive.

-id <>,
--iptel-dir=<>

, ,
. /usr/local/opt/iptel/bin.
, .
--log-dir , --log-limit,
,
.

-al <N>,
--archive-limit=<N>

(. --archive-dir) N .
,
,
.

--mask=M

, .
.log. .

-f,
--force

,
. .
, iptel.

-q,
--quiet

.
iptel .

-h,
--help

,
.

2.8.


. .. ,

, VoIP-,
. /usr/local/opt/iptel/etc.
iptel.conf.*. .
. . 1.6.

,
Iptel.
2.8.1.
h323_dec

.323
5.

5. H.323

-l < >

, .
.

-e < >

,
. .

-a <0 | 1>

, Avaya. 0 , 1
. 1.

- <0 | 1>

, Siemens CornetIP
(HFA). 0 , 1 . 1.
HFA-,
H.323 -.
sniff_h <mod_tcp> port=4060.
, HFA-
, H.323.

-P <>

H.225. 1720.

-R <0 | 1>

, H225 RAS (Gatekeeper).


Avaya.
(1).
sniff_h <mod_sip>, port=1719.
extension- .

6
,
h323_dec ,
.

6. SIP

Avaya IP Trunk

h323_dec
-c0 -a0 -R0

Avaya

-c0 -a1 -R1

snif_h
<mod_tcp>,
port=1720

<mod_tcp>,
port=1720,
<mod_sip>,
port=1719
<mod_tcp>,
port.
<mod_tcp>,
port.
<mod_tcp>,
port=4060

process_rtcp=y
rtcp_ipresolve=y
rtcp_phonenum=y

HFA Siemens -c1 -a0 -R0

H.323

-c0 -a0 -R0

H.323

HFA
Siemens- -c1 -a0 -R0

Unity H.323
2.8.2.
sip_dec
SIP 7. sip_dec
<module>, name=sip_dec.

7. SIP

log_level = <>

. . :
1 ;
2 ;
4 ;
8 .
15, 1.

process_udp = <0 | 1>

, UDP. 1,
.
<mod_sip> name=sniff_h (. . 2.5)

process_tcp = <0 | 1>

, TCP. 1,
.
<mod_tcp> name=sniff_h (. . 2.5)

max_call_timeout_sec =
<>

.
. 0,
. ,
.
SPAN-. ,
. .
, ,
- .

ignore_ip = <IP->

, IP-
, .
.
.

2.8.3.
skinny_dec
SCCP/Skinny 8.
. skinny_dec
<module>, name=skinny_dec.

8. SCCP/Skinny

log_path = <>

, skinny_dec.log.tmp.
skinny_dec.log.
/var/log/iptel.

log_level = <>

. . :
1 ;
2 ;
4 , ;
8 ;
16 .
7, 3 1.

max_tcp_prebuf =
<>

.
, .

, ,
Skinny- Cisco.
2048. ,
.

port = <>

TCP- CallManager

. 2000.

max_call_timeout_sec =
<>

.
. 0,
. ,
.
SPAN-. ,
. .
, ,
- .

max_keep_alive_timeout
= <>

CallManager
KEEP_ALIVE. (
, ) , ,
. 0
KEEP_ALIVE . , ..

.

prefer_names = <0 | 1>

0 ( ),

. 1,
, .
, , .
CallManager.

zoom = <0 | 1>

ZOOM,
,
.
. 1
.

unanswered_calls =
<0 | 1>

,
( ).
Phobos .
0, .

ignore_cm = <IP->

, IP- CallManager
,
. .
.

2.8.4.
unistim_dec
Unistim 9.
. unistim_dec
<module>, name=unistim_dec.
9. Unistim

<filter>

port = <>

, UDP- Node
. ,
. 5000.

log_level = <>

. 0 6. ,
. :
0 ;

1 ;
6 6 .
014.
</filter>

ignore_ip = <IP->

, IP-
, .
.
.

/var/log/iptel unistim_dec.log.tmp.
unistim_dec.log.
2.8.5.
noe_dec
NOE Alcatel 10.
noe_dec <module>,
name=noe_dec.
10. NOE

log_path = <>

, noe_dec.log.tmp.
noe_dec.log.
/var/log/iptel.

base_port = <>

. NOE
UDP, :
, 128 .
32512.

from_charset = <1>
to_charset = <2>

, ,
(from_charset) (to_charset).
from_charset=utf8, to_charset=windows-1251. to_charset
, .. Phobos . from_charset
.
, :
#iconv -l

2.8.6.
mgcp_dec
MGCP 11.
. mgcp_dec
<module>,
name=mgcp_dec.
11. MGCP

log_path = <>

, mgcp_dec.log.tmp.
mgcp_dec.log.
/var/log/iptel.

port_ca = <>

Call Autority. 2727.

port_gw = <>

Gateway. 2427.

2.8.7.
iax_dec
IAX2 12.
. iax_dec
<module>, name=iax_dec.
12. IAX2

log_path = <>

, iax_dec.log.tmp.
iax_dec.log. /var/log/iptel.

to_charset = <>

, .
to_charset=windows-1251, .. Phobos
.

port = <>

, UDP-
. 4569.

2.9.

:

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

;

;

USB-Key vsd_server.
13

13. -

log_path =
<>

, .
/var/log/iptel. ,
.

vsd_server =
<ip_>:<
TCP>

vsd_server
USB-Key.
:
<ip_>:< TCP>.
127.0.0.1:7777, ..
.

use_snmpd =
<>

,
SNMP. 0 = .
, .

:

2;
1
;
.
2
.

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


.

, 2 . ,
. ,
.

2.10.
(. 1) .
Phobos , :
PHONEDEV_NUMBER=600.
.
log_path <module>, name=common name=shared

2.11. Phobos
ipc_server? , ,
:


;
, ,

.
/etc/init.d/ipc_server.
. 14.

14. -

-l <path>

-p <>

-r <>

-X <>

. ,
, , .tmp .
.
: /tmp/ipc_server.log ( )
TCP-,
. 10230.

RTP-. , RTP-
.
, . 100.
. . 2
, 1 RTP. ,
, ,
. ,
. 2048, ..
1024 . Pentium4,
.


-f <0 | 1>

-R <>

-S <>

(poll)
.

( , ).
0 poll .
/etc/init.d/ipc_server f1, .. .
,
RTP . 0 .
, ,
. ,
, IP- UDP- .
RTP, , ,
. ,
, RTP- SSRC
. ,
.
,
SNMP. , ( ). .

2.12. USB-Key
vsd_server USB-
. USB-.
, ,
, , .
, .
TCP- 7777. ,
, vsd_server USB-.

2.13. MFS
, MFS, ,
.
. cleaner
mfs_cleand.
15.

15. MFS

-L <path>

-l <>

-T <>

. ,
cleaner.log.tmp. cleaner.log.
/var/log/iptel.
. 0 3. ,
. 3.
,
MFS. 1. , ,
. ,
/etc/init.d/mfs_cleaner.

,
MFS, . MFS . - ,
- .

-t <>

MFS. /tmp/mfs.
-p <>
MFS .
iptel /etc/init.d/iptel

-f

3. ,
, ,
.
. ,
.

,
.
, , WiFi. ,
, .

.

. -
. , IP-
( ),
- IP- ( ). , . .
-
. -
. -
Phobos Iptel
. - .
,
.
(. . 1.2), -
, ,
. USB Key ,
- USB-
. , .

3.1.

SIP-

3.1.1.

SIP- siproxd,

opensource-.

siproxd

/usr/local/opt/iptel/etc/siproxd.conf.
. 16.

16: siproxd

if_inbound

, SIP- .
lan0. ,
lan0:0

if_outbound

, SIP- IP-ATC.
lan0. , lan0:0

hosts_allow_reg

. IP- ,
-. ,
IP- 20.1.0.1 20.1.0.254,
20.1.0.1/24

urlmap_size

SIP-,
. 128.

rtp_port_low

UDP-,
RTP RTCP- .
rtp_port_low + (4 * urlmap_size).

cluster

TCP-,
. :
cluster = listen@<ip->:<> - TCP-, . .
;
cluster = connect@<ip->:<> - TCP-, ..
.
.
. . . 3.1.3.

contact_port_lo
w

- REGISTER (
),
REGISTER.
UDP-. , if_outbound,
UDP-,
[contact_port_low; contact_port_low + urlmap_size].
10000.

rtp_timeout

- RTP- RTCP
.
. , ,
UDP-, RTP RTCP .
, -
. , ..

UDP-.
, .

siproxd 16

,
.
:
(rtp_port_low + (urlmap_size * 4)) < contact_port_low;
contact_port_low + urlmap_size < 65535;

,
if_outbound if_inbound , ..
IP-
.

3.1.2.

siproxd

siproxd :
#rc-update add siproxd default
* service siproxd added to runlevel default

:
#/etc/init.d/siproxd start
* Starting siproxd

[ ok ]

SIP-, SIP
proxy. ,
if_inbound .
UDP. , SIP- ,
, .

, ,
.
siproxd ,
:
#rc-update del siproxd default
* service siproxd removed from runlevel default

:
#/etc/init.d/siproxd stop
* Stopping siproxd

3.1.3.

[ ok ]

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

.

, ,
.
NTP ,
. 1.5.
,
-.
ucarp. .
ucarp IP-
.
. /etc/conf.d/ucarp
17.

17: ucarp

UCARP_INTERFACE

UCARP_SOURCEADDRESS

, ucarp
.
lan0.
IP- , ucarp
.

lan0 .

IP- SIP-.
UCARP_VIRTUAL_ADDRESS

UCARP_VIRTUAL_PREFIX

IP- SIP.

UCARP_VHID

255
ucarp. ,
.
, , .

UCARP_PASSFILE

, ucarp .
,
/etc/ucarp/ucarp.pass.

UCARP_UPSCRIPT

, , ,
. ,
, ,
lan0:0.

UCARP_DOWNSCRIPT

, , ,
. ,
,
, lan0:0.

UCARP_OPTS

. "--shutdown", ,
UCARP_DOWNSCRIPT ucarp.

.
#/etc/init.d/ucarp start
* Starting ucarp [ ok ]

,
SIP-, :
# ifconfig lan0:0
lan0:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 20.1.0.11 netmask 255.255.255.0 broadcast 20.1.0.255
ether 00:1c:c0:a3:37:10 txqueuelen 1000 (Ethernet)
device interrupt 20 memory 0xe4100000-e4120000

ucarp :
# rc-update add ucarp default
* service ucarp added to runlevel default

Ethernet - . ,
SIP- ,
:
# ifconfig lan0:0
lan0:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 20.1.0.11 netmask 255.255.255.0 broadcast 20.1.0.255
ether 00:da:b8:f1:56:69 txqueuelen 1000 (Ethernet)
device interrupt 20 memory 0xe4100000-e4120000

Ethernet .
siproxd.conf.
urlmap_size rtp_port_low

.
.

TCP-
2100.

,
:
# netstat -antp | grep 2100

tcp

0 0 192.168.3.139:58273 192.168.1.43:2100 ESTABLISHED 32/siproxd


ESTABLISHED ,
. ,
lan0:0 , .
- . Ethernet
.
.
ARP .
, -
ARP .

3.2.

SCCP/SKINNY Cisco

Cisco, IP- Call Manager


SCCP (Skinny Client Control Protocol)
- skinny_proxy.

3.2.1.

skinny_proxy

/usr/local/opt/iptel/etc XML- skinny_proxy.conf.


. :
<skinny_proxy>
log_path = /var/log/iptel
rtp_start = 16384
rtp_end = 32000
bind = lan0
cm_bind = lan0
call_manager = 20.1.0.9
real_tftp_server = 192.168.1.3
tftp_rewrite_cm_address = 1
</skinny_proxy>

18.

18: skinny_proxy

log_path

, .
. ,
.

rtp_start

UDP-, -
RTP- RTCP- VoIP-.
16384, .

rtp_end

UDP-, -
RTP- RTCP- VoIP-.
4 : 2 2 .
32767. skinny_proxy (3200016384) / 4 = 1952 .

bind

IP-, skinny_proxy
TCP- TFTP- .
( ) TFTP- (. . 3.2.2).

cm_bind

. ,
, skinny_proxy
CallManager , bind, .
. ,
.
, .

call_manager

. -, CallManager.
.
CallManager, ..
.

real_tftp_server

. IP- TFTP-
. , call_manager,
. TFTP- -
.

tftp_rewrite_cm_add ,
( ),
ress
,
Phobos Server ( ). 1, .. ,
skinny_proxy,
CallManager .

3.2.2.

skinny_proxy

skinny_proxy :
#rc-update add skinny_proxy default
* service skinny_proxy added to runlevel default
:
#/etc/init.d/skinny_proxy start
* Starting skinny_proxy

[ ok ]

.
TFTP-. -,
bind skinny_proxy.conf.
, .
skinny_proxy SEP<mac->.cnf.xml. Skinny_proxy
TFTP-,
real_tftp_server. skinny_proxy
(. ). ,
CallManager ,
bind, , CallManager
. , , CallManager
. skinny_proxy ,
CallManager .
CallManager SEP<mac->.cnf.xml
. tftp_rewrite_cm_address skinny_proxy.conf
, CallManager ,
. tftp_rewrite_cm_address skinny_proxy.conf ,
CallManager ,
MAC-,
Vocord Phobos.
, :
#netstat -ant | grep 2000 | grep ESTAB
tcp
0
0 192.168.1.43:2000
tcp
0
0 192.168.1.254:2000

192.168.0.65:51288
192.168.1.43:56785

ESTABLISHED
ESTABLISHED

2 TCP-
- 2000: .
. .
skinny_proxy,
#rc-update del skinny_proxy default
* service skinny_proxy removed from runlevel default

:
#/etc/init.d/skinny_proxy stop
* Stopping skinny_proxy

3.2.3.

[ ok ]

. 3.1.3 ucarp - IP-


. Ucarp ,
.
-. .
IP- .
. ,
, 20.1.0.11.
:
bind = 0.0.0.0

skinny_proxy
. , 20.1.0.11,
lan0:0 ucarp. ucarp skinny_proxy
. .
. ,
. , lan0:0 IP 20.1.0.11:
#ifconfig lan0:0
lan0:0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 20.1.0.11 netmask 255.255.255.0 broadcast 20.1.0.255
ether 00:1c:c0:a3:37:10 txqueuelen 1000 (Ethernet)
device interrupt 20 memory 0xe4100000-e4120000

.
Ethernet. ,
skinny_proxy .

3.3.

UNISTIM

IP- CS-1000, Nortel, LG


Avaya, UNISTIM
unistim_proxy. , ,
. ,
S0 S1.

3.3.1.

unistim_proxy

:
<unistim_proxy>
listen_phones = 20.1.0.11:4100
phones_rtp_base = 8000
phones_failover = 0
log_path = /var/log/iptel/
<server>
port = 4100
address = 20.1.0.9
</server>
<public_interface>
bind = 20.1.0.11:6000

</public_interface>
#
<public_interface>
#
bind = 20.1.0.14:6000
#
</public_interface>
</unistim_proxy>

, unistim_proxy IP-
. ,
Unistim IP- ,
:
IP- , -,
;
, IP- IP .
, IP-.
siproxd 3.1: .
unistim_proxy
IP-, .

XML-

/usr/local/opt/iptel/etc/ unistim_proxy.conf. < unistim_proxy>,


. 19.
,
,
. ,
, .

19: unistim_proxy

log_path

, .
. ,
.

listen_phones

. IP- UDP-,
. :
<IP->[:[port]], :
<_>[:[port]]
4100.
, :
20.1.0.11:4100 20.1.0.11, 4100
20.1.0.11: 20.1.0.11, 4100
lan0:0:5100 lan0:0, 5100
:
lan0:4100, .. , : 4100- lan0
4100 IP- lan0;
0.0.0.0 .

phones_rtp_base

, UDP-
RTP- . ,
1024. 8000. Unistim_proxy

[phones_rtp_base; phones_rtp_base + <__> *
2] UDP- , .
listen_phones.

phones_failover

. unistim_proxy (,
),
, .
0, S1

, .. .
, 0. . . Error:
Reference source not found

<server>
address
port
</server>

, IP- Node.
address IP- IP- Node, port UDP-.
IP-. address server,
port 5100. server
.
IP-
Node. IP- Node -
. .

<public_interface>
bind=
</public_interface
>

, ,
IP-. , unistim_proxy IP- ,
listen_phones phones_rtp_base. bind
IP- UDP-,
IP-ATC. :
<IP->:<port>, :
<_>:<port>
bind:
20.1.0.11:6000 20.1.0.11 6000
lan0:3:6000 , lan0:3
6000.
, public_interface
.
.
, .

3.3.2.

unistim_proxy

skinny_proxy :
#rc-update add unistim_proxy default
* service unistim _proxy added to runlevel default
:
#/etc/init.d/unistim_proxy start
* Starting unistim_proxy

[ ok ]

. IP S1 IP S2
lan0 . S1 S2
4100. S1 S2 ( )
IP-.
, .
, .
.
unistim_proxy
:
#rc-update del unistim_proxy default
* service unistim_proxy removed from runlevel default

:
#/etc/init.d/unistim_proxy stop
* Stopping unistim_proxy

3.3.3.

[ ok ]

,
IP-, . :
S1, S2, ;

.
:
IP-;
-.
,
, .

3.3.3.1.

IP- Node

. S2
IP- Node.
S1. , .
. .
Ethernet . ,
IP-ATC.

3.3.3.2.

- , .
IP-. -:
phones_failover=0, phones_failover=1.
. S1 ,
listen_phones -. S2
, listen_phones -. ,
. .
. Ethernet
. ,
(
). Ethernet .
.
. . ,
1 (
).

3.4.

Siemens

HFA/CornetIP

HFA-, H.323
. HFA-
H.323 .

3.4.1.

cornet_proxy

/usr/local/opt/iptel/etc siemens_proxy.conf. .
? XML, :
<cornet_proxy>
log_path = /var/log/iptel
real_pbx_address = 192.168.200.251
rtp_start = 16384
listen = lan0
cornet = lan0:0
cornet = lan0:1
</cornet_proxy>

20.

20: cornet_proxy

log_path

, .
. ,
.

rtp_start

UDP-, -
RTP- RTCP- VoIP-.
16384, .
4 : 2 (RTP) 2 (RTCP).
,
12 .

real_pbx_addres
s

, IP-.
, .

listen

. IP-,
. :
<IP->
<_>
:
lan0
192.168.0.250

cornet

,
, , IP-
, IP-. IP-.
, ,

. , , :
ornet = lan0:10
ornet = lan0:10
:
ornet = 10.0.0.4
ornet = 10.0.0.4
, lan0:10 10.0.0.4, :
ornet = 10.0.0.4
ornet = lan0:10

3.4.2.

cornet_proxy

cornet_proxy :
#rc-update add cornet_proxy default
* service cornet_proxy added to runlevel default

:
#/etc/init.d/cornet_proxy start
* Starting cornet_proxy

[ ok ]

. Server Address ,
listen .
, .
, .
.
cornet_proxy
:
#rc-update del cornet_proxy default
* service cornet_proxy removed from runlevel default

:
#/etc/init.d/cornet_proxy stop

* Stopping cornet_proxy

3.4.3.

[ ok ]

, .
, -
, -,
.

3.5.

lan1.
- lan0. :
. . iptel.conf :
<eth_if> name = lan1 </eth_if>

<eth_if> name = lan0 </eth_if>

:
#reboot

. .
, -
.
: - -.
: , .
.
,
IP-. ,
,
IP-. 21 ,
IP- .

21: IP-

sip_dec.so

ignore_ip

h323_dec

-x <IP->

skinny_dec.so

ignore_cm

unistim_dec.so

ignore_ip

4.
? SPAN-?
, Phobos Iptel.
- . /usr/local/opt/iptel/share/mib
NET-SNMPVOCORD-IPTEL-MIB.txt.
, :
nsviCurrentCallsRecorded;

nsviCurrentSessionsRecorded.

. nsviCurrentCallsRecorded
Phobos ipc_server. nsviCurrentSessionsRecorded .

Phobos :
, Phobos
. Phobos ,
Phobos.
:
nsviCurrentCallsRecorded <= nsviCurrentSessionsRecorded
. ipc_server
Phobos

nsviCurrentCallsRecorded

0.

Phobos nsviCurrentCallsRecorded
nsviCurrentSessionsRecorded.
nsviCurrentSessionsRecorded Phobos
, .. Phobos.
,

nsviCurrentSessionsRecorded,

nsviCurrentCallsRecorded.
, SNMP
.
SNMP-, use_snmpd=1.
Phobos SNMP-,
/etc/init.d/ipc_server S1
ipc_server.
, snmpd
:
# rc-update add snmpd default
# reboot

SNMP , :
# snmpget -v 1 -c public localhost .1.3.6.1.4.1.8072.2.19.1.10230.1
NET-SNMP-EXAMPLES-MIB::netSnmpExamples.19.1.10230.1 = Counter32: 1
# snmpget -v 1 -c public localhost .1.3.6.1.4.1.8072.2.19.1.2147483646.1
NET-SNMP-EXAMPLES-MIB::netSnmpExamples.19.1.2147483646.1 = Counter32: 1