Build_a_SIP_of_Environment

Download Report

Transcript Build_a_SIP_of_Environment

Build a SIP of Environment
Speaker: Yi-Ji Jheng
Date: 2007.10.03
1
Outline
 Test SIP of Environment
 Direct call
 Proxy call
2
TEST SIP OF
ENVIRONMENT
3
Preface
 Can to build up a Server is not point
 It’s very important to know how it
work and how I setup it for our
need and maintain it later
 Otherwise, it may change (evil tools)
4
Direct call mode
SIP signal
Talk
SoftPhone A
PC
SoftPhone B
5
Proxy Call mode
SIP Server
VMware
SIP signal
PC
Talk
SoftPhone A
SoftPhone B
6
Requirement
 Softphones
 X_lite-v2.0
 X_lite-v3.0 do not support network
configure (direct call)
 SJphone-1.60
 SIP Server
 ser-0.9.6_src.tar.gz
7
DIRECT CALL
8
Environment
SIP signal
X-Lite
Listen on <ip>:50600
PC
SJPhone
Listen on <ip>:5060
Number  1000
9
Setup SJPhone
10
11
12
13
Setup X-Lite
14
System Settings / SIP Proxy / Default
 Enables : Yes
 Display Name : 1000
 Username : 1000
 Authorization User :
1000
 Password : 1000
 Register : Nerver
 Direct Dial IP : Yes
15
System Settings / Network
 Auto Detect IP : No
 Listen on IP : <IP>
 Listen SIP Port : 50600
16
Test basic of actions
 SJPhone calls to X-Lite
 X-Lite hangs up phone
 SJPhone hangs up phone *
 X-Lite calls to SJPhone *
 X-Lite hangs up phone
 SJPhone hangs up phone
17
Phenomenon and Questions
 Listen some quarrel voice
 Ethereal cannot catch packet
 Some action cannot run
 (previous slides that mark “*”)
18
SJPhone Bugs
 Occur when two softphones in the
same PC
 SJPhone calls to X-Lite when SJPhone
hangs up phone
 Via part didn’t have branch
 X-Lite calls to SJPhone
 c part in SDP (c : IN IPv4 127.0.0.1)
19
Try again
 Install SJphone 1.65
 SJPhone calls to X-Lite
 X-Lite hangs up phone
 SJPhone hangs up phone
 X-Lite calls to SJPhone
 X-Lite hangs up phone
 SJPhone hangs up phone
20
PROXY CALL
21
Enviroment
SIP Server
VMware
SIP signal
PC
Ethereal
X-Lite
Number  1000
Listen on <ip>:50600
SJPhone
Number  2000
Listen on <ip>:5060
22
Install SIP Server
 Use Winscp upload SER on the Linux
 Usually put it in /usr/src






Use Pietty connect to Linux
#cd /usr/src
#tar zxvf ser-0.9.6_src.tar.gz
#make
#make modules
#make install
 Can see /ser-0.9.6/INSTALL
23
Start SIP Server
 After install, you can see
 /usr/local/etc/ser/ser.cfg
 /usr/local/sbin/ser
 #ser
 Must to check
 Did SER binding right ??
 Did SER already executed ??
24
Setup X-Lite
 System Settings / SIP Proxy / Default




Domain/Realm : <Server IP>
SIP Proxy : <Server IP>
Register : Always
Direct Dial IP : No
 Reboot X-Lite
25
Setup SJPhone
26
27
28
29
30
31
 Check Softphones really register on
SER
 #serctl ul show
 “serctl –h” to see more
32
Setup Ethereal
33
34
35
Ethereal filter command
 Only see someone
 ip.addr eq <ip>
 Protocol type
 arp、icmp、udp、tcp、rtp、sip
 Logic
 eq、and、or
 ==、&&、||
36
Stop or Restart Ethereal
37
Save file
38
Careful
 Catch packets in Switch may have
some questions
 Switch v.s. Hub
 Can select “Capture packets in
promiscuous mode” to solve some
questions
39
Call flow of actions
 REGISTER
 Call
 SJPhone(2000) calls to X-Lite(1000)
 X-Lite(1000) calls to SJPhone(2000)
40
REGISTER
SIP Server
UA
REGISTER
0 Bindings
200 OK
REGISTER
1 Bindings
200 OK
Un-Register  0 bindings  expire=0 with contact
Register  1 bindings  (no)expire with contact
N bindings  N number of contacts
41
Call
UAC
SIP Server
UAS
INVITE
100 Trying
INVITE
100 Trying
transaction
180 Ringing
180 Ringing
Dialog
200 OK
200 OK
RTP
BYE
BYE
transaction
200 OK
200 OK
42