139 | | - Call pjmedia_transport_srtp_create() to create the SRTP adapter, giving it the actual media transport instance (such as UDP transport). |
140 | | - Call pjmedia_transport_srtp_start() to active SRTP session, giving it both local and remote crypto settings and keys. |
141 | | - Call pjmedia_transport_attach() to configure the remote RTP/RTCP addresses and attach your RTP and RTCP callbacks. |
142 | | - Call pjmedia_transport_send_rtp() and pjmedia_transport_send_rtcp() to send RTP/RTCP packets. |
143 | | - Once you done with your session, call pjmedia_transport_close() to destroy the SRTP adapter (and optionally the actual transport which is attached to the SRTP adapter, depending on whether ''close_member_tp'' flag is set in the options when creating the SRTP adapter). |
| 139 | - Call [http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__H.htm#gf4a10278c4586f5239ee7a698aa4a85d pjmedia_transport_srtp_create()] to create the SRTP adapter, giving it the actual media transport instance (such as UDP transport). |
| 140 | - Call [http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__SRTP.htm#gb603d4f070665cb1a8038c021a6019e6 pjmedia_transport_srtp_start()] to active SRTP session, giving it both local and remote crypto settings and keys. |
| 141 | - Call [http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__H.htm#g13bbd87a2d4868229c95711065905cfa pjmedia_transport_attach()] to configure the remote RTP/RTCP addresses and attach your RTP and RTCP callbacks. |
| 142 | - Call [http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__H.htm#g79db5c82268501ec3bf7c1897c0b3626 pjmedia_transport_send_rtp()] and [http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__H.htm#g5fe97ac16287563420950a8b87d247b4 pjmedia_transport_send_rtcp()] to send RTP/RTCP packets. |
| 143 | - Once you done with your session, call [http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__H.htm#g0114fa7e20cb17c645701b2dbda96452 pjmedia_transport_close()] to destroy the SRTP adapter (and optionally the actual transport which is attached to the SRTP adapter, depending on whether ''close_member_tp'' flag is set in the [http://www.pjsip.org/pjmedia/docs/html/structpjmedia__srtp__setting.htm pjmedia_srtp_setting] when creating the SRTP adapter). |