Group PJNATH_STUN_CONFIG

group PJNATH_STUN_CONFIG

STUN config.

Functions

void pj_stun_config_init(pj_stun_config *cfg, pj_pool_factory *factory, unsigned options, pj_ioqueue_t *ioqueue, pj_timer_heap_t *timer_heap)

Initialize STUN config.

pj_status_t pj_stun_config_check_valid(const pj_stun_config *cfg)

Check that STUN config is valid.

struct pj_stun_config
#include <stun_config.h>

STUN configuration.

Public Members

pj_pool_factory *pf

Pool factory to be used.

pj_ioqueue_t *ioqueue

Ioqueue.

pj_timer_heap_t *timer_heap

Timer heap instance.

unsigned options

Options.

unsigned rto_msec

The default initial STUN round-trip time estimation in msecs. The value normally is PJ_STUN_RTO_VALUE.

unsigned res_cache_msec

The interval to cache outgoing STUN response in the STUN session, in miliseconds.

Default 10000 (10 seconds).

pj_str_t software_name

Software name to be included in all STUN requests and responses.

Default: PJNATH_STUN_SOFTWARE_NAME.