Home --> Documentations --> PJSIP Reference

#include <pjsua.h>

Data Fields

unsigned crypto_count
pjmedia_srtp_crypto crypto [PJMEDIA_SRTP_MAX_CRYPTOS]
unsigned keying_count
pjmedia_srtp_keying_method keying [PJMEDIA_SRTP_KEYINGS_COUNT]

Detailed Description

Specify SRTP media transport settings.

Field Documentation

unsigned pjsua_srtp_opt::crypto_count

Specify the number of crypto suite settings. If set to zero, all available cryptos will be enabled. Note that available crypto names can be enumerated using pjmedia_srtp_enum_crypto().

Default is zero.

Specify individual crypto suite setting and its priority order.

Notes for DTLS-SRTP keying:

  • Currently only supports these cryptos: AES_CM_128_HMAC_SHA1_80, AES_CM_128_HMAC_SHA1_32, AEAD_AES_256_GCM, and AEAD_AES_128_GCM.
  • SRTP key is not configurable.
unsigned pjsua_srtp_opt::keying_count

Specify the number of enabled keying methods. If set to zero, all keyings will be enabled. Maximum value is PJMEDIA_SRTP_MAX_KEYINGS. Note that available keying methods can be enumerated using pjmedia_srtp_enum_keying().

Default is zero (all keyings are enabled with priority order: SDES, DTLS-SRTP).

Specify enabled keying methods and its priority order. Keying method with higher priority will be given earlier chance to process the SDP, for example as currently only one keying is supported in the SDP offer, keying with first priority will be likely used in the SDP offer.

The documentation for this struct was generated from the following file:
  • pjsua-lib/pjsua.h


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