Chapter 22 VoIP Solutions: SIP : FortiGate VoIP solutions: SIP : SIP debugging : SIP debug setting
  
SIP debug setting
Control of the SIP debug output is governed by the following command
diagnose debug application sip <debug_level_int>
Where the <debug_level_int> is a bitmask and the individual values determine whether the listed items are logged or not. The <debug_level_int> can be
1 - configuration changes. Mainly addition/deletion/modification of virtual domains.
2 - (TCP) connection accepts or connects, redirect creation
4 - create or delete a session
16 - any IO read or write
32 - an ASCII dump of all data read or written
64 - Include HEX dump in the above output
128 - any activity related to the use of the FortiCarrier dynamic profile feature to determine the correct profile-group to use
256 - log summary of interesting fields in a SIP call
1024 - any activity related to SIP geo-redundancy.
2048 - any activity related to HA syncing of SIP calls.