You are on page 1of 102

Voice over Internet Protocol Management System

Chaiwat papinyo



2554



..


5217660020

2554
.

1 1
(Open Source) Elastix
1 1
P
1 Elastix
AX100P 1 P

Project Title
Student
Student ID.
Degree
Program
Year
Project Advisor

Voice over internet protocol management system


Chaiwat Papinyo
5217660020
Master of Science
Network Engineering
2011
Dr. Woraphon Lilakiatsakun

ABSTRACT
This project presents a Voice Over Internet Protocol Management System by using an
Open Source software which is called Elastix. The software can manage on graphic
user interface (GUI). In addition, this project studies the records of the telephone
system to improve format of telephone report efficiently. According to the experiments,
Elastix is compatible with the AX100P card. In conclusion, the VOIP management
system is easy and convenient for the administrator to manage the system.

II


 
+
+ +
 + . +
+
+

III

 1
1.1

1.2

1.3
1.4
1.5
1.5.1 1
1.5.2 2
1.6
1.7 7
1.7.1
1.7.2 7
1.7.3
1.8
1.9
 2 PABX
2.1 PABX
2.2 VoIP
2.2.1 Voice Over IP
2.2.2 VOIP
2.2.3 VoIP
2.2.4 VOIP
2.2.5 VOIP
2.3 CODEC
2.3.1 G.711
2.3.2 G.721, G.723, G.726, G.728 G.729A


I
II
III
IV
IV
IV
1
1
1
2
2
2
2
2
3
3
3
3
3
3
4
5
5
5
5
6
7
8
9
14
14
15
IV

()
2.3.3 GSM
2.3.4 ILBC
2.3.5 Speex
2.4 VoIP

2.5
Asterisk
2.5.1 Asterisk
2.5.2 Asterisk
2.5.3 Asterisk
2.6 Asterisk
2.7
 3
3.1
3.2
3.3
3.3.1 
3.3.2 
3.3.3
3.4 7 VoIP
3.4.1
3.4.2 (report)
3.5 7
3.5.1 
3.5.2 
3.6
3.6.1 Entity-Relationship Diagram
3.6.2 (cdr)
3.6.3 (cdrcountry)
3.6.4 (cdrprice)
3.6.5 (vwcdr)
 4
4.1
4.2


15
15
15
17
18
18
19
20
24
25
26
26
26
27
28
29
30
31
31
32
33
33
34
36
36
37
38
38
39
40
40
40
V

()
4.2.1
4.2.2 card AX100P
4.3
4.4
4.5
4.6
4.6.1
4.6.2
4.6.3 Extension
4.7 CSV,Excel,PDF
4.7.1 CSV
4.7.2 Excel
4.7.3 PDF
4.8  
4.9   Server
4.9.1  Extension
4.9.2  Extension 1
4.9.3  Extension 2
4.9.4  Extension 3
4.9.5  Extension 4
4.9.6   Server
 5
5.1
5.2 VoIP

5.3

5.3.1 
5.3.2

. 7
7 7 Elastix 2.0
.
7 7 Elastix


40
40
69
44
45
46
46
47
48
49
49
50
50
51
51
52
52
53
54
55
56
57
57
57
58
58
58
59
60
60
71
71
VI

()
1. Login Elastix
2. 
3. Trunk
3.1
7
 SIP Trunk
4. Outbound Routes
5. IVR
6. Inbound Routes
7. 7 3CXPhone
7.1 7 3CXPhone (7  )
7.2 7 3CX Phone (7 )


71
73
75
75
81
83
84
86
86
87

VII




6
2.1 Web 2.0
2.2 OSI Model  VOIP
7
2.3 
8
2.4  (VOIP)
8
2.5 PCM code Modulation
9
2.6  SIP Protocol
10
2.7 
17
2.8  LAN 17
2.9 Asterisk
18
3.1
27
3.2 
28
3.3 IP-PBX
29
3.4
30
3.5
31
3.6
32
3.7 AX100P, 1 Port RJ-11
33
3.8 Entity-Relationship Diagram
36
4.1 Login
41
4.2 asteriskcdrdb
41
4.3 cdr ()
42
4.4 cdrcountry ()
42
4.5 cdrprice ()
43
4.6 vwcdr ()
43
4.7  7 3CXPhone
44
4.8  7 3CXPhone
44
4.9 7
45
4.10 
46
4.11 3CXPhone
46
4.12
47
4.13 3CXPhone
47
4.14
48
4.15 3CXPhone Extension
48
VIII

()

4.16 Extension
4.17 CSV,Excel,PDF
4.18 CSV
4.19 Excel
4.20 PDF
4.21 

