pjsua2 - defining stun server

HN
Hermann Norpois
Thu, Sep 29, 2016 4:10 PM

Hello,

I know I am blockheaded but ...

How do I define a stun server? I really tried hard. Assume the name is "
stun.pjsip.org".
This is my syntax:

Endpoint ep;
ep.libCreate();

// Initialize endpoint
EpConfig ep_cfg;
ep.libInit( ep_cfg );

/* Set ua config */
UaConfig ua_cfg;

ua_cfg.stunServer  // How to define the stunserver?

Thanks
Hermann

Hello, I know I am blockheaded but ... How do I define a stun server? I really tried hard. Assume the name is " stun.pjsip.org". This is my syntax: Endpoint ep; ep.libCreate(); // Initialize endpoint EpConfig ep_cfg; ep.libInit( ep_cfg ); /* Set ua config */ UaConfig ua_cfg; ua_cfg.stunServer // How to define the stunserver? Thanks Hermann