Ignore:
Timestamp:
Dec 9, 2007 2:14:11 PM (16 years ago)
Author:
bennylp
Message:

Ticket #429: Failed to create RTP/RTCP sockets when explicit bind address is specified (thanks Arie Velthoen)

File:
1 edited

Legend:

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

    r1616 r1625  
    257257        } 
    258258 
    259         status = pj_sock_bind_in(sock[0], bound_addr.sin_addr.s_addr,  
    260                                 next_rtp_port); 
     259        status=pj_sock_bind_in(sock[0], pj_ntohl(bound_addr.sin_addr.s_addr),  
     260                              next_rtp_port); 
    261261        if (status != PJ_SUCCESS) { 
    262262            pj_sock_close(sock[0]);  
     
    273273        } 
    274274 
    275         status = pj_sock_bind_in(sock[1], bound_addr.sin_addr.s_addr,  
    276                                 (pj_uint16_t)(next_rtp_port+1)); 
     275        status=pj_sock_bind_in(sock[1], pj_ntohl(bound_addr.sin_addr.s_addr),  
     276                              (pj_uint16_t)(next_rtp_port+1)); 
    277277        if (status != PJ_SUCCESS) { 
    278278            pj_sock_close(sock[0]);  
Note: See TracChangeset for help on using the changeset viewer.