Changeset 4224 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Aug 9, 2012 5:21:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r4218 r4224 329 329 char ip_addr[32]; 330 330 pj_str_t stun_srv; 331 pjstun_setting stun_opt; 331 332 332 333 pj_ansi_strcpy(ip_addr, … … 334 335 stun_srv = pj_str(ip_addr); 335 336 336 status=pjstun_get_mapped_addr(&pjsua_var.cp.factory, 2, sock, 337 &stun_srv, pj_ntohs(pjsua_var.stun_srv.ipv4.sin_port), 338 &stun_srv, pj_ntohs(pjsua_var.stun_srv.ipv4.sin_port), 339 mapped_addr); 337 pj_bzero(&stun_opt, sizeof(stun_opt)); 338 stun_opt.use_stun2 = pjsua_var.ua_cfg.stun_map_use_stun2; 339 stun_opt.srv1 = stun_opt.srv2 = stun_srv; 340 stun_opt.port1 = stun_opt.port2 = 341 pj_ntohs(pjsua_var.stun_srv.ipv4.sin_port); 342 status=pjstun_get_mapped_addr2(&pjsua_var.cp.factory, &stun_opt, 343 2, sock, mapped_addr); 340 344 if (status != PJ_SUCCESS) { 341 345 pjsua_perror(THIS_FILE, "STUN resolve error", status);
Note: See TracChangeset
for help on using the changeset viewer.