Vous êtes sur la page 1sur 13

Hng dn cu hnh tng i AsteriskNow v kt ni Trunk

vi tng i Cisco CME


Bi Quc K
***
1. Gii thiu
nghin cu v tng i m ngun m Asterisk, ta c th ci Asterisk trn h iu hnh Linux
(CentOS) nh mt gi phn mm hoc c th ci t cc bn phn phi ca Asterisk nh
AsteriskNow, TrixBox l cc file ISO tch hp sn Asterisk v PBX.
-

C th ti AsteriskNow ti lin kt sau: http://www.asterisk.org/downloads


Tham kho hng dn ci t AsteriskNow ti lin kt sau:
https://wiki.asterisk.org/wiki/display/AST/Installing+AsteriskNOW

Thng tin AsteriskNow ci t trn ESXi.


-

IP:10.215.26.123/24 DG:10.215.26.1 DNS:8.8.8


Login CLI usr/pwd: root/xxx
Login GUI usr/pwd: admin/xxx

Giao din AsteriskNow sau khi ci t v ng nhp thnh cng.

To ti khon ng nhp AsteriskNow bng giao din ha khi ng nhp ln u.

AsteriskNow c th ci t trn cc PC Worktation thng thng hoc c ci t trn my ch


Server hoc VMware. Tuy nhin, ng gc chuyn nghip, ta nn trin khai AsteriskNow trn
phn cng chuyn dng ca hng Digium.
tham kho hng dn s dng AsteriskNow, ta truy cp vo lin kt:
-

https://wiki.asterisk.org/wiki/display/AST/Hello+World

2. Hng dn to ti khon SIP Extension trn AsteriskNow.


Chn Extension.

Chn Submit.

Thit lp cc tham s.

Click Submit pha cui giao din.

Click Apply p dng cu hnh.

3. Thit lp ti khon SIP trn 3CX.


Bt buc phi khai bo thng tin Account Name.

3CX kt ni thnh cng ti SIP Server 10.215.26.123.

4. Cu hnh tng i CME.


Cu hnh tng i CME cp Extension 1001 cho Cisco Soft Phone CIPC v cu hnh dial-peer tr v
tng i AsteriskNow c IP l 10.215.26.123.

hostname CME
interface e0/0
ip address 10.215.26.124 255.255.255.0
no shutdown
exit
ip route 0.0.0.0 0.0.0.0 10.215.26.1
line con 0
logging synchronous
exit
line vty 0 4
privilege level 15
no login
exit
telephony-service
ip source-address 10.215.26.124 port 2000
max-dn 150
max-ephones 30
create cnf-files
no auto-reg-ephone
exit
ephone-dn 1 dual-line
number 1001
exit
ephone 1
mac-address 0000.aaaa.1001
type CIPC
button 1:1
codec g711ulaw
restart
exit
dial-peer voice 8000 voip
description Asterisk Extensions
destination-pattern 8...
session protocol sipv2
session target ipv4:10.215.26.123
dtmf-relay rtp-nte
codec g711ulaw
exit
!
dial-peer voice 2001 voip
description Asterisk Incoming
destination-pattern 1.
session protocol sipv2
session target ipv4:10.215.26.123
incoming called-number 1.
dtmf-relay rtp-nte
codec g711ulaw
exit
!

5. Cu hnh SIP Trunk trn AsteriskNow.

Chn Connectivity > Trunks.

Chn Add SIP (chan_sip) Trunk.

Loi b username v secret, chuyn sang s dng phng thc xc thc SIP Trunk da vo a ch IP
(IP-based authentication for incoming and outgoing parts of the trunk):
Chn General Settings > Trunk Name > cme-trunk.

Outgoing Settings > Trunk Name > cme-out.


Outgoing Settings > Peer Details
host=10.215.26.124
type=peer
insecure=very

Incoming Settings > User Context > cme-in.


Incoming Settings > User Details
type=user
context=from-trunk

Click Submit Changes lu cu hnh. Mt cnh bo pop-up xut hin nhc nh thit lp caller ID,
nhng nu h thng mng ang thit lp l h thng mng ni b intra system th ta c th b qua
thng tin ny.

Thit lp Outgoing Route cho Dialing Extensions ri lin kt vi ng SIP Trunk va thit lp.
Chn Connectivity > Outbound Routes > Add Route.

Route Settings > Route Name > CME-Extension.

Dial Patterns > Match Pattern > 1.


Trunk Sequence > 0 > cme-trunk.

Gi y, IP Phone gia CME v AsteriskNow c th giao tip c vi nhau.

Vous aimerez peut-être aussi