P-Early-Media header (RFC 5009)

Hello,

Does Asterisk supports or Is it possible to configure to send P-Early-Media header (RFC 5009) using chan_sip channel?
• When PBX acts as UAC (Outbound call), INVITE request has to have the P-Early-Media header field present with the “supported” parameter from PBX (ex., P-Early-Media: supported)
• And when PBX acts as UAS (Inbound Call), P-Early-Media header as sendrecv/ inactive/sendonly/recvonly (ex., P-Early-Media: sendrecv)

Please confirm.

There is no built in support for this. The most you could do without modifying the code is using the dialplan SIP header functionality which would only cover the INVITE going out.