Web Browser
4.22  PHP Sysinfo
4.23 Memory  Extension
4.24  Extension
4.25 Memory  Extension 1
4.26  Extension 1
4.27 Memory  Extension 2
4.28  Extension 2
4.29 Memory  Extension 3
4.30  Extension 3
4.31 Memory  Extension 4
4.32  Extension 4
4.33   Server
.1 7 Elastix
.2  7
.3
.4
  7
.5
 
.6


.7 Ethernet 0
.8

Eternet
.9 IP Address
.10 Default gateway DNS Server
.11 7   elastix.medline.com
.12 Time zone
.13 7 Password Root
.14


48
49
49
50
50
51
51
52
52
52
53
53
54
54
55
55
56
56
61
61
62
62
63
63
64
64
65
65
66
66
67
67
IX

()

.15 7 Elastix
.16 7 Password MySQL Server
.17 Password MySQL Server
.18 7 Password Web Interface Elastix
.19 Password Web Interface Elastix
.20 root
.1 Login Elastix
.2 Elastix
.3 Detect New Hardware X1000P Card
.4 Network Parameters
.5 
.6 
.7 
.8 
.9 
.10  SIP Trunk
.11  SIP Trunk
.12  SIP Trunk
.13  SIP Trunk
.14  SIP Trunk
.15  SIP Trunk
.16  SIP Trunk
.17 Outbound Routes
.18 Outbound Routes
.19 Outbound Routes
.20 IVR
.21 IVR
.22 IVR
.23 Inbound Routes
.24 Inbound Routes
.25 Inbound Routes
.26 7 3CX Phone (7  )


68
68
69
69
60
70
72
72
73
73
74
74
74
75
75
76
76
77
78
79
80
80
81
82
83
83
84
84
85
85
85
86
X

()

.27 7 3CX Phone (7  )
.28 7 3CX Phone (7 )
.29 7 3CX Phone (7 )
.30 7 3CX Phone (7 )


87
87
88
89

XI



2.1 SIP Request Messages
2.2 SIP Response Messages
2.3 Codec
2.4 Asterisk
3.1
3.2
3.3
3.4


11
11
16
19
37
38
38
39

XII

 1

1.1
 Data Network

 2
-2 
VoIP 2 2

VoIP
 SME
(Small/Medium Enterprise) ISP (Internet Service Provider)
SME 
Leased Line, Frame Relay, ISDN
 E1/T1
VoIP 2

2
2 2 2 2  VoIP
2 2
VoIP
ISP 2  VoIP 2
  2 ISP 2 VoIP
  2 Internet
 Value Added Services  

2
 2  VOIP  
1.2
Voice Over Internet Protocol 
2 
 
 2

Voice Over Internet Protocol 



Open Source  Open Source
Voice Over Internet Protocol 2
2
 Open Source

1.3
Text File 


(Report) PHP
 Open Source
 2

1.4
1.4.1  Voice Over internet Protocol
1.4.2  Voice Over internet Protocol
1.4.3  Voice Over internet Protocol
1.4.4  Voice Over internet Protocol
1.4.5  Voice Over internet Protocol
1.4.6 
1.5
1.5.1 1
1.5.1.1
1.5.1.2
1.5.1.3
1.5.2 2
1.5.2.1 
1.5.2.2  Web Browser
1.5.2.3  
 server

1.6
1.6.1  Voice Over internet Protocol
1.6.2 Voice Over internet Protocol
1.6.3 Voice Over internet Protocol
1.6.4 Voice Over internet Protocol
1.6.5 Voice Over internet Protocol
1.7 .
2 
 2  2 2
1.7.1

Voip
 
2

1.7.2 .
2 OS Linux Centos5.2  Server
2 Elastix Management
2 Mysql Apache Web server PHP MyAdmin
2 3CXPhone
2 WinSCP
2 PuTTY
1.7.3

1.8
2 5 2
 1: 

2

 2 :  
 VoIP VoIP
 3 : 2
VoIP
 4 :
Elastix 
 5 :
1.9

 2
. 
2.1 PABX

2
 PBX PABX  (Private
Branch Exchange)  
 2
 Extension 
 
2 2 2 
[1]
2.2 VoIP
2.2.1 Voice Over IP
Voice over IP Voice Internet Protocol 2 VOIP
 
(Hardware)
(Software) VOIP 2 2 Advanced Research
Projects Agency Network (ARPANET)  .. 1973  

2  VOIP 2
Packet  (Internet
Protocol) 
VOIP 2

VOIP 

2
  2
 
Web 2.0 
2 Blogs Weblog, Bit torrent, AJAX, Skype 

2 VOIP     VOIP 2
 2  VOIP
  
