Changes between Version 9 and Version 10 of SRTP


Ignore:
Timestamp:
Jan 25, 2008 2:49:39 PM (17 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SRTP

    v9 v10  
    137137 
    138138To use SRTP transport directly: 
    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). 
    144144 
    145145---- 
     
    153153New interfaces in media transport are as follows (please consult the PJMEDIA transport documentation for more info): 
    154154 
    155  '''media_create()''':: 
     155 '''[http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__H.htm#gf4a10278c4586f5239ee7a698aa4a85d media_create()]''':: 
    156156  This callback is called by application (or PJSUA-LIB) to allow the media transport to add more information in the SDP offer, before the offer is sent to remote. Additionally, for answerer side, this callback allows the media transport to reject the offer before this offer is processed by the SDP negotiator. 
    157157 
    158  '''media_start()''':: 
     158 '''[http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__H.htm#g8031382904162781e4b58fcee0a62dcd media_start()]''':: 
    159159  This callback is called after offer and answer are negotiated, and both SDPs are available, and before the media is started. For answerer side, this callback will be called before the answer is sent to remote, to allow media transport to put additional info in the SDP. For offerer side, this callback will be called after SDP answer is received. In this callback, the media transport has the final chance to negotiate/validate the offer and answer before media is really started (and answer is sent, for answerer side). 
    160160 
    161  '''media_stop()''':: 
     161 '''[http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__H.htm#ged068de25cc5cbda27c1b7058597d3b5 media_stop()]''':: 
    162162  This callback is called when the media is stopped, to allow the media transport to release its resources. 
    163163 
    164  '''simulate_lost()''':: 
     164 '''[http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__TRANSPORT__H.htm#g30e410ca02a4e815346b5e5fa505e7b5 simulate_lost()]''':: 
    165165  This has nothing to do with SRTP, but since all media transports support this feature (packet loss simulation), we added this as a new interface. 
    166166