Part of twisted.protocols.sip View Source View In Hierarchy
A Via
is a SIP
Via header, representing a segment of the path taken by the request.
Instance Variables | transport | Network protocol used for this leg. (Probably either "TCP" or
"UDP".)
(type: str
) |
branch | Unique identifier for this request.
(type: str
) | |
host | Hostname or IP for this leg.
(type: str
) | |
port | Port used for this leg. @type port int , or None.
| |
rportRequested | Whether to request RFC 3581 client processing or not.
(type: bool
) | |
rportValue | Servers wishing to honor requests for RFC 3581 processing should set
this parameter to the source port the request was received from.
(type: int , or None.
) | |
ttl | Time-to-live for requests on multicast paths.
(type: int , or None.
) | |
maddr | The destination multicast address, if any.
(type: str , or None.
) | |
hidden | Obsolete in SIP 2.0.
(type: bool
) | |
otherParams | Any other parameters in the header.
(type: dict
) |
Method | __init__ | Set parameters of this Via header. All arguments correspond to attributes of the same name. |
Method | toString | Serialize this header for use in a request or response. |
Method | _getrport | Returns the rport value expected by the old SIP code. |
Method | _setrport | Base._fixupNAT
sets rport directly, so this method sets
rportValue based on that.
|
Set parameters of this Via header. All arguments correspond to attributes of the same name.
To maintain compatibility with old SIP code, the 'rport' argument is
used to determine the values of rportRequested
and
rportValue
. If None, rportRequested
is set to
True. (The deprecated method for doing this is to pass True.) If an
integer, rportValue
is set to the given value.
otherParams
dict.
Base._fixupNAT
sets rport
directly, so this method sets
rportValue
based on that.
Parameters | newRPort | The new rport value.
(type: int
) |