VOIP  

 2.1 Web 2.0


 : http://www.webdesignworlds.com/web-2-0/
 2.1 Web 2.0 2  2
(Two-way interaction)  
2 
  VOIP

2.2.2 VOIP
2 Router,
Switch 2

 VOIP 2
  
Router Switch 2 VOIP
 


2 
VOIP
(FAX) VOIP
2
(FAX)  2

2.2.3 VoIP
VOIP 2 Internet Protocol 
2  Packet 
UDP TCP  UDP 2

2 
SIP(Session Initiation Protocol) 
SIP  UDP  5060

 2.2 OSI Model  VOIP


 2.2  OSI Model 
  VOIP 2 OSI Model
 2 2
OSI Model 2 7 2 2  VOIP
[2]

2.2.4 VoIP
 2.3   2
(Analog)  2.3

 2.3 
 : http://www.vcharkarn.com/vblog/38404/2

 2.4  (VOIP)
 : http://www.mvt.co.th/viewarticle.php?cid=3&nid=149&page=
 2.4  VOIP 2
(Analog)

(Digital) 2 
 2 
  2 PCM (Pulse Code Modulation) 
2.5

 2.5 PCM code Modulation


 : http://www.trendcomms.com/multimedia/training/broadband%20networks
/web/main/m2/temari/seccio6/pcm.htm

Binary 2 Logic 1 () Logic 0 () [3]
2.2.5 VOIP
 VOIP 2  
 
2 
[4]
SIP (Session Initiation Protocol)
SIP  VOIP 
 
SIP 2 SIP 2  ..1996
Henning Schulzrinne Columbia University Mark Handley
University College London (UCL)  .. 2000 RFC
2361 IETF (Internet Engineering Task Force)SIP Working Group

 (Multimedia devices) SIP


Protocol TCP UDP  5060
UDP 10000 20000 (
Asterisk) SIP 2 2
User Agents UA SIP Server
User Agents 2 User Agent Client (UAC)
User Agent Server (UAS)  VOIP 2 
Client-Server   UAC SIP request messages
UAS  UAS SIP response
messages
SIP Server 3 Proxy Server 
SIP Client  
SIP Clients 2 SIP Messages Proxy Server
SIP Client 2  
 RTP
SIP Client 2
(Real Time Transport Protocol) Register Server  2 SIP Client
  SIP Client
  SIP Client  SIP Client
 2.6

 2.6  SIP Protocol

10

SIP Messages
SIP Messages (Request) (Response) 2 SIP
Client Server    2 
SIP Client Server SIP Messages 2
Ethereal  SIP Messages 2 2

SIP Request Messages  2 SIP Client



 6 RFC 3261 [7]  2.2
 2.1 SIP Request Messages

SIP Response Messages SIP Server  


SIP Request messages  6 
2.2
 2.2 SIP Response Messages

 SIP Response Message


2

11

1XX SIP Server  SIP Client

100
Trying
SIP Client

180
Ringing
SIP Client

182
Queue

183
Session Progress
Session
2XX SIP Server 
200
OK

202
Accepted

3XX  (Forwarding)
300
Multiple Choices

301
Moved Permanently
302
Moved Temporarily

305
Use Proxy
Proxy
380
Alternative Service

4XX  (Client)
400
Bad Request

401
Unauthorized

402
Payment Required
(
)
403
Forbidden

404
Not Found
( )
405
Method Not Allowed
2

406
Not Acceptable

407
Proxy Authentication
Required Proxy
408
Request Timeout

410
Gone
2

12

413
414
415
416
420

Request Entity Too


Large
Request-URI Too
Long
Unsupported Media
Type
Unsupported URI
Scheme
Bad Extension

 
URI 2


URI

484
485
486
487
488
489
491

(Extension) 
Extension Required
(Extension)
Interval Too Brief
2
Regretfully
URI 

Temporarily

Unavailable

Call/Transaction Does
Not Exist
Loop Detected

Too Many Hops




Address Incomplete 
Address Ambiguous 
Busy Here
2
Request Terminated
Not Acceptable Here
Bad Event

Request Pending

493

Undecipherable

494

Security Agreement
Required

421
423
479
480
481
482
483

 S/MIME


13

5XX 
Server Internal Error
500

501
Not Implemented
2
502
Bad Gateway
Gateway
503
Service Unavailable
504
Server Time-Out

505
Version Not

  Supported
513
Message Too Large
6XX 
600
Busy Everywhere

603
Decline

604
Does Not Exist

Anywhere
606
Not Acceptable

2.3 CODEC
CODEC
(Coders/Decoders) 2 
 
