SIP提供了一种使用简短格式( compact form)的表示头域名称。这种机制在使用UDP传输方式而消息体积超过MTU时是非常有用的。
常用头域对应的简短格式:
示例:
Call-ID: f81d4fae-7dec-11d0-a765-00a0c91e6bf6@biloxi.com
i:f81d4fae-7dec-11d0-a765-00a0c91e6bf6@192.0.2.4
Call-ID: i
Contact: m
Content-Length:l
Content-Type: c
From: f
Supported: k
To: t
Via: v
Content-Encoding: e
报文实例:
INVITE sip:1012@192.168.0.24:5060 SIP/2.0
v:SIP/2.0/UDP 192.168.0.201;rport;branch=z9hG4bKcNjNtegBr376S
Max-Forwards:68
f:"1006"<sip:1006@192.168.0.201>;tag=gQmt4jQFQtmXD //对应From
t:<sip:1012@192.168.0.24:5060>
i:69fcd3e0-2140-123b-9b9f-000c29e7aea9
CSeq:49244020 INVITE
m:<sip:mod_sofia@192.168.0.201:5060>
User-Agent:FreeSWITCH-mod_sofia/1.10.7-dev+git~20210720T181005Z~4c04914003~64bit
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REGISTER,REFER,NOTIFY,PUBLISH,SUBSCRIBE
k:timer,path,replaces
u:talk,hold,conference,presence,as-feature-event,dialog,line-seize,call-info,sla,include-session-description,presence.winfo,message-summary,refer
c:application/sdp
Content-Disposition:session
l:428
X-FS-Support:update_display,send_info
Remote-Party-ID:"1006"<sip:1006@192.168.0.201>;party=calling;screen=yes;privacy=off