////////////////////////////////////////////////////////////////////////////////
// Client: subscribes to dialog events (BLF)
//
// Counterpart of SUBSCRIBE_dialog_server.
//
// It subscribes (Event: dialog, Accept: application/dialog-info+xml) and then
// answers the four NOTIFY messages the server sends.
//
// 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
//  ---> SUBSCRIBE ;retrans
//  <--- 200
//  <--- NOTIFY ;retrans  (x4)
//  ---> 200     (x4)
////////////////////////////////////////////////////////////////////////////////

---------->;retrans
SUBSCRIBE sip:[toUsername]@[remote_ip]:[remote_port];transport=[transport] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[fromUsername]@[local_ip]:[local_port]>;tag=24417923471779367133
To: <sip:[toUsername]@[remote_ip]:[remote_port]>
Call-ID: [call_number].[run_tag]@[local_ip]
CSeq: [cseq+1] SUBSCRIBE
Max-Forwards: 70
Supported: timer
Expires: 3600
Event: dialog
Supported: replaces
Accept: application/dialog-info+xml
Contact: <sip:[fromUsername]@[local_ip]:[local_port];transport=[transport]>
User-Agent: SIPInspector_v_[ver]
Content-Length: 0


<----------
200 OK

<----------;retrans
NOTIFY

---------->
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
Supported: replaces
User-Agent: SIPInspector_v_[ver]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Content-Length: 0

<----------;retrans
NOTIFY

---------->
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
Supported: replaces
User-Agent: SIPInspector_v_[ver]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Content-Length: 0

<----------;retrans
NOTIFY

---------->
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
Supported: replaces
User-Agent: SIPInspector_v_[ver]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Content-Length: 0

<----------;retrans
NOTIFY

---------->
SIP/2.0 200 OK
[last_Via:]
[last_From:]
[last_To:]
[last_Call-ID:]
[last_CSeq:]
Supported: replaces
User-Agent: SIPInspector_v_[ver]
Contact: <sip:[local_ip]:[local_port];transport=[transport]>
Content-Length: 0
