module documentation
(source)

Session Initialization Protocol.

Documented in RFC 2543. [Superseded by 3261]

Variable PORT Undocumented
Variable shortHeaders Undocumented
Variable longHeaders Undocumented
Variable statusCodes Undocumented
Variable specialCases Undocumented
Function dashCapitalize Capitalize a string, making sure to treat '-' as a word separator
Function unq Undocumented
Class Via A Via is a SIP Via header, representing a segment of the path taken by the request.
Function parseViaHeader Parse a Via header.
Class URL A SIP URL.
Function parseURL Return string into URL object.
Function cleanRequestURL Clean a URL from a Request line.
Function parseAddress Return (name, uri, params) for From/To/Contact header.
Class SIPError Undocumented
Class RegistrationError Registration was not possible.
Class Message A SIP message.
Class Request A Request for a URI
Class Response A Response to a URI Request
Class MessagesParser A SIP messages parser.
Class Base Base class for SIP clients and servers.
Interface IContact A user of a registrar or proxy
Class Registration Undocumented
Interface IRegistry Allows registration of logical->physical URL mapping.
Interface ILocator Allow looking up physical address for logical URL.
Class Proxy SIP proxy.
Interface IAuthorizer No interface docstring; 2/2 methods documented
Class RegisterProxy A proxy that allows registration for a specific domain.
Class InMemoryRegistry A simplistic registry for a specific domain.
Variable _absent Undocumented
PORT = (source)

Undocumented

(type: int)
shortHeaders = (source)

Undocumented

(type: dict[str, str])
longHeaders = (source)

Undocumented

(type: dict)
statusCodes = (source)

Undocumented

(type: dict[int, str])
specialCases = (source)

Undocumented

(type: dict[str, str])
def dashCapitalize(s): (source)

Capitalize a string, making sure to treat '-' as a word separator

def unq(s): (source)

Undocumented

_absent = (source)

Undocumented

def parseViaHeader(value): (source)

Parse a Via header.

ReturnsThe parsed version of this header. (type: Via)
def parseURL(url, host=None, port=None): (source)

Return string into URL object.

URIs are of form 'sip:user@example.com'.

def cleanRequestURL(url): (source)

Clean a URL from a Request line.

def parseAddress(address, host=None, port=None, clean=0): (source)

Return (name, uri, params) for From/To/Contact header.

ParametersaddressUndocumented
hostUndocumented
portUndocumented
cleanremove unnecessary info, usually for From and To headers.
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.