Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © OneAccess Networks – All rights reserved United Networking 2 June, 2015 4.16 VoIP SIP Configuration.

Similar presentations


Presentation on theme: "Copyright © OneAccess Networks – All rights reserved United Networking 2 June, 2015 4.16 VoIP SIP Configuration."— Presentation transcript:

1 www.oneaccess-net.com contact@oneaccess-net.com Copyright © OneAccess Networks – All rights reserved United Networking 2 June, 2015 4.16 VoIP SIP Configuration Examples v1.0 2008

2 U n i t e d N e t w o r k i n g 2 Configuration examples Gateway to gateway call (uac/uas, no SIP server). Register & Invite methods over proxy server:  Register transaction: Slides 62 & 63  Invite transaction: Slides 64 to 65 40x challenge for Register & Invite methods :  Authenticated register transaction: Slides 68 to 70  Authenticated Invite transaction: Slides 71 to 77 Voice backup

3 U n i t e d N e t w o r k i n g 3 #200 #100 192.168.1.0/24.1.2 Up Down  Gateway to Gateway call (1) Gateway-to-Gateway Call (1)

4 U n i t e d N e t w o r k i n g 4 hostname UP interface FastEthernet 0/0 ip address 192.168.1.1 255.255.255.0 exit interface bri 5/0 isdn protocol-emulation isdn-nt exit no shutdown execute exit snmp set-write-community private snmp set-read-community public voice-default voice-port 5/0 clock-source free_run exit dial-peer voice pots 0 pots-group 0 port 5/0 no shutdown exit dial-peer voice voip 0 sig-protocol sip gw-ip-address 192.168.1.2 voip-coder-profile 0 no shutdown exit voice-routing route 1 dial-peer pots-group 0 prefix 100 length 3 prefix-type outgoing called last exit route 2 dial-peer voip 0 prefix 200 length 3 prefix-type outgoing called last exit sip-gateway gw-interface fastethernet 0 intrusive no shutdown exit voip-coder-profile 0 codec 0 g711a 20 exit Gateway-to-Gateway Call (2)

5 U n i t e d N e t w o r k i n g 5 hostname DOWN interface FastEthernet 0/0 ip address 192.168.1.2 255.255.255.0 exit interface bri 5/0 isdn protocol-emulation isdn-nt exit no shutdown execute exit snmp set-write-community private snmp set-read-community public voice-default voice-port 5/0 clock-source free_run exit dial-peer voice pots 0 pots-group 0 port 5/0 no shutdown exit dial-peer voice voip 0 sig-protocol sip gw-ip-address 192.168.1.1 voip-coder-profile 0 no shutdown exit voice-routing route 1 dial-peer pots-group 0 prefix 200 length 3 prefix-type outgoing called last exit route 2 dial-peer voip 0 prefix 100 length 3 prefix-type outgoing called last exit sip-gateway gw-interface fastethernet 0/0 intrusive no shutdown exit voip-coder-profile 0 codec 0 g711a 20 exit Gateway-to-Gateway Call (3)

6 U n i t e d N e t w o r k i n g 6 192.100.100.0/24.2 MAIN_SITE REMOTE_SITE.69.2 Proxy/registrar server @oneaccess-net.com 192.0.0.0/24 IP network.100.10.100 PABX Pabx BRI 5/0 #300 #301.69.1 172.17.68.0/22 BRI 5/1 #0141877446 Register and Invite methods over Proxy SIP (1)

7 U n i t e d N e t w o r k i n g 7 hostname MAIN_SITE Ip route 0.0.0.0 0.0.0.0 192.100.100.100 Ip host oneaccess-net.com interface FastEthernet 0/0 ip address 192.100.100.2 255.255.255.0 exit interface bri 5/0 isdn protocol-emulation isdn-nt tei-negotiation static exit no shutdown execute exit voice-default voice-port 5/0 clock-source free_run exit dial-peer voice pots 0 pots-group 0 port 5/0 no shutdown exit dial-peer voice voip 0 sig-protocol sip voip-coder-profile 0 no shutdown exit voice-routing route 1 dial-peer pots-group 0 ua-sip prefix 300 length 3 prefix-type outgoing called last exit route 2 dial-peer voip 0 prefix 301 length 3 prefix-type outgoing called last exit sip-gateway outbound-proxy 172.17.69.2 reg-dns-add oneaccess-net.com prox-dns-add oneaccess-net.com gw-interface fastethernet 0/0 intrusive device-host-name oneaccess-net.com uri-contact ip-address no shutdown exit voip-coder-profile 0 codec 0 g711a 20 Register and Invite methods over Proxy SIP (2)

