Outgoing SIP INVITE with CANCELation
Assumptions
- SIP Port: 5062 (SPA SIP Port)
- SIP Proxy Server: sip.voip-info.org
- SPA IP address: 192.168.0.2
- User ID: spa1
- Display Name: Good Body
Message Flow Explanation
- SPA attempting to make a call to the phone number 1-800-555-1212 using an Outbound SIP Proxy Server
- SIP Proxy server informing the SPA that it needs to authenticate
- SPA acknowledging the response from the SIP Proxy
- SPA trying to make the call to 1-800-555-1212 using the Outbound SIP Proxy but this time providing authentication information
- SIP Proxy informing the SPA that it is trying to handle the call
- SIP Proxy informing the SPA that the 1-800-555-1212 number is ringing
- SPA cancelling the call before the other end picks up the line
Syslog Entries
Aug 20 16:40:00 192.168.0.2 INVITE sip:[email protected] SIP/2.0^M Via: SIP/2.0/UDP 192.168.0.2:5062;branch=z9hG4bK-96000994;rport^M From: Good Body <sip:[email protected]>;tag=6240770a208ec24o0^M To: <sip:[email protected]>^M Call-ID: [email protected]^M CSeq: 101 INVITE^M Max-Forwards: 70^M Contact: Good Body <sip:[email protected]:5062>^M Expires: 240^M User-Agent: Sipura/SPA3000-2.0.13(GWg)^M Content-Length: 432^M Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER^M Supported: x-sipura^M Content-Type: application/sdp^M ^M v=0^M o=- 57529639 57529639 IN IP4 192.168.0.2^M s=-^M c=IN IP4 192.168.0.2^M t=0 0^M m=audio 16388 RTP/AVP 2 0 4 8 18 96 97 98 100 101^M a=rtpmap:2 G726-32/8000^M a=rtpmap:0 PCMU/8000^M a=rtpmap:4 G723/8000^M a=rtpmap:8 PCMA/8000^M a=rtpmap:18 G729a/8000^M a=rtpmap:96 G726-40/8000^M a=rtpmap:97 G726-24/8000^M a=rtpmap:98 G726-16/8000^M a=rtpmap:100 NSE/8000^M a=rtpmap:101 telephone-event/8000^M a=fmtp:101 0-15^M a=ptime:30^M a=sendrecv^M
Aug 20 16:40:00 192.168.0.2 SIP/2.0 407 Proxy Authentication Required^M Via: SIP/2.0/UDP 192.168.0.2:5062;branch=z9hG4bK-96000994^M From: Good Body <sip:[email protected]>;tag=6240770a208ec24o0^M To: <sip:[email protected]>;tag=as3bb40ede^M Call-ID: [email protected]^M CSeq: 101 INVITE^M User-Agent: Asterisk PBX^M Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER^MContact: <sip:[email protected]>^M Proxy-Authenticate: Digest realm=”asterisk”, nonce=”2165bad6″^M Content-Length: 0^M ^M
Aug 20 16:40:00 192.168.0.2 ACK sip:[email protected] SIP/2.0^M Via: SIP/2.0/UDP 192.168.0.2:5062;branch=z9hG4bK-96000994;rport^M From: Good Body <sip:[email protected]>;tag=6240770a208ec24o0^M To: <sip:[email protected]>;tag=as3bb40ede^M Call-ID: [email protected]^M CSeq: 101 ACK^MMax-Forwards: 70^M Contact: Good Body <sip:[email protected]:5062>^M User-Agent: Sipura/SPA3000-2.0.13(GWg)^M Content-Length: 0^M ^M
Aug 20 16:40:00 192.168.0.2 INVITE sip:[email protected] SIP/2.0^M Via: SIP/2.0/UDP 192.168.0.2:5062;branch=z9hG4bK-fd30f6d4;rport^M From: Good Body <sip:[email protected]>;tag=6240770a208ec24o0^M To: <sip:[email protected]>^M Call-ID: [email protected]^M CSeq: 102 INVITE^M Max-Forwards: 70^M Proxy-Authorization: Digest username=”spa1″,realm=”asterisk”,nonce=”2165bad6″,uri=”sip:[email protected]”,algorithm=MD5,response=”58216bf1423c4d1d124c0151dee08279″^M Contact: Good Body <sip:[email protected]:5062>^M Expires: 240^M User-Agent: Sipura/SPA3000-2.0.13(GWg)^M Content-Length: 432^M Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER^M Supported: x-sipura^M Content-Type: application/sdp^M ^M v=0^M o=- 57529639 57529639 IN IP4 192.168.0.2^M s=-^M c=IN IP4 192.168.0.2^M t=0 0^M m=audio 16388 RTP/AVP 2 0 4 8 18 96 97 98 100 101^M a=rtpmap:2 G726-32/8000^M a=rtpmap:0 PCMU/8000^M a=rtpmap:4 G723/8000^M a=rtpmap:8 PCMA/8000^M a=rtpmap:18 G729a/8000^M a=rtpmap:96 G726-40/8000^M
Aug 20 16:40:00 192.168.0.2 SIP/2.0 100 Trying^M Via: SIP/2.0/UDP 192.168.0.2:5062;branch=z9hG4bK-fd30f6d4^M From: Good Body <sip:[email protected]>;tag=6240770a208ec24o0^M To: <sip:[email protected]>;tag=as528e3bd1^M Call-ID: [email protected]^M CSeq: 102 INVITE^M User-Agent: Asterisk PBX^M Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER^M Contact: <sip:[email protected]>^M Content-Length: 0^M ^M
Aug 20 16:40:00 192.168.0.2 SIP/2.0 180 Ringing^M Via: SIP/2.0/UDP 192.168.0.2:5062;branch=z9hG4bK-fd30f6d4^M From: Good Body <sip:[email protected]>;tag=6240770a208ec24o0^M To: <sip:[email protected]>;tag=as528e3bd1^M Call-ID: [email protected]^M CSeq: 102 INVITE^M User-Agent: Asterisk PBX^M Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER^M Contact: <sip:[email protected]>^M Content-Length: 0^M ^M
Aug 20 16:40:16 192.168.0.2 CANCEL sip:[email protected] SIP/2.0^M Via: SIP/2.0/UDP 192.168.0.2:5062;branch=z9hG4bK-fd30f6d4;rport^M From: Good Body <sip:[email protected]>;tag=6240770a208ec24o0^M To: <sip:[email protected]>^M Call-ID: [email protected]^M CSeq: 102 CANCEL^M Max-Forwards: 70^M Proxy-Authorization: Digest username=”spa1″,realm=”asterisk”,nonce=”2165bad6″,uri=”sip:[email protected]”,algorithm=MD5,response=”d86de440482773fe914c793a17854ae6″^M User-Agent: Sipura/SPA3000-2.0.13(GWg)^M Content-Length: 0^M ^M
Sipura Syslogging Interpretation | Sipura Syslogging | Sipura