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/src/pjsua-lib/pjsua_acc.c

    r5249 r5308  
    19451945    /* Send raw packet */ 
    19461946    status = pjsip_tpmgr_send_raw(pjsip_endpt_get_tpmgr(pjsua_var.endpt), 
    1947                                   PJSIP_TRANSPORT_UDP, &tp_sel, 
     1947                                  acc->ka_transport->key.type, &tp_sel, 
    19481948                                  NULL, acc->cfg.ka_data.ptr,  
    19491949                                  acc->cfg.ka_data.slen,  
     
    20122012        if (/*pjsua_var.stun_srv.ipv4.sin_family == 0 ||*/ 
    20132013            acc->cfg.ka_interval == 0 || 
    2014             param->rdata->tp_info.transport->key.type != PJSIP_TRANSPORT_UDP) 
     2014            (param->rdata->tp_info.transport->key.type & PJSIP_TRANSPORT_UDP)!= 
     2015             PJSIP_TRANSPORT_UDP) 
    20152016        { 
    20162017            /* Keep alive is not necessary */ 
Note: See TracChangeset for help on using the changeset viewer.