Changeset 4504


Ignore:
Timestamp:
Apr 25, 2013 10:59:06 AM (11 years ago)
Author:
nanang
Message:

Fixed #1660: SIP transport fallbacks to use default interface when pj_getipinterface() fails in getting local interface for the specified destination.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport.c

    r4454 r4504  
    12451245    af = (tp_type & PJSIP_TRANSPORT_IPV6)? PJ_AF_INET6 : PJ_AF_INET; 
    12461246    status = pj_getipinterface(af, dst, &itf_addr, PJ_FALSE, NULL); 
    1247     if (status != PJ_SUCCESS) 
    1248         return status; 
     1247    if (status != PJ_SUCCESS) { 
     1248        /* If it fails, e.g: on WM6 (http://support.microsoft.com/kb/129065), 
     1249         * just fallback using pj_gethostip(), see ticket #1660. 
     1250         */ 
     1251        PJ_LOG(5,(THIS_FILE,"Warning: unable to determine local " 
     1252                            "interface, fallback to default interface!")); 
     1253        status = pj_gethostip(af, &itf_addr); 
     1254        if (status != PJ_SUCCESS) 
     1255            return status; 
     1256    } 
    12491257 
    12501258    /* Print address */ 
Note: See TracChangeset for help on using the changeset viewer.