Ignore:
Timestamp:
Dec 1, 2007 8:59:25 AM (17 years ago)
Author:
bennylp
Message:

Ticket #421: initial IPv6 support: UDP transport

File:
1 edited

Legend:

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

    r1591 r1602  
    347347 
    348348        } else { 
    349             pj_in_addr addr; 
     349            pj_sockaddr addr; 
    350350 
    351351            /* Get local IP address. */ 
    352             status = pj_gethostip(&addr); 
     352            status = pj_gethostip(pj_AF_INET(), &addr); 
    353353            if (status != PJ_SUCCESS) 
    354354                goto on_error; 
    355355 
    356356            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; 
    358358 
    359359            mapped_addr[0].sin_port=pj_htons((pj_uint16_t)next_rtp_port); 
Note: See TracChangeset for help on using the changeset viewer.