ITU-T
CODECS  VoIP
G G.711, G.723, G.726, G.729 
2   
G.711  LAN
 G.729 2 2
2 22   2 G
CODECS  GSM, iLBC, Speex
2.3.1 G.711
G.711 Codec  64 Kbps

2 (Bandwidth) 
Codec  G.711 2 2

14

alaw ulaw  G.711 alaw 2 G.711 ulaw 2


 2  64 kbps


   VoIP 2 2
2  IP Phone 2
ATA
Codec 2 Dial Up  56 kbps

 2
2.3.2 G.721, G.723, G.726, G.728 G.729A
2 
Codec  2
 2  Codec
2 8 32 kbps
Codec 2 
2 2
G.729A 2 License 10 2
Asterisk
2.3.3 GSM
GSM Global System for Mobile communications Codec 
   13 kbps



2.3.4 ILBC
ILBC Internet Low bitrate code 
 15 kbps 2  2
2
2.3.5 Speex
Speex Codec   8 32 kbps Speex

Codec    Codec 

15


2 [5]  2.3
 2.3 Codec

 
IP Hardware Phone Software Phone 
2 2 
2  2 Codec
 

 2  2 Codec
 2 

Codec  G.729A 
 G.729A 2 8 kbps
Internet overhead 31.2 kbps 39.2 kbps
 
 Codec
G.711 
 G.711  64 kbps
Internet overhead 31.2 kbps 95.2 kbps
2
LAN  Signal Translation 2
  2

16

Full Duplex Gigabit Ethernet 11,600


G.711  64
() 
G.729a G.723    
 
/ G.729a  G.723

2.5 Asterisk
Asterisk 
APIs   API
(Application
Programming Interface)  Asterisk
Central PBX  2.9

 2.9 Asterisk
 : http://www.digium.com/images/graphics/asteriskarch.gif
2.5.1 Asterisk
Asterisk APIs 4
  APIs 2  Asterisk
2 APIs 2

18

Channel API  
VoIP ISDN, IAX, SIP, H.323, MGCP, Cisco Skinny
Signaling
Application API  
 Conferencing, Directory Listening, Voice Mail 

Codec Translator API  / (Codec)
GSM, Mu-law, A-law mp3
File Format API 
.gsm .wav .mp3 2
2.5.2 Asterisk
PBX Switching  Asterisk  PBX
Switching  

Application Launcher  Voice Mail, File
Playback
Codec Translator Codec 
 Codec
(Bandwidth Usage)
Scheduler and I/O Management  
2  
2
Dynamic Module Loader  
Asterisk
CDR (Call Detail Record) 
2 

Asterisk 2  

Asterisk  2
2  2.4

19

 2.4 Asterisk
Directory OR File

/usr/local/etc/zaptel.conf
 
 Zaptel Channels
/usr/local/etc/asterisk/
 
Asterisk 2
.conf
/usr/local/share/asterisk
   Asterrisk 
keys, AGI, Firmware 
/usr/local/share/asterisk/sounds

/usr/local/share/asterisk/mohmp3

/var/log/asterisk

/var/log/asterisk/cdr-csv

/etc/rc.conf

  .gsm
2
 2
 
.mp3 
 2
  Log 
Asterisk Event,
Queue, Messages 
 
Asterisk 2 

Master.csv 2


 Asterisk
2  
 asterisk_enable=YES

2.5.3 Asterisk

Asterisk 2
FreeBSD Linux
 Asterisk 2
FreeBSD /usr/local/etc/asterisk

20

Linux  /etc/asterisk
2
Adsi.conf

Adtranvofr.conf
Agents.conf

Alarmreceiver.conf
Alsa.conf

Asterisk.adsi

Asterisk.conf

Cdr_manager.conf
Cdr_odbc.conf

Cdr_pgsql.conf
Cdr_tds.conf

Enum.conf


(Analog Display Service Interface
2
ADSI)
 
Frame Relay Adtran
  
(Call Center)   ID
Passwords
  Alarm
Receive  2
 
(Soundcard)
2
  Scripts 
 
ADSI 2
2  asterisk.conf-dist
 
2

 CDR (Call Detail Record)
 
ODBC 

 
(CDR) PostgresSQL
 
(CDR) Microsoft SQL
Sybase
  ENUM 

21

Extconfig.conf

Features.conf

Festival.conf

Iax.conf

Iaxprov.conf

Indications.conf

Logger.conf
Manager.conf

Meetme.conf

Mgcp.conf

Modern.conf

DNS
2 
Realtime 
 doc/readme.extconfig
   
 pickup extension
call parking
  Asterisk

Festival 2  Open Source
Software
 IAX Account
ATA IP Phone 
IAX2(Inter-AsteriskExchange2)
 Simple provisioning
