SIP Fundamentals

SIP REGISTER

REGISTER is the SIP method by which a user agent or PBX tells a SIP registrar 'I am at this IP address right now — route traffic for sip:user@domain to me.' It is the standard authentication + presence handshake.

Flow

  1. Endpoint sends REGISTER with Contact: <sip:[email protected]> and Expires: 3600.
  2. Registrar replies 401 Unauthorized with a digest challenge.
  3. Endpoint re-sends REGISTER with Authorization header containing the digest response.
  4. Registrar replies 200 OK; the binding is now active.
  5. Endpoint refreshes before expiry (typically every 60-300 seconds).

Sample exchange

REGISTER sip:sip.didhub.io SIP/2.0
From: <sip:[email protected]>;tag=ab
To:   <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Expires: 300
CSeq: 1 REGISTER

--> 401 Unauthorized + WWW-Authenticate

REGISTER sip:sip.didhub.io SIP/2.0
Authorization: Digest username="trunk_x", realm="sip.didhub.io",
  nonce="abc...", uri="sip:sip.didhub.io", response="def..."

--> 200 OK + Contact + Expires

Registration vs IP-ACL

Many carriers (DIDHub included) support both:

Related terms

Ready to get a number?

Pick a DID in 130+ countries from $1.99/month. Activates instantly on most numbers.