////////////////////////////////////////////////////////////////////////////////
// Client: registers many users, one per row of a values file
//
// No counterpart in this directory. Run it with a values file that has one line
// per user: [field0] is the user name, [field1] and [field2] the user name and
// password used for authentication. The tag in From is the call number, so
// every registration is its own transaction. Example values file:
// values/Reg_series_values.txt.
//
// 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
//  <--- 100 Trying (optional)
//  <--- 407 Proxy Authorization (optional)
//  ---> REGISTER ;retrans (with Proxy-Authorization)
//  <--- 200
////////////////////////////////////////////////////////////////////////////////

---------->;retrans
REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[field0]@[remote_ip]:[remote_port]>;tag=[call_number]
To: <sip:[field0]@[remote_ip]:[remote_port]>
Call-ID: [call_number].[run_tag]@[local_ip]
CSeq: [cseq] REGISTER
Max-Forwards: 70
Expires: 3600
Contact: <sip:[field0]@[local_ip]:[local_port];transport=[transport]>
User-Agent: SIPInspector_v_[ver]
Content-Length: 0


<----------*
100 Trying

<----------*
407 Proxy Authorization Required

---------->*;retrans
REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
From: <sip:[field0]@[remote_ip]:[remote_port]>;tag=[call_number]
To: <sip:[field0]@[remote_ip]:[remote_port]>
Call-ID: [call_number].[run_tag]@[local_ip]
CSeq: [cseq+1] REGISTER
Max-Forwards: 70
Expires: 3600
Contact: <sip:[field0]@[local_ip]:[local_port];transport=[transport]>
User-Agent: SIPInspector_v_[ver]
Proxy-Authorization: [authentication username=[field1]; password=[field2];]
Content-Length: 0


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