Digiums S1011  
IAXY 
 
Ringing, Tones  

 Logging
2
 
(Remote Access) 
GUI
(Graphics User Interface)

Teleconference

 
Media Gateway Control
Protocol   2
VoIP Cisco
  ISDN

22

Modules.conf

Musiconhold.conf

Osp.conf
Oss.conf
Phone.conf
Privacy.conf
Queues.conf
Res_config_odbc.conf

Res_odbc.conf
Rpt.conf
Rtp.conf

Sip.conf

Skinny.conf

Modem  
ISDN4Linux Driver
 
(modules)   

 2
 
  

 
Open Settlement Protocol
  Open Sound
System
  Linux Phone
  Privacy
2
  (Queues) 

 
asterisk
ODBC
 
 ODBC
 (Radio Repeater)
  
RTP (Real time protocol)  
UDP
  
SIP
ATA  Ip Phone
IP Phone SIP
Account 2
  

23

Voicemail.conf

Vpb.conf
Zapata.conf

Cisco
  Voice Mail
Voice Mail account

 VoIP 
Voice Tronix
  
 Zaptel channels

Asterisk 2 
 filename.conf-dist  
 2 
Asterisk 2 
2 2-3 2
 (Extension) 30
 SIP extensions.conf 
extensions 2 sip.conf  
SIP 2
2.6 Asterisk
 (PBX)
IVR, Voice Mail, Voice Recording  22 
Asterisk 2 2
2  2
2 
 
Asterisk 
Asterisk
2  Asterisk 2 
PBX

 
Asterisk 2  
Asterisk  C, Perl, PHP
 Asterisk 

24

Asterisk
  Voice Mail,
Interactive Voice Response (IVR), (Music on Hold),
(Call Waiting), (Call forwarding) 
Asterisk


Dial Plan  2 
Asterisk  2 Sip Server
SIP, IAX, H323 SCCP  Asterisk
Protocol  
  2
2     [6]
2.7
2

 2  (Analog)
(Digital)  2  2 VoIP(Voice
Over IP)   
  

2 2 2  


25

 3

3.1
  VoIP  
2   
 
