Changeset 771 for pjproject/trunk


Ignore:
Timestamp:
Oct 16, 2006 11:39:07 AM (18 years ago)
Author:
bennylp
Message:

Changed siprtp to bind to specific address (instead of 0.0.0.0) when -i option is specified in the command line

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/siprtp.c

    r657 r771  
    300300 
    301301        if (app.local_addr.slen) { 
     302 
    302303            addrname.host = app.local_addr; 
    303304            addrname.port = app.sip_port; 
     305 
     306            status = pj_sockaddr_in_init(&addr, &app.local_addr,  
     307                                         (pj_uint16_t)app.sip_port); 
     308            if (status != PJ_SUCCESS) { 
     309                app_perror(THIS_FILE, "Unable to resolve IP interface", status); 
     310                return status; 
     311            } 
    304312        } 
    305313 
Note: See TracChangeset for help on using the changeset viewer.