Ignore:
Timestamp:
May 19, 2016 6:55:16 AM (8 years ago)
Author:
ming
Message:

Fixed #1921: Add support to handle IPv6 transports in pjsua_transport API and transport keep alive

Also:

  • add more detailed transport info for TCP and TLS transport
  • fixed pjsua sample app which tries to get IPv4 local address from IPv6 transport.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c

    r5170 r5308  
    16651665        if (app_config.udp_cfg.port == 0) { 
    16661666            pjsua_transport_info ti; 
    1667             pj_sockaddr_in *a; 
    16681667 
    16691668            pjsua_transport_get_info(transport_id, &ti); 
    1670             a = (pj_sockaddr_in*)&ti.local_addr; 
    1671  
    1672             tcp_cfg.port = pj_ntohs(a->sin_port); 
     1669            tcp_cfg.port = pj_sockaddr_get_port(&ti.local_addr); 
    16731670        } 
    16741671    } 
Note: See TracChangeset for help on using the changeset viewer.