The link @ebilcari provided was for FortiSwitch config (standalone). In case configured from a FGT over fortilink, the LLDP-MED config admin guide is below:
https://docs.fortinet.com/document/fortiswitch/7.2.6/fortilink-guide/173276/configuring-lldp-med-settings
With FGT switch-controller, you don't directly configure VLAN ID, instead VLAN interface is specified. Apparently the FGT picks up the VLAN ID from the interface and send it to the FSWs.
Below is our example. Some phones use only "voice", others might use both "voice" and "voice-signaling". It's up to phones. We ended up not using fortilink so we don't use this but directly configure FSWs though.
config switch-controller lldp-profile edit "our-voice-lldp" set med-tlvs network-policy config med-network-policy edit "voice" set status enable set vlan-intf "our_voice" set assign-vlan enable set priority 5 set dscp 46 next edit "voice-signaling" set status enable set vlan-intf "our_voice" set assign-vlan enable set priority 5 set dscp 24 next end next end
config switch-controller managed-switch edit "<serial_number>" config ports edit "<port_name>" set lldp-profile "our-voice-lldp" next end next end
Toshi