8 U n i t e d N e t w o r k i n g 8 hostname REMOTE_SITE Ip route 0.0.0.0 0.0.0.0 192.100.100.100 interface FastEthernet 0/0 ip address 192.0.0.10 255.255.255.0 exit interface bri 5/0 isdn protocol-emulation isdn-nt tei-negotiation static exit no shutdown execute exit voice-default voice-port 5/0 clock-source free_run exit dial-peer voice pots 0 pots-group 0 port 5/0 inser-calling-number 301 no shutdown exit dial-peer voice voip 0 sig-protocol sip voip-coder-profile 0 no shutdown exit voice-routing route 1 dial-peer pots-group 0 ua-sip prefix 301 length 3 prefix-type outgoing called last exit route 2 dial-peer voip 0 prefix 300 length 3 prefix-type outgoing called last exit sip-gateway outbound-proxy 172.17.69.2 reg-dns-add oneaccess-net.com prox-dns-add oneaccess-net.com gw-interface fastethernet 0/0 intrusive device-host-name oneaccess-net.com uri-contact ip-address no shutdown exit voip-coder-profile 0 codec 0 g711a 20 exit Register and Invite methods over Proxy SIP (3)

9 U n i t e d N e t w o r k i n g 9 1- Internet Protocol, Src Addr: 192.100.100.2 (192.100.100.2), Dst Addr: 172.17.69.2 (172.17.69.2) Request-Line: REGISTER sip:oneaccess-net.com:5060 SIP/2.0 Method: REGISTER Resent Packet: False Message Header Call-ID: 31 Contact: Content-Type: application/* CSeq: 56 REGISTER Expires: 1800 From: ;tag=22C8 Max-Forwards: 70 Privacy: none To: Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-556D-4F Content-Length: 0 2- Internet Protocol, Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 100 Trying Status-Code: 100 Resent Packet: False Message Header Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-556D-4F From: ;tag=22C8 To: Call-ID: 31 CSeq: 56 REGISTER Server: Brekeke OnDO SIP Server (1.2.4.3/144) SIP Registrar server (4) debug sip traces about Register method

10 U n i t e d N e t w o r k i n g 10 Frame 3 Internet Protocol, Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Session Initiation Protocol Status-Line: SIP/2.0 200 OK Status-Code: 200 Resent Packet: False Message Header Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-556D-4F From: ;tag=22C8 To: ;tag=1136463813166-493603485 Call-ID: 31 CSeq: 56 REGISTER Contact: ;expires=1800;q=1.0 Server: Brekeke OnDO SIP Server (1.2.4.3/144) Content-Length: 0 Another SIP Register Method (new Call-ID & new Cseq) is generated about the « user » 0141877456. Three same frames as for « 300 » are sent to oneaccess-net.com Registrar server. SIP Registrar server (5) debug sip traces about Register method

11 U n i t e d N e t w o r k i n g 11 Session Initiation Protocol Request-Line: INVITE sip:301@172.17.69.2:5060;user=phone SIP/2.0 Method: INVITE Resent Packet: False Message Header Call-ID: 3C Contact: Content-Type: application/sdp CSeq: 66 INVITE From: ;tag=5548 Privacy: none Supported: replaces To: Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-3418-59 Content-Length: 150 Message body Session Description Protocol SIP Proxy server (6) debug sip trace about Invite method

12 U n i t e d N e t w o r k i n g 12 No. Source Destination Protocol Info 1 192.100.100.2 172.17.69.2 SIP/SDP Request: INVITE sip:301@oneaccess-net.com:5060; user=phone, with sdp 2 172.17.69.2 192.100.100.2 SIP Status: 100 Trying 3 172.17.69.2 192.0.0.10 SIP/SDP Request: INVITE sip:301@192.0.0.10:5060, with sdp 4 192.0.0.10 172.17.69.2 SIP Status: 183 Proceeding 5 172.17.69.2 192.100.100.2 SIP Status: 183 Proceeding 6 192.0.0.10 172.17.69.2 SIP Status: 180 Ringing 7 172.17.69.2 192.100.100.2 SIP Status: 180 Ringing 8 192.0.0.10 172.17.69.2 SIP/SDP Status: 200 OK, with session description 9 172.17.69.2 192.100.100.2 SIP/SDP Status: 200 OK, with session description 10 192.100.100.2 172.17.69.2 SIP Request: ACK sip:301@172.17.69.2:5060;user=phone 11 172.17.69.2 192.0.0.10 SIP Request: ACK sip:301@192.0.0.10:5060 12 192.0.0.10 192.100.100.2 RTP Payload type=ITU-T G.711 PCMA, SSRC=79034265, Seq=1554 13 192.100.100.2 192.0.0.10 RTP Payload type=ITU-T G.711 PCMA, SSRC=190383165, Seq=1025 14 192.100.100.2 172.17.69.2 SIP Request: BYE sip:301@172.17.69.2:5060;user=phone 15 172.17.69.2 192.0.0.10 SIP Request: BYE sip:301@192.0.0.10:5060 16 192.0.0.10 172.17.69.2 SIP Status: 200 OK 17 172.17.69.2 192.100.100.2 SIP Status: 200 OK Transactions about an Invite method (7)

13 U n i t e d N e t w o r k i n g 13 hostname MAIN_SITE Ip host oneaccess-net.com dial-peer voice voip 0 sig-protocol sip voip-coder-profile 0 no shutdown exit voice-routing route 1 dial-peer pots-group 0 ua-sip sip-authentication isdn_call 300  Digest username and password for prefix 300 length 3 Authentication purpose at Register and prefix-type outgoing called last Invite Methods exit route 2 dial-peer pots-group 1 ua-sip Setting of route 2 doesn’t support prefix 0141877446 length 10 authentication request prefix-type outgoing called last exit route 3 dial-peer voip 0 prefix 301 length 3 prefix-type outgoing called last exit sip-gateway outbound-proxy 172.17.69.2 reg-dns-add oneaccess-net.com prox-dns-add oneaccess-net.com gw-interface fastethernet 0/0 intrusive device-host-name oneaccess-net.com uri-contact ip-address no shutdown exit Register and Invite methods including 40x challenge (1)

14 U n i t e d N e t w o r k i n g 14 hostname REMOTE_SITE Ip host oneaccess-net.com dial-peer voice voip 0 sig-protocol sip voip-coder-profile 0 no shutdown exit voice-routing route 1 dial-peer pots-group 0 ua-sip sip-authentication remote301 301  Digest username and password for prefix 301 length 3 Authentication purpose about Register prefix-type outgoing called last and Invite methods. exit route 2 dial-peer voip 0 prefix 300 length 3 prefix-type outgoing called last exit sip-gateway outbound-proxy 172.17.69.2 reg-dns-add oneaccess-net.com prox-dns-add oneaccess-net.com gw-interface fastethernet 0/0 intrusive device-host-name oneaccess-net.com uri-contact ip-address no shutdown exit Register and Invite methods including 40x challenge (2)

15 U n i t e d N e t w o r k i n g 15 1-Src Addr: 192.100.100.2 (192.100.100.2), Dst Addr: 172.17.69.2 (172.17.69.2) Request-Line: REGISTER sip:oneaccess-net.com:5060 SIP/2.0 Message Header Call-ID: 4 Contact: CSeq: 13 REGISTER Expires: 1800 From: ;tag=3E49 To: Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-70C8-D 2-Src Addr: 192.100.100.2 (192.100.100.2), Dst Addr: 172.17.69.2 (172.17.69.2) Request-Line: REGISTER sip:oneaccess-net.com:5060 SIP/2.0 Message Header Call-ID: 5 Contact: CSeq: 14 REGISTER Expires: 1800 From: ;tag=6E81 To: Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-3E5D-E Content-Length: 0 3-Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 100 Trying Message Header To: Call-ID: 4 CSeq: 13 REGISTER Register method including 401 challenge (3)

16 U n i t e d N e t w o r k i n g 16 4-Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 100 Trying Message Header To: Call-ID: 5 CSeq: 14 REGISTER 5-Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 401 Unauthorized Message Header To: ;tag=1136480194441-490786848 Call-ID: 4 CSeq: 13 REGISTER WWW-Authenticate: Digest realm="LLA009-FFG890J",nonce="4f9bcecd34f542674791d2e7fcc1dd5f70bf6265" 6-Src Addr: 192.100.100.2 (192.100.100.2), Dst Addr: 172.17.69.2 (172.17.69.2) Request-Line: REGISTER sip:oneaccess-net.com:5060 SIP/2.0 Message Header Authorization: Digest username="isdn_call",realm="LLA009-FFG890J",nonce="4f9bcecd34f542674791d2e7fcc1dd5f70bf6265", uri="oneaccess-net.com",response="df0963cf7aa95ad03719095738c65c56",nc=00000000 Call-ID: 4 CSeq: 15 REGISTER From: ;tag=4EC5 7-Src Addr: 192.100.100.2 (192.100.100.2), Dst Addr: 172.17.69.2 (172.17.69.2) Request-Line: REGISTER sip:oneaccess-net.com:5060 SIP/2.0 Message Header Authorization: Digest username="0141877446",realm="LLA009FFG890J",nonce="45a6856be7e33dcf40079dd59ba0fb7370bf6265", uri="oneaccess-net.com",response="db73863d0297b3e827cfdbfe9561eb2d",nc=00000000 Call-ID: 5 CSeq: 16 REGISTER From: ;tag=2EE5 Register method including 401 challenge (4)

17 U n i t e d N e t w o r k i n g 17 8-Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 200 OK Message Header To: ;tag=1136480195282-34834762 Call-ID: 4 CSeq: 15 REGISTER 9-Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 403 Forbidden Message Header To: ;tag=1136480195292-792478172 Call-ID: 5 CSeq: 16 REGISTER Register method including 401 challenge (5)

18 U n i t e d N e t w o r k i n g 18 1- Src Addr: 192.100.100.2 (192.100.100.2), Dst Addr: 172.17.69.2 (172.17.69.2) Request-Line: INVITE sip:301@oneaccess-net.com:5060;user=phone SIP/2.0 Message Header Call-ID: 10 Contact: CSeq: 47 INVITE From: ;tag=23E To: Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-67B-33 Message body Session Description Protocol Session Description Protocol Version (v): 0 Owner/Creator, Session Id (o): UserA 2890844526 2890844526 IN IP4 192.100.100.2 Session Name (s): Session SDP Connection Information (c): IN IP4 192.100.100.2 Time Description, active time (t): 0 0 Media Description, name and address (m): audio 16390 RTP/AVP 8 Media Attribute (a): rtpmap:8 PCMA/8000 2- Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 100 Trying Message Header Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-67B-33 From: ;tag=23E To: Call-ID: 10 CSeq: 47 INVITE Invite method including 407 challenge (6)

19 U n i t e d N e t w o r k i n g 19 3- Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 407 Proxy Authentication Required Message Header Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-67B-33 From: ;tag=23E To: ;tag=1136483382615-833403183 Call-ID: 10 CSeq: 47 INVITE Server: Brekeke OnDO SIP Server (1.2.4.3/144) Proxy-Authenticate: Digest realm="LLA009-FFG890J",nonce="2081e4ec87b4bfe157c3466950e08a4f70bf6265« 4- Src Addr: 192.100.100.2 (192.100.100.2), Dst Addr: 172.17.69.2 (172.17.69.2) Request-Line: ACK sip:301@oneaccess-net.com:5060;user=phone SIP/2.0 Message Header Call-ID: 10 CSeq: 47 ACK From: ;tag=23E To: ;tag=1136483382615-833403183 Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-67B-33 5- Src Addr: 192.100.100.2 (192.100.100.2), Dst Addr: 172.17.69.2 (172.17.69.2) Request-Line: INVITE sip:301@oneaccess-net.com:5060;user=phone SIP/2.0 Message Header Call-ID: 10 Contact: CSeq: 48 INVITE From: ;tag=23E Proxy-Authorization: Digest username="isdn_call2",realm="LLA009-FFG890J",nonce="2081e4ec87b4bfe157c3466950e08a4f70bf6265", uri="oneaccess-net.com",response="e6f6da842a1ab64e06dc1bd621fa5fb1",nc=00000000 To: Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-49F9-34 Content-Length: 150 Message body : Session Description Protocol Invite method including 407 challenge (8)

20 U n i t e d N e t w o r k i n g 20 6- Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 100 Trying Message Header Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-49F9-34 From: ;tag=23E To: Call-ID: 10 CSeq: 48 INVITE 7- Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.0.0.10 (192.0.0.10) Request-Line: INVITE sip:301@192.0.0.10:5060 SIP/2.0 Message Header Call-ID: 10 Contact: CSeq: 48 INVITE From: ;tag=23E Proxy-Authorization: Digest username="isdn_call2",realm="LLA009-FFG890J",nonce="2081e4ec87b4bfe157c3466950e08a4f70bf6265", uri="oneaccess-net.com",response="e6f6da842a1ab64e06dc1bd621fa5fb1",nc=00000000 To: Via: SIP/2.0/UDP 172.17.69.2:5060;branch=z9hG4bKd2ca899425124.1 Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-49F9-34 Record-Route: Content-Length: 150 Message body Session Description Protocol Session Description Protocol Version (v): 0 Owner/Creator, Session Id (o): UserA 2890844526 2890844526 IN IP4 192.100.100.2 Session Name (s): Session SDP Connection Information (c): IN IP4 192.100.100.2 Time Description, active time (t): 0 0 Media Description, name and address (m): audio 16390 RTP/AVP 8 Media Attribute (a): rtpmap:8 PCMA/8000 Invite method including 407 challenge (9)

21 U n i t e d N e t w o r k i n g 21 8- Src Addr: 192.0.0.10 (192.0.0.10), Dst Addr: 172.17.69.2 (172.17.69.2) Status-Line: SIP/2.0 100 trying Message Header Call-ID: 10 CSeq: 48 INVITE From: ;tag=23E Record-Route: To: Via: SIP/2.0/UDP 172.17.69.2:5060;received=172.17.69.2;branch=z9hG4bKd2ca899425124.1,SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-49F9-34 9- Src Addr: 192.0.0.10 (192.0.0.10), Dst Addr: 172.17.69.2 (172.17.69.2) Status-Line: SIP/2.0 183 Proceeding Message Header Call-ID: 10 CSeq: 48 INVITE From: ;tag=23E Record-Route: To: ;tag=1469 Via: SIP/2.0/UDP 172.17.69.2:5060;received=172.17.69.2;branch=z9hG4bKd2ca899425124.1,SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-49F9-34 10- Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 183 Proceeding Message Header Call-ID: 10 CSeq: 48 INVITE From: ;tag=23E Record-Route: To: ;tag=1469 Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-49F9-34 Invite method including 407 challenge (10)

22 U n i t e d N e t w o r k i n g 22 11- Src Addr: 192.0.0.10 (192.0.0.10), Dst Addr: 172.17.69.2 (172.17.69.2) Status-Line: SIP/2.0 180 Ringing Message Header Call-ID: 10 CSeq: 48 INVITE From: ;tag=23E Record-Route: To: ;tag=1469 Via: SIP/2.0/UDP172.17.69.2:5060;received=172.17.69.2;branch=z9hG4bKd2ca899425124.1,SIP/2.0/UDP; 192.100.100.2:5060;branch=z9hG4bK49F9 12- Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 180 Ringing Message Header Call-ID: 10 CSeq: 48 INVITE From: ;tag=23E Record-Route: To: ;tag=1469 Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-49F9-34 Invite method including 407 challenge (11)

23 U n i t e d N e t w o r k i n g 23 13- Src Addr: 192.0.0.10 (192.0.0.10), Dst Addr: 172.17.69.2 (172.17.69.2) Status-Line: SIP/2.0 200 OK Message Header Call-ID: 10 Contact: Content-Type: application/sdp CSeq: 48 INVITE From: ;tag=23E Record-Route: To: ;tag=1469 Via: SIP/2.0/UDP 172.17.69.2:5060;received=172.17.69.2;branch=z9hG4bKd2ca899425124.1,SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-49 Message body: Session Description Protocol Session Description Protocol Version (v): 0 Owner/Creator, Session Id (o): UserA 2890844526 2890844526 IN IP4 192.0.0.10 Session Name (s): Session SDP Connection Information (c): IN IP4 192.0.0.10 Time Description, active time (t): 0 0 Media Description, name and address (m): audio 16430 RTP/AVP 8 Media Attribute (a): rtpmap:8 PCMA/8000 14- Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 200 OK Message Header Call-ID: 10 Contact: CSeq: 48 INVITE From: ;tag=23E Record-Route: To: ;tag=1469 Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-49F9-34 Message body: Session Description Protocol Invite method including 401 challenge (12)

24 U n i t e d N e t w o r k i n g 24 15- Src Addr: 192.100.100.2 (192.100.100.2), Dst Addr: 172.17.69.2 (172.17.69.2) Request-Line: ACK sip:301@172.17.69.2:5060;user=phone SIP/2.0 Message Header Call-ID: 10 CSeq: 48 ACK From: ;tag=23E Route: To: ;tag=1469 Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-5B7E-35 16- Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.0.0.10 (192.0.0.10) Request-Line: ACK sip:301@192.0.0.10:5060 SIP/2.0 Message Header Call-ID: 10 CSeq: 48 ACK From: ;tag=23E To: ;tag=1469 Via: SIP/2.0/UDP 172.17.69.2:5060;branch=z9hG4bK6813179bf2588.1 Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-5B7E-35 Record-Route: 17- Src Addr: 192.100.100.2 (192.100.100.2), Dst Addr: 172.17.69.2 (172.17.69.2) Request-Line: BYE sip:301@172.17.69.2:5060;user=phone SIP/2.0 18- Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.0.0.10 (192.0.0.10) Request-Line: BYE sip:301@192.0.0.10:5060 SIP/2.0 19- Src Addr: 192.0.0.10 (192.0.0.10), Dst Addr: 172.17.69.2 (172.17.69.2) Status-Line: SIP/2.0 200 OK 20- Src Addr: 172.17.69.2 (172.17.69.2), Dst Addr: 192.100.100.2 (192.100.100.2) Status-Line: SIP/2.0 200 OK Invite method including 401 challenge (13)

25 U n i t e d N e t w o r k i n g 25 192.100.100.0/24.2 MAIN_SITE REMOTE_SITE.69.2 Proxy/registrar server @oneaccess-net.com 192.0.0.0/24 IP network.100.10.100 PABX BRI 5/0 #300 #301.69.1 172.17.68.0/22 BRI 5/1 #0141877446 REFER SIP service transaction (1).25 Sip phone # 103

26 U n i t e d N e t w o r k i n g 26 hostname MAIN_SITE Ip host oneaccess-net.com dial-peer voice voip 0 sig-protocol sip voip-coder-profile 0 no shutdown exit voice-routing route 1 dial-peer pots-group 0 ua-sip sip-authentication isdn_call1 300 prefix 300 length 3 prefix-type outgoing called last exit route 2 dial-peer pots-group 1 ua-sip sip-authentication isdn_call2 O141877446 prefix 0141877446 length 10 prefix-type outgoing called last exit route 3 dial-peer voip 0 prefix. Timer -> this allows to route any other outgoing call to VoIP prefix-type outgoing called last exit sip-gateway reg-dns-add oneaccess-net.com prox-dns-add oneaccess-net.com gw-interface fastethernet 0/0 intrusive bye-on-refer -> To support Refer SIP service no shutdown exit REFER SIP service transaction (2)

27 U n i t e d N e t w o r k i n g 27 Phone # 301 calls Sip phone # 103 (who offhook). Then, SIP phone decides to transfert (without consultation) the call to phone # 301 located at Remote_site No. Source Destination Info 1 192.100.100.2 oneaccess-net.com Request: INVITE sip:103@oneaccess-net.com:5060;user=phone, with sdp 2 oneaccess-net.com 192.100.100.2 Status: 100 Trying 4 192.100.100.25 oneaccess-net.com Status: 100 Trying 5 192.100.100.25 oneaccess-net.com Status: 180 Ringing 6 oneaccess-net.com 192.100.100.2 Status: 180 Ringing 7 192.100.100.25 oneaccess-net.com Status: 200 OK, with session description 8 oneaccess-net.com 192.100.100.2 Status: 200 OK, with session description 9 192.100.100.2 oneaccess-net.com Request: ACK sip:103@172.17.69.2:5060;user=phone 10 oneaccess-net.com 192.100.100.25 Request: ACK sip:103@192.100.100.25 11 192.100.100.25 oneaccess-net.com Request: REFER sip:103@192.100.100.2:5060;user=phone 12 oneaccess-net.com 192.100.100.2 Request: REFER sip:103@192.100.100.2:5060 13 192.100.100.2 oneaccess-net.com Status: 202 ACCEPTED 14 oneaccess-net.com 192.100.100.25 Status: 202 ACCEPTED 15 192.100.100.2 oneaccess-net.com Request: NOTIFY sip:103@172.17.69.2:5060;user=phone 16 oneaccess-net.com 192.100.100.25 Request: NOTIFY sip:103@192.100.100.25, with Sipfrag(v=0...) 17 192.100.100.25 oneaccess-net.com Status: 200 OK 18 oneaccess-net.com 192.100.100.2 Status: 200 OK 19 192.100.100.2 oneaccess-net.com Request: BYE sip:103@172.17.69.2:5060;user=phone TO CLOSE THE FIRST CALL 20 oneaccess-net.com 192.100.100.25 Request: BYE sip:103@192.100.100.25 21 192.100.100.25 oneaccess-net.com Status: 200 OK 22 oneaccess-net.com 192.100.100.2 Status: 200 OK 23 192.100.100.2 oneaccess-net.com Request: INVITE sip:301@172.17.69.2;user=phone, with sdp 24 oneaccess-net.com 192.100.100.2 Status: 100 Trying 25 oneaccess-net.com 192.0.0.10 Request: INVITE sip:301@192.0.0.10:5060, with sdp 26 192.0.0.10 oneaccess-net.com Status: 100 trying 27 192.0.0.10 oneaccess-net.com Status: 183 Proceeding 28 oneaccess-net.com 192.100.100.2 Status: 183 Proceeding 29 192.0.0.10 oneaccess-net.com Status: 180 Ringing 30 oneaccess-net.com 192.100.100.2 Status: 180 Ringing 31 192.0.0.10 oneaccess-net.com Status: 200 OK, with session description 32 oneaccess-net.com 192.100.100.2 Status: 200 OK, with session description 33 192.100.100.2 oneaccess-net.com Request: ACK sip:301@172.17.69.2:5060;user=phone 34 oneaccess-net.com 192.0.0.10 Request: ACK sip:301@192.0.0.10:5060 REFER SIP service transaction (3) Unattended Transfert global call flow

28 U n i t e d N e t w o r k i n g 28 The next Messages are proxied by SIP proxy server (oneaccess-net.com, IP address 172.17.69.2). 1- Message from 192.100.100.25 (SIP phone) to indicate a call transfert from 103 to 301(Unattended Transfert to phone 301). REFER sip:103@192.100.100.2:5060 SIP/2.0 Via: SIP/2.0/UDP 172.17.69.2:5060;branch=z9hG4bKd9e6cb01abe12.3 Via: SIP/2.0/UDP 192.100.100.25;branch=z9hG4bKb15a9e22d64b4bc2 From: ;tag=8059007111a3cdbb To: ;tag=3D0 Contact: Supported: replaces Refer-To: -> Form of Refer-To is like Contact header field Referred-By: -> Form of Referred-By is like Contact Call-ID: 12 header field CSeq: 41316 REFER User-Agent: Grandstream BT100 1.0.6.7 Max-Forwards: 69 Allow: INVITE,AC K,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE Record-Route: Content-Length: 0 REFER SIP service transaction (4) Unattended Transfert, Refer/Notify method

29 U n i t e d N e t w o r k i n g 29 2- Message from 192.100.100.2 to acknowledge REFER request SIP/2.0 202 ACCEPTED Call-ID: 12 CSeq: 41316 REFER From: ;tag=8059007111a3cdbb Record-Route: To: ;tag=3D0 Via: SIP/2.0/UDP 172.17.69.2:5060;received=172.17.69.2;branch=z9hG4bKd9e6cb01abe12.3,SIP/2.0/UDP 192.100.100.25;branch=z9hG4bKb15a9e22d64b4bc2 Content-Length: 0 3- Message from 192.100.100.2 to inform « REFER » the sender of the status of the reference (To, From, Call-ID) NOTIFY sip:103@172.17.69.2 :5060;user=phone SIP/2.0 Call-ID: 12 Contact: Content-Type: message/sipfrag -> this header field is mandatory (like that) CSeq: 45 NOTIFY Event: refer -> Refer event package must be subscribed. From: ;tag=3D0 Route: Subscription-State: terminated;reason=noresource -> This is the final Notify to the To: ;tag=8059007111a3cdbb REFER Request Via: SIP/2.0/UDP 192.100.100.2:5060;branch=z9hG4bK-7922 Content-Length: 150 SDP REFER SIP service transaction (5) Unattended Transfert, Refer/Notify method

30 U n i t e d N e t w o r k i n g 30 192.100.100.0/24.2 MAIN_SITE REMOTE_SITE.69.2 Proxy/registrar server @oneaccess-net.com 192.0.0.0/24 IP network.100.10.100 PABX BRI 5/0 #300 #301.69.1 172.17.68.0/22 BRI 5/1 #0141877446 Voice-routing: Backup scenarios (1) ISDN Network BRI 5/2 2 3 1

31 U n i t e d N e t w o r k i n g 31  Based on the voice-routing configuration, this is possible to re route any outgoing SIP call to an alternate ISDN interface (ISDN call, not SIP)  This may be applied to backup the « uplink » which may be a fast Ethernet, ATM, E1 interface.(1)  This may be applied to backup any failure in the IP network, ATM pvc failure, routing…(2)  This may be applied to « backup » SIP server failure (3) Voice-routing: Backup scenarios (2)

32 U n i t e d N e t w o r k i n g 32 Voice-routing: Backup scenarios (3) CONFIGURATION : voice-routing route 1 dial-peer voip 2 prefix 014187300x length 10 prefix-type outgoing called backup  if the primary route is not reachable exit Backup allows to jump to next entry route 2 matching dialled prefix dial-peer pots-group 0 prefix 0141873000 length 10 prefix-type outgoing called last exit. route 4 dial-peer pots-group 2 prefix 0141873002 length 10 prefix-type outgoing called last exit

33 U n i t e d N e t w o r k i n g 33 Voice-routing: Backup scenarios (4) -Info vox voip controlplan 3 Incoming call on local port: 5/1, calling: 1001191101, called: 0141873002, call-id: 2. -Error vox voip controlplan 1 Incoming call failure on local port: 5/1, cause: (38)[Network out of order], call-id: 2. -Info vox voip controlplan 3 Backup Process Dialing port: 5/1, number: 0141873002, call-id: 2 -Info vox voip controlplan 3 Outgoing call on local port: 5/2, calling: 1001191101, called: 0141873002, call-id: 2. -Info vox voip controlplan 3 Alert received, call-id: 2.

34 U n i t e d N e t w o r k i n g 34 Sip-Gateway statistics : Gateway state up Registration state registered Registrar server 192.168.1.100:5060 Bandwidth used/unused 0 / 3072000 bps Max Bandwidth exceeded 0 Registration errors 0 Registered endpoints 2 Current call 0 Authentication Rejects 0 Sip-Gateway statistics : Gateway state up Registration state registered Registrar server 192.168.1.100:5060 Bandwidth used/unused 0 / 3072000 bps Max Bandwidth exceeded 0 Registration errors 0 Registered endpoints 2 Current call 0 Authentication Rejects 0 SIP Gateway Statistics CLI# show voice sip-gateway SIP Statistics

35 U n i t e d N e t w o r k i n g 35 phone 1 : State : registered Number : 2408882000 SIP-id : Registration timeout : 105s/120s phone 2 : State : registered Number : 2408882001 SIP-id : Registration timeout : 18s/120s phone 1 : State : registered Number : 2408882000 SIP-id : Registration timeout : 105s/120s phone 2 : State : registered Number : 2408882001 SIP-id : Registration timeout : 18s/120s SIP Gateway Statistics CLI# show voice sip-gateway endpoints SIP Statistics

36 U n i t e d N e t w o r k i n g 36 Events CLI# event filter add vox voip all show 00:04:08.080 Info vox voip controlplan 3 FXS port 5/4 event: off-hook, pots: 2. 00:04:12.580 Info vox voip controlplan 3 FXS port 5/4 event: on-hook, pots: 2. SIP Statistics

37 U n i t e d N e t w o r k i n g 37 Debug CLI#debug sip [registrar | signalling | all] - default: all level [1..3] - default: 1 CLI#debug sip registrar level 3 07:07:21.783 UAC [192.168.1.1:5060] -> UAS [192.168.1.100:5060] REGISTER call-id:7057052324088820002C605143@oa-one100 (UDP) REGISTER sip:192.168.1.100:5060;user=ip SIP/2.0 Call-ID: 7057052324088820002C605143@oa-one100 Contact: CSeq: 124 REGISTER Expires: 1800 From: ;tag=401A Max-Forwards: 70 Privacy: none Supported: path To: Via: SIP/2.0/UDP 192.168.1.1:5060;branch=z9hG4bK-2D40-70 Content-Length: 0 CLI#debug sip registrar (about direction, method & call-id) CLI#debug sip sig l 2 (about direction, method, call-id & sdp) CLI#debug sip signalling level 3 (all details) SIP Statistics

38 www.oneaccess-net.com contact@oneaccess-net.com Copyright © OneAccess Networks – All rights reserved United Networking 2 June, 2015 Thank You for your attention !


Download ppt "Copyright © OneAccess Networks – All rights reserved United Networking 2 June, 2015 4.16 VoIP SIP Configuration."

Similar presentations


Ads by Google