VRX-1010-E1.
VoIP VRX-1010-E1 . , , , Linux.
() Linux, , .
TCP-IP, . /:
- SIP H.323;
- QoS;
- ( , );
- / (FAX over IP);
- web-.
VRX-1010-E1 , 2 E1 () SIP (SIP ).
VoIP .
Asterisk , VoIP , , IP- . 2000 .
Asterisk :
- IAX;
- SIP;
- H.323;
- Skinny;
- UNIStim.
1. HDLC G.703
: HDLC G.703.
HDLC, G.703.
1.2.1 , 1.1.
1.2.2 IP- .
1.2.3 Terminal Linux.
1.2.4 vi.
1.2.5 ping.
1.2.6 .
: :
VRX-1010-E1 2 .
DES-3526 2 .
- 4 .
1.3 .
1.3.1 1.1.
1.1
1.3.2 IP- ( 1.1). .
|
|
.
login: root
password: 123456 ( )
ifconfig.
IP- eth0 , :
# ip address add <localIP>/24 dev eth0,
localIP IP- eth0 ;
24 .
:
# ip address add 192.168.10.1/24 dev eth0
ifconfig.
1.3.3 IP- (IP- , , 1.1). IP- VRX-1010-E1.
Terminal ifconfig.
:
# ping <localIP>,
localIP IP- eth0 .
1.3.4 VRX-1010-E1 SSH-:
# ssh root@<localIP>
password: 123456 ( )
1.3.5 :
# uname a ( );
# ifconfig ( );
# netstat rn ( , , , );
# service iptables stop ( flush iptables , );
# service iptables status ( );
# echo 1 > /proc/sys/net/ipv4/ip_forward ( ip_forward 1 - HDLC eth0).
1.3.6 Modprobe Linux. :
wcte11xp DAHDI;
hdlc / HDLC;
hdlc_raw .
:
# modprobe wcte11xp
# modprobe hdlc
# modprobe hdlc_raw
1.3.7 DAHDI Digium Asterisk Hardware Device Interface. DAHDI Asterisk , Dahdi . () Asterisk :
Asterisk <-> chan_dahdi <-> Dahdi <-> <-> //.
, DAHDI , Asterisk . DAHDI:
# dahdi_genconf
, :
# dahdi_cfg ( /etc/dahdi/system.conf DAHDI )
:
# dahdi_genconf
1.3.8 /etc/dahdi/system.conf vi. :
# vi /etc/dahdi/system.conf
. , i. :
|
|
span=1,1,0,ccs,hdb3,crc4
nethdlc=1-31:hdlc0
loadzone=ru ( () )
defaultzone=ru
, escape. , :wq.
system.conf () :
loadzone=ru
defaultzone=ru
Asterisk:
span = 1,0,0,CCS,HDB3,CRC4 , .
:
span = <span_num>,<timing>,<LBO>,< framing>,<coding>,[crc4],
span_num E1 ( 1 );
timing ;
0 E1;
1 E1 . , ;
LBO , 0;
Framing , ccs cas;
Coding , ami hdb3;
Crc4 crc4 ( ).
1.3.9 :
# service dahdi start ( DAHDI)
# sethdlc hdlc0 hdlc ( hdlc- hdlc )
# ip link set dev hdlc0 up ( hdlc0)
1.3.10 IP- HDLC, . IP- hdlc0 :
# ip address add <IP-hdlc0>/32 dev hdlc0
IP-hdlc0 IP- HDLC ;
32 .
1.3.11 IP- HDLC :
# ip route add <IP-hdlc0-remote>/32 dev hdlc0
IP-hdlc0-remote IP- HDLC ;
32 .
1.3.11 IP- :
# ip route add <IP-remote_net>/24 dev hdlc0
IP-remote_net IP- ;
24 .
1.3.12 ping, .
1.3.13 .
1.1 1
. | IP- eth0 (localIP) | IP- HDLC (IP-hdlc0) | IP- 1 (PC1) | IP- 2 (PC2) |
192.168.1.1 | 192.168.3.1 | 192.168.1.2 | 192.168.1.3 | |
192.168.2.1 | 192.168.3.2 | 192.168.2.2 | 192.168.2.3 | |
192.168.4.1 | 192.168.6.1 | 192.168.4.2 | 192.168.4.3 | |
192.168.5.1 | 192.168.6.2 | 192.168.5.2 | 192.168.5.3 | |
192.168.7.1 | 192.168.9.1 | 192.168.7.2 | 192.168.7.3 | |
192.168.8.1 | 192.168.9.2 | 192.168.8.2 | 192.168.8.3 | |
192.168.10.1 | 192.168.12.1 | 192.168.10.2 | 192.168.10.3 | |
192.168.11.1 | 192.168.12.2 | 192.168.11.2 | 192.168.11.3 | |
192.168.13.1 | 192.168.15.1 | 192.168.13.2 | 192.168.13.3 | |
192.168.14.1 | 192.168.15.2 | 192.168.14.2 | 192.168.14.3 |
1.4.1 ? . . .
1.4.2 ? ?
1.4.3 . . .
1.4.4 HDLC. HDLC. .
1.4.5 .
1.4.6 DAHDI.
1.4.7 G.703.
1.4.8 vi. .
1.4.9 IP. PING.
|
|
1.4.10 iptables.
1.4.11 system.conf.
2 2. G.703 ISDN PRI IP/HDLC
: G.703 ISDN PRI IP/HDLC .
G.703, ISDN PRI IP/HDLC.
2.2.1 2.1.
2.2.2 IP- 1.1.
2.2.3 vi.
2.2.4. SIP .
2.2.5 ping.
2.2.6 .
: :
VRX-1010-E1 2 .
DES-3526 2 .
- 4 .
2.3 .
2.3.1 2.1.
2.1
2.3.2 :
# /root/script/asterisk-voip ( Asterisk)
2.3.3 1 , /etc/dahdi/system.conf :
span=1,1,0,ccs,hdb3,crc4
nethdlc=1-15:hdlc0
dchan=16
bchan=17-31
loadzone=ru
defaultzone=ru
bchan=1-15,17-31 - ;
dchan=16 - (0- - ).
2.3.4 /etc/asterisk :
# cd /etc/asterisk ( cd )
# ls
dahdi-channels.conf dahdi-channels.conf.bak, :
# rm dahdi-channels.conf
# rm dahdi-channels.conf.bak
2.3.5 chan_dahdi.conf ( TDM DAHDI) vi:
# touch chan_dahdi.conf
# vi chan_dahdi.conf
:
[trunkgroups]
[channels]
group=1 ( )
context=from_pri (
(),
)
echocancel=yes ( -)
echocancelwhenbridged=no ( -
TDM )
echotraining=yes ( ,
)
switchtype=euroisdn ( PRI)
signaling=pri_cpe ( pri_net)
( /
: pri_cpe: PRI.
;
pri_net: PRI)
channel => 17-31 ( )
2.3.6 sip.conf, SIP, vi:
# touch sip.conf
# vi sip.conf
:
[general]
context=default ( , , . , , . - extensions.conf)
|
|
allowoverlap=no (: yes/no, : yes. "no"
"overlap dialing")
udpenable=yes
udpbinaddr=0.0.0.0
tcpenable=no
srvlookup=yes
videosupport=yes
[<X>]
type=friend ( )
dtmfmode=rfc2833
host=dynamic ( IP )
secret=<pass> ( )
context=office
<X> <pass> .
2.3.7 extensions.conf, , , vi:
# touch extensions.conf
# vi extensions.conf
:
[general]
static=yes
writeprotect=no
clearglobalvars=no
[global]
CONSOLE=console/dsp
IAXINFO=guest
TRUNKMSD=1
[office]
exten=>_9X.,1,Dial(DAHDI/g1/${EXTEN:1})
same=>n,HangUp()
exten => <X>,1,Dial(SIP/<X>)
same => n,HangUp()
[from_pri]
exten => _X.,1,Dial(SIP/<X>)
same => n,HangUp()
<X> ;
_ - ;
9 9;
;
. .
2.3.8 :
# service asterisk restart
# rasterisk
Asterisk:
vrx*CLI>
Asterisk :
vrx*CLI> sip reload
vrx*CLI> dialplan reload
2.3.9 SIP- , , IP- . SFLPhone VoIP Client. Edit -> Accounts. Add :
- Alias (): ;
- Protocol: SIP;
- Host name: IP- ;
- User name: <X>;
- Password: <pass>.
2.3.10 9****, Enter. , .
2.3.11 ICMP . traceroute.
2.3.12 .
2.1 2
. | SIP (<X>) | SIP (<pass>) | SIP (<X>) | SIP (<pass>) |
qwerty | tgbyhn | |||
qazwsx | yhnujm | |||
wsxedc | ujmik | |||
edcrfv | ytrewq | |||
rfvtgb | asdfgh |
2.4.1 ISDN.
2.4.2 .
2.4.3 SIP.
2.4.4 system.conf.
2.4.5 chan_dahdi.conf.
2.4.6 sip.conf.
2.4.7 extensions.conf.
2.4.8 B D-.
2.4.9 Asterisk.6