Ignore:
Timestamp:
Oct 12, 2007 12:14:27 PM (17 years ago)
Author:
bennylp
Message:

Ticket #399: Initial implementation of tool to perform NAT type detection/classification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h

    r1488 r1495  
    4040/* Include all PJSIP-SIMPLE headers */ 
    4141#include <pjsip_simple.h> 
     42 
     43/* Include all PJNATH headers */ 
     44#include <pjnath.h> 
    4245 
    4346/* Include all PJLIB-UTIL headers. */ 
     
    13111314 
    13121315/** 
     1316 * This is a utility function to detect NAT type in front of this 
     1317 * endpoint. Once invoked successfully, this function will complete  
     1318 * asynchronously and report the result in the callback. 
     1319 * 
     1320 * @param srv_port      Optional STUN server and port, in "SERVER[:PORT]" 
     1321 *                      format. If this option is NULL, the function will use 
     1322 *                      the STUN server that has been set in the pjsua 
     1323 *                      configuration. 
     1324 * @param user_data     User data to be returned back in the callback. 
     1325 * @param cb            Optional callback to report the detection result. 
     1326 * 
     1327 * @return              PJ_SUCCESS if detection is started successfully. 
     1328 */ 
     1329PJ_DECL(pj_status_t) pjsua_detect_nat_type(void *user_data, 
     1330                                           pj_stun_nat_detect_cb *cb); 
     1331 
     1332 
     1333/** 
    13131334 * This is a utility function to verify that valid SIP url is given. If the 
    13141335 * URL is valid, PJ_SUCCESS will be returned. 
Note: See TracChangeset for help on using the changeset viewer.