Home --> Documentations --> PJSIP Reference

#include <pjsua.h>

Data Fields

pj_bool_t enable_turn
pj_str_t turn_server
pj_turn_tp_type turn_conn_type
pj_stun_auth_cred turn_auth_cred
pj_turn_sock_tls_cfg turn_tls_setting

Detailed Description

TURN setting. This setting is used in the pjsua_acc_config.

Field Documentation

◆ enable_turn

pj_bool_t pjsua_turn_config::enable_turn

Enable TURN candidate in ICE.

◆ turn_server

pj_str_t pjsua_turn_config::turn_server

Specify TURN domain name or host name, in in "DOMAIN:PORT" or "HOST:PORT" format.

◆ turn_conn_type

pj_turn_tp_type pjsua_turn_config::turn_conn_type

Specify the connection type to be used to the TURN server. Valid values are PJ_TURN_TP_UDP, PJ_TURN_TP_TCP or PJ_TURN_TP_TLS.


◆ turn_auth_cred

pj_stun_auth_cred pjsua_turn_config::turn_auth_cred

Specify the credential to authenticate with the TURN server.

◆ turn_tls_setting

pj_turn_sock_tls_cfg pjsua_turn_config::turn_tls_setting

This specifies TLS settings for TURN TLS. It is only be used when this TLS is used to connect to the TURN server.

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.