Package twisted :: Package protocols :: Module sip
[show private | hide private]
[frames | no frames]

Module twisted.protocols.sip

Session Initialization Protocol.
Classes
BaseSIP Base class for SIP clients and servers.
Message A SIP message.
MessagesParser A SIP messages parser.
Request  
Response  
URL A SIP URL.
Via A SIP Via header.

Function Summary
  parseAddress(address, clean)
Return (name, uri, params) for From/To/Contact header.
  parseURL(url)
Return string into URL object.
  parseViaHeader(value)
Parse a Via header, returning Via class instance.

Variable Summary
dict longHeaders
dict shortHeaders
dict statusCodes

Function Details

parseAddress(address, clean=0)

Return (name, uri, params) for From/To/Contact header.
Parameters:
clean - remove unnecessary info, usually for From and To headers.

parseURL(url)

Return string into URL object.

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

parseViaHeader(value)

Parse a Via header, returning Via class instance.

Variable Details

longHeaders

Type:
dict
Value:
{'c': 'content-type',
 'e': 'content-encoding',
 'f': 'from',
 'i': 'call-id',
 'l': 'content-length',
 'm': 'contact',
 's': 'subject',
 't': 'to',
...                                                                    

shortHeaders

Type:
dict
Value:
{'call-id': 'i',
 'contact': 'm',
 'content-encoding': 'e',
 'content-length': 'l',
 'content-type': 'c',
 'from': 'f',
 'subject': 's',
 'to': 't',
...                                                                    

statusCodes

Type:
dict
Value:
{100: 'Trying',
 180: 'Ringing',
 181: 'Call Is Being Forwarded',
 182: 'Queued',
 200: 'OK',
 300: 'Multiple Choices',
 301: 'Moved Permanently',
 404: 'Not Found',
...                                                                    

Generated by Epydoc 1.1 on Fri Jun 27 03:45:54 2003 http://epydoc.sf.net