Fixed ticket #98: Error binding transports to specific interface in PJSUA-API
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@941 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
92d6356f80
commit
f90ef4ffcd
|
@ -833,7 +833,8 @@ static pj_status_t create_sip_udp_sock(pj_in_addr bound_addr,
|
|||
return status;
|
||||
}
|
||||
|
||||
status = pj_sock_bind_in(sock, bound_addr.s_addr, (pj_uint16_t)port);
|
||||
status = pj_sock_bind_in(sock, pj_ntohl(bound_addr.s_addr),
|
||||
(pj_uint16_t)port);
|
||||
if (status != PJ_SUCCESS) {
|
||||
pjsua_perror(THIS_FILE, "bind() error", status);
|
||||
pj_sock_close(sock);
|
||||
|
|
Loading…
Reference in New Issue