- VoIP Architecture
- VoIP Protocol
- Audio Codec
- VOIP Equipment
3.2
VoIP
2 
VoIP 2
-  Cat2call (http://www.cattelecom.co.th)
- TOT Netcall (http://www.tot.co.th)
- 
(http://www.truecorp.co.th/tha/products/online_ipphone2.jsp)

26

3.3
3 
3.1

 3.1

27

3.3.1 

 3.2 
 3.2   
  Elastix  CentOS  Elastix 2
  PBX, email,
Instant Message Fax 
Elastix
Asterisk, HylaFAX, Openfire Postfix
VoIP 2 SIP IAX2

28

3.3.2 

 3.3 IP-PBX
 3.3 (Extension) 3
3 
 
 1 800 IP Soft Phone IP Phone 
3CX Phone
 2 801 IP Soft Phone IP Phone 
3CX Phone
 3 802 IP Soft Phone IP Phone 
3CX Phone (On Mobile)

29

3.3.3

 3.4
 3.4
3 417 418 
 AX100P 132  Zap-Channel AX100P
 1 (PABX)  IPPBX

30

3.4 . VoIP
3.4.1

 3.5
 3.5 
  IP-PBX
9 9 PABX

31

3.4.2 (report)

 3.6
 3.6 2
    4

1.  

2.  


32

3.  

4. 2  2

 

3.5 .
3.5.1 
22
2
- CPU Pentium 4 Speed 3.0 GHz
- RAM DDR 512 MB
- HDD 40 GB
- LAN 100 Mbps
AX100P

 3.7 AX100P, 1 Port RJ-11


(Specification)

(Analog Interface Card - Main Card) 1


FXO Elastix IP PBX PCI 2.2

33


- Elastix Asterisk Trixbox 
Elastix IP PBX  PCI 2.2 
FXO
- Voice Mail, IVR IP-PBX
Music on Hold Conference RJ11
 (Extension
3.5.2 
Centos 5.2
 Linux 
Elastix IP-PBX  

Elastix 2.0
IP-PBX  
Config Elastix version 1.5.2

- Asterisk 1.4.x PBX


- VTigerCRM CRM
- A2Billing  Asterisk 
- Hylafax
- FreePBX Asterisk
- OSLEC
- Postfix/Round Cube webmail
- CentOS 5.2
- Etc.
Asterisk 1.4
Asterisk   Softswitch, IP-PBX
  
 2 
 2 Elastix Centos

34

Asterisk
Switch (PBX) Asterisk
IP hybridge 2 ,
 feature ( Voicemail, IVR), 
2 analog digital (ISDN)
Gateway  2
VoIP
Feature & Media Server Asterisk
 
implementation IVR
(pabx) 
Call Center Call-Center ACD,
Queue, IVR,Skill-based routing, etc
 Asterisk
- OS Linux OpenBSD FreeBSD MAC OS X
- PC Hardware  PC Server 
linux
-  2 Digital Analog
Mysql
(MySQL) 


(SQL = Structured Query Language) 
  
 (Web Server) 
  (Server-Side Script) (PHP)

 2 elastix Centos
PhpMyAdmin - 2.11.5.1
  MySQL
 TABLE
function  query SQL 2
insert delete update
  SQL
 2

35

Apache Web Server (httpd)


Apache Project   web server 

60 % 
Homepage Homepage Browser  Web server 
HomePage 2  web server    2
Elastix CentOS
PHP Version 5.1.6
-

HTML


2  2

3.6
MySQL
PhpMyAdmin  
4 2
3.6.1 Entity-Relationship Diagram

 3.8 Entity-Relationship Diagram

36

3.6.2 (cdr)
 3.1  , ,
,, Context   ,
,,
, ,,2
,2 , 
 Automated Machine Accounting Flags 
  Billing 2 , Caller ID, 

 3.1

datetime
calldate
varchar(80)
clid
varchar(80)
src
varchar(80)
dst
varchar(80)
dcontext
varchar(80)
channel
varchar(80)
dstchannel
varchar(80)
lastapp
varchar(80)
lastdata
int(11)
duration
billsec
int(11)
varchar(45)
disposition
int(11)
amaflags
accountcode varchar(20)
varchar(32)
uniqueid
varchar(255)
userfield


latin1_swedish_ci
latin1_swedish_ci
latin1_swedish_ci
latin1_swedish_ci
latin1_swedish_ci
latin1_swedish_ci
latin1_swedish_ci
latin1_swedish_ci

latin1_swedish_ci
latin1_swedish_ci
latin1_swedish_ci
latin1_swedish_ci

37

3.6.3 (cdrcountry)
 3.2  

 3.2

CID
varchar(3)
CNameThi varchar(100)
CNameEng varchar(100)


latin1_swedish_ci
utf8_general_ci
utf8_general_ci

3.6.4 (cdrprice)
 3.3 
   2
 3.3

PID
int(4)
varchar(3)
CID
decimal(9,2)
Pprice
PType
varchar(2)
varchar(1)
Pactive
datetime
Pstart
datetime
Pend


latin1_swedish_ci
latin1_swedish_ci
latin1_swedish_ci

0.00
HB
Y

NULL

38

3.6.5 (vwcdr)
 3.4 
  (//) (//)

 3.4


datetime
calldate
datetime
dstdate
varchar(80)
latin1_swedish_ci
src
varchar(80)
latin1_swedish_ci
dst
utf8_general_ci
CountryName varchar(100)
utf8_general_ci
dstCallType varchar(6)
int(1)
dstchannel
varchar(13)
utf8_general_ci
dstStatus
dstStatusCall int(1)
varchar(45)
latin1_swedish_ci
disposition
int(11)
billsec
varbinary(25)
TotalCall

NULL

NULL
0
NULL
NULL
0
NULL

39

 4

4.1
 PABX 

  2
 2 2   


2   VOIP
  2 
( PABX)
4.2
2
2
4.2.1
- CPU Intel Pentium 4 3.00 GHz, RAM 512 Mb
- CentOS
- MySQL
- PHPMyadmin 
4.2.2 cardAX100P

40

4.3
web browser connect  PC  2 Elastix
https://192.168.4.3/phpmyadmin login screen User : root , Password : xxxx

 4.1 Login
  asteriskcdrdb

 4.2 asteriskcdrdb

41

cdr () 

 4.3 cdr ()
cdrcountry () 

 4.4 cdrcountry ()

42

cdrprice () 

 4.5 cdrprice ()
vwcdr ()  

 4.6 vwcdr ()

43

4.4
- Report
-
 Web Browser
-
  Server
3CXPhone  2  
 2 3CXPhone

 4.7  2 3CXPhone
2 3CXPhone
  2 3CXPhone

 4.8  2 3CXPhone

44

4.5

2 2  
2   2
(Services Provider)
 2
2  "" -> "
" 2 2

 

 4.9 2
   "" -> "
"  
    800

45

 4.10 
4.6
4.6.1 
   4

 4.11 3CXPhone

46

 4.12  
  4930794810

 4.12
4.6.2 
2  6

 4.13 3CXPhone
 4.14  
  0837978953

47

 4.14
4.6.3 Extension 
   
3

 4.15 3CXPhone Extension


 4.16  
  802

 4.16 Extension

48

4.7 CSV,Excel,PDF
 Export To SCV, Export
To Excel, Export To PDF

 4.17 CSV, Excel, PDF


4.7.1 CSV  4.18
CSV

 4.18 CSV

49

4.7.2 Excel  4.19


Excel

 4.19 Excel
4.7.3 PDF  4.20
PDF

 4.20 PDF

50

4.8  


Web Browser

 2  
 

  "" -> ""



  "" -> " " 

 4.21 

Web Browser
4.9  Server
2 PHP Sysinfo Elastix 
 Server  "" -> ""

 4.22  PHP Sysinfo

51

4.9.1  Extension
Memory Free 214.54 MB

 4.23 Memory  Extension


 Extension

 4.24  Extension
4.9.2  Extension 1
Memory Free 211.77 MB

 4.25 Memory  Extension 1

52

 Extension 1

 4.26  Extension 1
4.9.3  Extension 2
Memory Free 210.56 MB

 4.27 Memory  Extension 2

53

 Extension 2

 4.28  Extension 2
4.9.4  Extension 3
Memory Free 206.56 MB

 4.29 Memory  Extension 3

54

 Extension 3

 4.30  Extension 3
4.9.5  Extension 4
Memory Free 204.57 MB

 4.31 Memory  Extension 4

55

 Extension 4

 4.32  Extension 4
4.9.6  Server
Physical Memory 2  Extension  Server
Elastix 2  Extension 1 Extension 4
 4.33

  Server

502.94
214.54

211.77

210.56

206.56

204.57

 4.33   Server
Software Elastix 
 2  Hardware  

56

 5

5.1






2 PHP 
2
PHP


 2
2 3 
  
 2
2 2

5.2 VoIP
- 2
VoIP 

-
 

-  
2 2

-
 
 2  2
-
2  
VoIP Asterisk 2

57



    
Software Open Source
5.3
5.3.1 
-  VoIP 

- Elastix
2

5.3.2

2     
2  

  2
PABX   VoIP


58


[1] Eastern network and service co.,ltd. Telephone & PABX
PRODUCT.[Online]http://www.ensthai.com/product_pabx.php
[2] .
?
? VoIP P
IP-PBX Asterisk, 2551
[3] . P
IP-PBX Asterisk, 2551
[4] . VoIP P
IP-PBX Asterisk P IP-PBX
Asterisk, 2551
[5] . CODEC P
IP-PBX Asterisk, 2551
[6] . Asterisk P IPPBX Asterisk, 2551
[7] J. Rosenberg, H. Schulzrinne, G. Camarillo, A. Johnston, J. Peterson, R.Sparks, M
Handley, E. Schooler SIP Messages, 2545

59

60

  Elastix 2.0
1.
BIOS CD CD

& .1 . Elastix
2. English Enter

& .2
.

61

3. "us"

& .3
4.


.
"Remove all partitions on
selected..." . Tab
"OK" Enter

& .4


.

62

5.


Tab

"Yes"
Enter

& .5


6.

Tab
"No" Enter

& .6

63

7. Ethernet IP Subnet Gateway DNS

"Yes" Enter

& .7 Ethernet 0
8.

Ethernet 0 IPv4 Tab


"Ok"
Enter

& .8
Ethernet

64

9.

IP Address IP Static IP Subnet


Mask Enter

& .9 IP Address
10. Default gateway DNS Server

& .10 Default gateway DNS Server

65

11. .

elastix.medline.com

& .11 .

elastix.medline.com
12. Time zone

& .12 Time zone

66

13. . Password Root CentOS

& .13 . Password Root


14.

& .14

67

15.
.

& .15 . Elastix


16. . Password MySQL Server ( root)

& .16 . Password MySQL Server

68

17. Password MySQL Server

& .17 Password MySQL Server


18. . Password Web Interface Elastix

& .18 . Password Web Interface Elastix

69

19. Password Web Interface Elastix

& .19 Password Web Interface Elastix


20. root

& .20 root

70

71

  Elastix
1. Login Elastix
web browser connect  PC   Elastix https://192.168.4.3/ login
screen 

) .1 Login Elastix
Elastix

) .2 Elastix
  System -> Hardware Detection Detect New Hardware
scan card detect X1000P FXO (
)

72

) .3 Detect New Hardware X1000P Card


Network Parameters

) .4 Network Parameters
2. )
 PBX -> PBX Configuration -> Extensions
