Changeset 1602 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Dec 1, 2007 8:59:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r1591 r1602 347 347 348 348 } else { 349 pj_ in_addr addr;349 pj_sockaddr addr; 350 350 351 351 /* Get local IP address. */ 352 status = pj_gethostip( &addr);352 status = pj_gethostip(pj_AF_INET(), &addr); 353 353 if (status != PJ_SUCCESS) 354 354 goto on_error; 355 355 356 356 for (i=0; i<2; ++i) 357 mapped_addr[i].sin_addr =addr;357 mapped_addr[i].sin_addr.s_addr = addr.ipv4.sin_addr.s_addr; 358 358 359 359 mapped_addr[0].sin_port=pj_htons((pj_uint16_t)next_rtp_port);
Note: See TracChangeset
for help on using the changeset viewer.