I have Asterisk 13.21 with PJSIP endpoints A and B.
In order to enable all the supported audio and video codecs, allow=all parameter is set for both endpoints.
A call is coming from endpoint A and is routed to endpoint B according to the dialplan.
Could you clarify in which order codecs in outgoing INVITE towards endpoint B are announced:
Asterisk respects the order in SDP received from endpoint A, or
Asterisk sends codecs in some fixed order?
If the latter is correct, where is this order defined?