Ignore:
Timestamp:
Aug 12, 2009 11:03:23 AM (15 years ago)
Author:
bennylp
Message:

Ticket #866: Allow application to specify more than one STUN servers for more robustness, and continue application startup if STUN resolution fails

PJSUA-LIB:

  • New fields in pjsua_config to specify more than one STUN servers (the stun_srv_cnt and stun_srv array)
  • The existing stun_host and stun_domain fields are deprecated, but backward compatibility is maintained. If stun_srv_cnt is zero, the library will import the entries from stun_host and stun_domain
  • The library will now resolve the STUN server entries one by one and test it before using it
  • New auxiliary API pjsua_resolve_stun_servers() to perform resolution and test against array of STUN servers

pjsua application:

  • The "stun-srv" command line options can now be specified more than once
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r2837 r2864  
    360360 
    361361    /* Make sure STUN server resolution has completed */ 
    362     status = pjsua_resolve_stun_server(PJ_TRUE); 
     362    status = resolve_stun_server(PJ_TRUE); 
    363363    if (status != PJ_SUCCESS) { 
    364364        pjsua_perror(THIS_FILE, "Error resolving STUN server", status); 
     
    861861 
    862862    /* Make sure STUN server resolution has completed */ 
    863     status = pjsua_resolve_stun_server(PJ_TRUE); 
     863    status = resolve_stun_server(PJ_TRUE); 
    864864    if (status != PJ_SUCCESS) { 
    865865        pjsua_perror(THIS_FILE, "Error resolving STUN server", status); 
Note: See TracChangeset for help on using the changeset viewer.