Script to control early-media and ringtone based on P-Early-Media header [RFC5009]

Does Telcobridges have scripts examples to extract P-Early-Media header and take actions like:

  • rewrite previous “Early Media” status allowing the control of ringtone generation in realtime?
  • rewrite P-Early-Media header value from A-leg to B-leg?
  • allow or disallow that P-Early-Media header pass from A-leg to B-leg?

Is on ProSBC roadmap to also support natively the P-Early-Media header to control early-media and ring tone generation as it does with 183/180 with SDP?

Please see below an example script to manipulate the SIP headers.

sip_headers_manipulation.zip (1.3 KB)