1 Build a SIP of Environment Speaker: Yi-Ji Jheng Date:
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 ASoftPhone B PC SIP signal Talk
Proxy Call mode 6 SIP Server SoftPhone ASoftPhone 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-LiteSJPhone Listen on :5060Listen on :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 : Listen SIP Port :
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 IPv ) 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-LiteSJPhone VMware PC Number 1000Number 2000 SIP signal Listen on :5060Listen on :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/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 : SIP Proxy : 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 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 UASUACSIP Server INVITE 100 Trying 180 Ringing 200 OK 180 Ringing RTP BYE Dialog transaction 200 OK