Chapter 22 VoIP Solutions: SIP : FortiGate VoIP solutions: SIP : Deep SIP message inspection : Configuring deep SIP message inspection
  
Configuring deep SIP message inspection
You configure deep SIP message inspection in a VoIP profile. All deep SIP message inspection options are available only from the CLI.
Enter the following command to configure deep SIP message inspection to discard messages with malformed Request-lines (the first line in a SIP request message):
config voip profile
edit VoIP_Pro_Name
config sip
set malformed-request-line respond
end
end
 
You cannot configure message inspection for the Status-line, which is the first line in a SIP response message.
Table 107 lists the SIP header lines that the SIP ALG can inspect and the CLI command for configuring the action for each line type. The table also lists the RFC that the header line is defined in.
Table 107: SIP header lines that the SIP ALG can inspect for syntax errors
SIP Header line
VoIP profile option
RFC
Allow
malformed-header-allow
RFC 3261
Call-ID
malformed-header-call-id
RFC 3261
Contact
malformed-header-contact
RFC 3261
Content-Length
malformed-header-content-length
RFC 3261
Content-Type
malformed-header-content-type
RFC 3261
CSeq
malformed-header-cseq
RFC 3261
Expires
malformed-header-expires
RFC 3261
From
malformed-header-from
RFC 3261
Max-forwards
malformed-header-max-forwards
RFC 3261
P-Asserted-Identity
malformed-header-p-asserted-identity
RFC 3325
RAck
malformed-header-rack
RFC 3262
Record-Route
malformed-header-record-route
RFC 3261
Route
malformed-header-route
RFC 3261
RSeq
malformed-header-rseq
RFC 3262
To
malformed-header-to
RFC 3261
Via
malformed-header-via
RFC 3261
Table 108 lists the SDP profile lines that the SIP ALG inspects and the CLI command for configuring the action for each line type. SDP profile lines are defined by RFC 4566 and RFC 2327.
Table 108: SDP profile lines that the SIP ALG can inspect for syntax errors  
Attribute
VoIP profile option
a=
malformed-header-sdb-a
b=
malformed-header-sdp-b
c=
malformed-header-sdp-c
i=
malformed-header-sdp-i
k=
malformed-header-sdp-k
m=
malformed-header-sdp-m
o=
malformed-header-sdp-o
r=
malformed-header-sdp-r
s=
malformed-header-sdp-s
t=
malformed-header-sdp-t
v=
malformed-header-sdp-v
z=
malformed-header-sdp-z