I'm writing an application using pjsip and I need to receive application-specific RTCP packets. I'm looking at the implementation of pjmedia_rtcp_rx_rtcp
(in pjmedia/src/pjmedia/rtcp.c
) and it only seems to handle certain RTCP packets and does not have a case for application-specific types. In case of an unknown packet type, it would just produce a "Received unknown RTCP packet"
diagnostic message.
It looks like I may be able to install my own handler for received RTCP packets, using pjmedia_transport_attach
. However, this would be called for all received RTCP packets, instead of just for application-specific ones. [Perhaps I could call the previous handler if it's not an app-specific packet, this needs further investigation.]
Is it possible to make pjsip call a callback on application-specific RTCP packets? And if not, how can I handle such RTCP packets while still using pjsip?