Pjsip : DSCP tos & cos

I’m trying to switch to pjsip. I’m confused about how to set DSCP.

Is it set in [transport] or just enabled ?
919 ;tos=0 ; Enable TOS for the signalling sent over this transport (default: “0”)
920 ;cos=0 ; Enable COS for the signalling sent over this transport (default: “0”)

Is this just for signalling qos ?

So tos = 1 or tos = 0 ?

What about :
tos = cs3 ?
cos= 3

which is what the sip -> pjsip convert did.

Can tos_audio/video or cos_audio/video be set in [transport] , or must they be set in [endpoint] ?

Different parameters can be set depending on the type.
https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service

CHAN_PJSIP

In chan_pjsip, there are three parameters that control the TOS settings: a tos option for a type=transport that controls the TOS of SIP signaling packets, a tos_audio option for a type=endpoint that controls the TOS of RTP audio packets, and a tos_video option for a type=endpoint that controls the TOS of video packets.

Similarly, there are there parameters that control the 802.1p CoS settings: a cos option for a type=transport that controls the 802.1p value for SIP signaling packets, a cos_audio option for a type=endpoint that controls the 802.1p value of RTP audio packets, and a cos_video option for a type=endpoint that controls the 802.1p value for video packets.

Icon

Changes to a chan_pjsip type=transport require an Asterisk restart to be affected. They are not affected by simply reloading Asterisk.