SIP-based VoIP Lab
-
Upload
madrona-escovado -
Category
Documents
-
view
23 -
download
0
description
Transcript of SIP-based VoIP Lab
1
SIP-based VoIP Lab
2
Step 1: Connect Your PC to The Network
• Get your laptop connected to the campus network (both WLAN or wireline will work).– Run ipconfig to show your own IP address– Ping NCNU.SIP.voip.edu.tw (163.22.20.155)– Ping NCNU-GW1.ipv6.club.tw (163.22.20.15
3)
• We interconnect via D-Link DES-3225G Switch.
3
ACT Wi-Fi Phone
• Setting – Wireless – Scan – Set as Preferred AP (TC3AO)
• Setting – Network – IP
• Setting – SIP– User Name: 40001– SIP Server: 163.22.20.155 (ncnu.sip.voip.edu.t
w)
4
IP Addresses We Obtained
• 40001 – 10.10.19.165• 40002 – 10.10.19.188• 40003 - 10.10.19.71• 40004 – 10.10.19.170• 40005 – 10.10.19.121
• 40000 – 10.10.19.4– Cisco 7960
• 41001 – 10.10.19.47• 41002 – 10.10.19.199• 41003 – 10.10.19.164• 41004 – 10.10.19.94• 41005 – 10.10.19.85• 41006 – 10.10.19.57• 41007 – 10.10.19.33
5
Step 2: Install Ethereal under Windows
• Install Ethereal 0.10.14. – It will automatically install WinPcap.
• Install WinPcap 3.1.– WinPcap is an architecture for packet capture and netw
ork analysis for the Win32 platforms.
– It includes • a kernel-level packet filter,
• a low-level dynamic link library (packet.dll), and
• a high-level and system-independent library (wpcap.dll, based on libpcap version 0.6.2)
6
Where to Get Ethereal
• Official site: – http://www.ethereal.com/
• Local mirror:– http://Download.ipv6.club.tw/
7
Step 3: Install a SIP UA
• Windows Messenger 4.7 (4.7.2009)– Windows XP SP2 will remove the SIP support i
n Messengers
• X-Lite
• NBEN UA
• Cisco 7960 IP phone
• Act-Tel WiFi phone
8
Step 4: REGISTER
• Configure the proxy server to be– NCNU.SIP.voip.edu.tw (163.22.20.155)
• Start your Ethereal – Disable promiscuous mode– Capture Filter: udp port 5060– Display the captured packets in real-time– OK
• Start Windows Messenger• Sign-in and observe the packets you capture
9
• Ex 1:– Everybody sign-in and sign-off to see the SIP messages.– Sign-in
• Expires: 3600
– Sign-off• Expires: 0
• Ex 2:– Two UAs sign in with the same username.
• 2 Bindings
– One UA signs off• 1 Binding
– The other UA signs off• 0 Bindings
10
• Now everybody restores to your original username.
• Keep Ethereal running.
11
Test Your Microphone & Speaker
12
Call Scenarios
• Practice using this tool to capture SIP signaling in the following call flows– REGISTER – 200 OK– INVITE – 200 OK – ACK– INVITE – CANCEL – 200 OK - ??? – ACK– INVITE – Decline (???) - ACK– BYE – 200 OK– Hold/Retrieve
13
INVITE
• Pairing students into groups• Let the student with lower username be the caller, and
the other student be the callee. Make the call.• Exchange the role, and make the call again.
1. Call instructor’s Cisco 7960 – [email protected]
2. Call NCNU PBX– 4161 (COM), 4131 (CSIE), 4101(EE)
• Compare the signaling flow of the above two cases
14
Try to capture RTP packets
• Open a new Ethereal– The old one is still running to capture SIP signa
ling.
• Capturing Filter: udp
• You will obtain 50 packets in a second– Analyze – Decode As – RTP
• Can you choose a different codec?
15
X-Lite
• INVITE/200 OK/ACK
• BYE/200 OK
• Hold/Retrive
• RTP
16
SIP Forking
• Ex 1:– A calls B, C. – B answers.– C receives a CANCEL request.
• Ex 2:– B calls A, C– Nobody answers.– C hangs up.
17
Contacts (using Messenger)
• Presence– SUBSCRIBE/NOTIFY– RFC 3265
• Instant Message– MESSAGE– RFC 3428