Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SIP (sip)

Reached from

Lower layerSelectorValue
tcpdst_port / src_port5060 (0x13c4)
udpdst_port / src_port5060 (0x13c4)

Fields

FieldTypeDefaultAutoDescription
start_linebytes — up to the terminator 0d 0a (appended when building)"OPTIONS sip:bob@example.com SIP/2.0"Start line: a request line (method, Request-URI, SIP/2.0) or a status line (SIP/2.0, code, reason). The CRLF is added automatically.
headerslist<bytes> — up to the terminator 0d 0a (appended when building)9 itemsHeader lines (Name: value), one per element; the CRLFs and the empty line after them are added automatically. Content-Length is Manual.
bodybytes — rest of the PDU""Message body (an SDP offer / answer, …).

Sample templates

  • sip-invite — templates/protocols/voip/sip-invite.wpg.yaml
  • sip-register — templates/protocols/voip/sip-register.wpg.yaml