Skip to main content

Module address

Module address 

Source
Expand description

Address headers: From, To, Contact, Route, Record-Route, Refer-To.

All share one grammar (RFC 3261 §20.10, §20.20, §20.39):

( name-addr / addr-spec ) *( SEMI generic-param )
name-addr = [ display-name ] LAQUOT addr-spec RAQUOT

The trap is the bare addr-spec form: without angle brackets, a semicolon starts a header parameter, not a URI parameter, so sip:a@b;tag=1 is one URI and one header parameter — while <sip:a@b;tag=1> is one URI with a URI parameter and no header parameters. The two mean entirely different things and differ by two characters.

Structs§

Address
A display name with a URI and header parameters.
Contact
The Contact header (RFC 3261 §20.10).
From
The From header (RFC 3261 §20.20).
Path
The Path header (RFC 3327 §4).
RecordRoute
The Record-Route header (RFC 3261 §20.30).
Route
The Route header (RFC 3261 §20.34).
ServiceRoute
The Service-Route header (RFC 3608 §5).
To
The To header (RFC 3261 §20.39).

Enums§

ContactValue
A Contact value, which may be the wildcard *.