dropdown device SIP Device IP phone, softphone ZAP Device
 SIP Device Submit

73

) .5 )
Add ZAP Extension 
- User Extension = 804
- Display Name = M-804

) .6 )
- secret = 804

) .7 )
-

Submit

74

) .8 )
"Apply Configuration Changes Here"  

) .9 )
3. Trunk
SIP Trunk  Elastix VoIP (Voip -> PSTN, VoIP ->
GSM) Elastix Elastix   SIP protocol
3.1  ) SIP Trunk
PBX -> PBX Configuration -> Trunks ->Add SIP Trunk

75

) .10  SIP Trunk


TOTnetcall
Add SIP Trunk
- Trunk Description = TOTnetcall
- Outbound Caller ID = 0681097902 ( tot)

) .11  SIP Trunk


Outgoing Settings
Register VoIP providers  tot netcall
- Trunk Name TOTnetcall
- PEER Details
- username=USERID
- type=friend
76

fromuser=0600046522
- realm=10.10.2.50
- secret=itmfu36122
- host=203.113.125.82
- outboundproxy=203.113.125.82
- fromdomain=203.113.125.82
- insecure=very
- canreinvite=no
- dtmfmode=rfc2833
- call-limit=1
- allow=g729&alaw&ulaw
- nat=no
Register String = 600046522:itmfu36122@203.113.125.82:5060/0600046522
-

) .12  SIP Trunk


