////////////////////////////////////////////////////////////////////////////////
// Server: registrar and call server that challenges the REGISTER and the INVITE
//
// Counterpart of Reg_auth_call_client and Reg_auth_call_advanced_client.
// The credentials in the second REGISTER / INVITE are not verified.
//
// Messages with ;retrans are sent again over UDP until they are answered, and a copy
// of one that comes again is answered as before (RFC 3261; -t1, -t2).
//
// SIP Messages
//  <--- REGISTER ;retrans
//  ---> 407 ;retrans
//  <--- REGISTER
//  ---> 200 ;retrans
//  <--- INVITE
//  ---> 407
//  <--- ACK
//  <--- INVITE
//  ---> 100 Trying
//  ---> 180 Ringing
//  ---> 200 OK (SDP)
//  <--- ACK
//  ---- play test.pcap
//  <--- BYE
//  ---> 200 OK
////////////////////////////////////////////////////////////////////////////////

<----------;retrans
REGISTER

---------->
SIP/2.0 401 Unauthorized
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
WWW-Authenticate: Digest realm="[local_ip]:[local_port]", domain="sip:[local_ip]", nonce="b57aa7088ae5cac88d298d66f2c809cd", opaque="185a87188c63a2c7f69105023454e0b2", algorithm=MD5
User-Agent: SIPInspector_v_[ver]
Content-Length: 0


<----------;retrans
REGISTER

---------->
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
[last_Contact:];expires=3600
Expires: 3600
User-Agent: SIPInspector_v_[ver]
Content-Length: 0


<----------;retrans
INVITE

---------->;retrans
SIP/2.0 407 Proxy Authentication Required
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Proxy-Authenticate: Digest realm="[local_ip]:[local_port]", domain="sip:[local_ip]", nonce="b57aa7088ae5cac88d298d66f2c809cd", opaque="185a87188c63a2c7f69105023454e0b2", algorithm=MD5
User-Agent: SIPInspector_v_[ver]
Content-Length: 0


<----------
ACK

<----------;retrans
INVITE

---------->
SIP/2.0 100 Trying
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
User-Agent: SIPInspector_v_[ver]
Content-Length: 0


---------->
SIP/2.0 180 Ringing
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
User-Agent: SIPInspector_v_[ver]
Content-Length: 0


---------->;retrans
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:];tag=[call_number]
[last_Call-ID:]
[last_CSeq:]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
User-Agent: SIPInspector_v_[ver]
Content-Type: application/sdp
Content-Length: [len]

v=0
o=111 843670094 843670094 IN [IP_ver] [local_ip_sdp]
s=-
c=IN [IP_ver] [local_ip_sdp]
t=0 0
a=sendrecv
m=audio [media_port] RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

<----------
ACK

----------
cmd_PlayPcap=./pcap/test.pcap

<----------;retrans
BYE

---------->
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
User-Agent: SIPInspector_v_[ver]
Content-Length: 0

