Changes between Version 2 and Version 3 of SRTP
- Timestamp:
- Jan 23, 2008 6:01:36 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SRTP
v2 v3 1 1 = SRTP Support in PJSIP = 2 2 3 Support for SRTP was included in PJSIP in version 0.9 ( r...).3 Support for SRTP was included in PJSIP in version 0.9 (see ticket #61). 4 4 5 5 == Requirements == … … 40 40 New interfaces in media transport are as follows (please consult the PJMEDIA transport documentation for more info): 41 41 42 media_create::42 '''media_create()''':: 43 43 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 from the remote before this offer is processed by the SDP negotiator. 44 media_start:: 44 45 '''media_start()''':: 45 46 This callback is called after offer and answer are negotiated, 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. The media transport also has the final chance to negotiate the offer and answer before media is really started. 46 media_stop:: 47 48 '''media_stop()''':: 47 49 This callback is called when the media is stopped, to allow the media transport to release its resources. 48 simulate_lost:: 50 51 '''simulate_lost()''':: 49 52 This has nothing to do with SRTP, but since all media transports support this feature (packet loss simulation), we add this as a new interface. 50 53 51 54 52 55 === pjmedia_transport_srtp Implementation === 56 57 As we know, media transport is separated from the stream object (which does the encoding/decoding of PCM frames, (de)packetization of RTP packets, and de-jitter buffering). The connection between stream and media transport is established when the stream is created (because during stream creation we need to specify media transport), and the interconnection can be depicted from the diagram below: 58 59 60 61 62 63 64 53 65 54 66 ----