[asterisk-dev] PJSIP: Is SDP answer? Is SDP offer?

Alexander Traud pabstraud at compuserve.com
Wed Mar 31 09:56:45 CDT 2021

In the function res_pjsip_sdp_rtp:setup_sdes_srtp(.), an upcoming patch of mine needs to determine whether that code processes an SDP answer or an SDP offer. Is there (somewhere) a flag or condition which I can check?

In chan_sip, I can use AST_LIST_EMPTY(sip_pvt->offered_media). Does a similar trick work with via the struct pjmedia_sdp_media?

More information about the asterisk-dev mailing list