diff options
author | Benny Prijono <bennylp@teluu.com> | 2007-12-09 14:14:11 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2007-12-09 14:14:11 +0000 |
commit | 9b432447bece1ee6d87f4d8c045e7cab079e85d1 (patch) | |
tree | 68cae632fb79fcc83e6faed7949685629467efc3 /pjsip | |
parent | 642b68993e009f2495c8125e6f7e8ca6f1981ed8 (diff) |
Ticket #429: Failed to create RTP/RTCP sockets when explicit bind address is specified (thanks Arie Velthoen)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1625 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_media.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_media.c b/pjsip/src/pjsua-lib/pjsua_media.c index 07bdbc2c..38788478 100644 --- a/pjsip/src/pjsua-lib/pjsua_media.c +++ b/pjsip/src/pjsua-lib/pjsua_media.c @@ -256,8 +256,8 @@ static pj_status_t create_rtp_rtcp_sock(const pjsua_transport_config *cfg, return status; } - status = pj_sock_bind_in(sock[0], bound_addr.sin_addr.s_addr, - next_rtp_port); + status=pj_sock_bind_in(sock[0], pj_ntohl(bound_addr.sin_addr.s_addr), + next_rtp_port); if (status != PJ_SUCCESS) { pj_sock_close(sock[0]); sock[0] = PJ_INVALID_SOCKET; @@ -272,8 +272,8 @@ static pj_status_t create_rtp_rtcp_sock(const pjsua_transport_config *cfg, return status; } - status = pj_sock_bind_in(sock[1], bound_addr.sin_addr.s_addr, - (pj_uint16_t)(next_rtp_port+1)); + status=pj_sock_bind_in(sock[1], pj_ntohl(bound_addr.sin_addr.s_addr), + (pj_uint16_t)(next_rtp_port+1)); if (status != PJ_SUCCESS) { pj_sock_close(sock[0]); sock[0] = PJ_INVALID_SOCKET; |