BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJSIP Reference

#include <account.hpp>

Inheritance diagram for pj::SrtpOpt:
pj::PersistentObject

Public Member Functions

 SrtpOpt ()
 
void fromPj (const pjsua_srtp_opt &prm)
 
pjsua_srtp_opt toPj () const
 
virtual void readObject (const ContainerNode &node) throw (Error)
 
virtual void writeObject (ContainerNode &node) const throw (Error)
 
- Public Member Functions inherited from pj::PersistentObject
virtual ~PersistentObject ()
 
virtual void readObject (const ContainerNode &node)=0 throw (Error)
 
virtual void writeObject (ContainerNode &node) const =0 throw (Error)
 

Data Fields

SrtpCryptoVector cryptos
 
IntVector keyings
 

Detailed Description

SRTP settings.

Constructor & Destructor Documentation

◆ SrtpOpt()

pj::SrtpOpt::SrtpOpt ( )

Default constructor initializes with default values.

Member Function Documentation

◆ fromPj()

void pj::SrtpOpt::fromPj ( const pjsua_srtp_opt prm)

Convert from pjsip

◆ toPj()

pjsua_srtp_opt pj::SrtpOpt::toPj ( ) const

Convert to pjsip

◆ readObject()

virtual void pj::SrtpOpt::readObject ( const ContainerNode node)
throw (Error
)
virtual

Read this object from a container node.

Parameters
nodeContainer to read values from.

Implements pj::PersistentObject.

◆ writeObject()

virtual void pj::SrtpOpt::writeObject ( ContainerNode node) const
throw (Error
)
virtual

Write this object to a container node.

Parameters
nodeContainer to write values to.

Implements pj::PersistentObject.

Field Documentation

◆ cryptos

SrtpCryptoVector pj::SrtpOpt::cryptos

Specify SRTP cryptos. If empty, all crypto will be enabled. Available crypto can be enumerated using Endpoint::srtpCryptoEnum().

Default: empty.

◆ keyings

IntVector pj::SrtpOpt::keyings

Specify SRTP keying methods, valid keying method is defined in pjmedia_srtp_keying_method. If empty, all keying methods will be enabled with priority order: SDES, DTLS-SRTP.

Default: empty.


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.