Upload
sheryl-scott
View
217
Download
1
Tags:
Embed Size (px)
Citation preview
1
Build a SIP of Environment
Speaker: Yi-Ji JhengDate: 2007.10.03
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
5
SoftPhone A SoftPhone BPC
SIP signal
Talk
Proxy Call mode
6
SIP Server
SoftPhone A SoftPhone B
VMware
PC
Talk
SIP signal
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
9
X-Lite SJPhone
Listen on <ip>:5060Listen on <ip>:50600
PC
Number 1000
SIP signal
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
22
SIP Server
X-Lite SJPhone
VMware
PC
Number 1000 Number 2000
SIP signal
Listen on <ip>:5060Listen on <ip>:50600
Ethereal
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/INSTALL23
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
41
UA SIP Server
REGISTER
200 OK
REGISTER
200 OK
0 Bindings
1 Bindings
Un-Register 0 bindings expire=0 with contact Register 1 bindings (no)expire with contact
N bindings N number of contacts
Call
42
INVITE
100 Trying
UASUAC SIP Server
INVITE
100 Trying
180 Ringing
200 OK
180 Ringing
RTP
BYEBYE
Dialog
transaction
transaction
200 OK
200 OK200 OK