BLOG | DOCUMENTATION | TRAC

Home --> Documentations --> PJSIP Reference

pj::OnCreateMediaTransportSrtpParam Struct Reference

#include <call.hpp>

Data Fields

unsigned mediaIdx
 
pjmedia_srtp_use srtpUse
 
SrtpCryptoVector cryptos
 

Detailed Description

This structure contains parameters for Call::onCreateMediaTransportSrtp() callback.

Field Documentation

◆ mediaIdx

unsigned pj::OnCreateMediaTransportSrtpParam::mediaIdx

The media index in the SDP for which the SRTP media transport will be used.

◆ srtpUse

pjmedia_srtp_use pj::OnCreateMediaTransportSrtpParam::srtpUse

Specify whether secure media transport should be used. Application can modify this only for initial INVITE. Valid values are PJMEDIA_SRTP_DISABLED, PJMEDIA_SRTP_OPTIONAL, and PJMEDIA_SRTP_MANDATORY.

◆ cryptos

SrtpCryptoVector pj::OnCreateMediaTransportSrtpParam::cryptos

Application can modify this to specify the cryptos and keys which are going to be used.


The documentation for this struct was generated from the following file:

 


PJSIP Open Source, high performance, small footprint, and very very portable SIP stack
Copyright (C) 2006-2008 Teluu Inc.