77

TOT_Foreign
Add SIP Trunk
- Trunk Description = TOT_Foreign
- Outbound Caller ID = 0681097902 ( tot)
- Dial Ruless = 88+Z. ( TOTnatcall
88)

) .13  SIP Trunk


Outgoing Settings
Register VoIP providers  tot netcall
- Trunk Name TOT_netcall
- PEER Details
o username=0600046522
o type=friend
o fromuser=0600046522
o realm=10.10.2.20
o secret=itmfu36122
o host=203.113.125.82
o outboundproxy=203.113.125.82
o fromdomain=203.113.125.82
o insecure=very
78

o canreinvite=no
o dtmfmode=rfc2833
o call-limit=1
o allow=g729&alaw&ulaw
o nat=no
Register String = 0600046522:itmfu36122@203.113.125.82:5060/0600046522

) .14  SIP Trunk


OUT_TO_PBX (Estatix)
Add ZAP Trunk
- Trunk Description = OUT_TO_PBX
79

Zap Identifier (trunk name) = g0

) .15  SIP Trunk


"Apply Configuration Changes Here"  

) .16  SIP Trunk

80

4. Outbound Routes
Outbound Routes Name OUT_TO_PBX 
5  (PABX)
 PBX -> PBX Configuration -> Outbound Routes -> Add Route
- Route Name = OUT_TO_PBX
- Dial Patterns = 5 |.
- Trunk Sequence = ZAP/g0
- Submit Changes

) .17 Outbound Routes


Outbound Routes Name OUT_TO_TOTnetcall 
6 

 PBX -> PBX Configuration -> Outbound Routes -> Add Route
- Route Name = OUT_TO_TOTnetcall
- Dial Patterns = 6| .
81

Trunk Sequence = SIP/TOTnetcall


Submit Changes

) .18 Outbound Routes


Outbound Routes Name OUT_TO_Foreign 
4 
 PBX -> PBX Configuration -> Outbound Routes -> Add Route
- Route Name = OUT_TO_Foreign
- Dial Patterns = 4 | .
- Trunk Sequence = SIP/TOT_netcall
Submit Changes

82

) .19 Outbound Routes


5. IVR
 PBX -> PBX Configuration -> IVR -> Add IVR

) .20 IVR
-

Change Name = TO Elastix Medline


83

Save

) .21 IVR
"Apply Configuration Changes Here"  

) .22 IVR
6. Inbound Routes
 PBX -> PBX Configuration -> Inbound Routes -> Add Incoming Route
- Description: =

84

) .23 Inbound Routes


-

IVR = TO Elastix Medline

) .24 Inbound Routes


"Apply Configuration Changes Here"  

) .25 Inbound Routes

85

7.  3CX Phone
7.1  3CXPhone (  ) )
- Set accounts
- New

) .26  3CXPhone (  )
-

Account name : Tum


Caller ID : chaiwat
Extension : 800
ID = 800
Password = 800
I am in the office local IP = 192.168.4.3
On Hook

86

) .27  3CX Phone (  )


7.2  3CX Phone (  )
- Icon
 
- Create Profile

) .28  3CX Phone ( )


87

Add New
Name = M-TumMobile
Display name = M-TumMobile
User = 806
ID = 806
Password 806

) .29  3CX Phone ( )


-

Internal Server = 192.168.4.3


On Hook

88

) .30  3CX Phone ( )

89

You might also like