Opened 17 years ago
Last modified 17 years ago
#429 closed defect
Failed to create RTP/RTCP sockets when explicit bind address is specified (thanks Arie Velthoen) — at Initial Version
Reported by: | bennylp | Owned by: | bennylp |
---|---|---|---|
Priority: | normal | Milestone: | release-0.9.0 |
Component: | pjsua-lib | Version: | trunk |
Keywords: | Cc: | ||
Backport to 1.x milestone: | Backported: |
Description
Quoting Arie's mail on pjsip list:
Function pjsua_media_transports_create fails when called with a
pjsua_transport_config in which bound_addr is set to the IP-address
of a local interface.
I am using release 0.8.0 without ICE.
It appears that the bound_addr is converted twice from host byte order
to network byte order:
The first conversion is in create_rtp_rtcp_sock calling via
pj_sockaddr_in_set_str_addr (calling pj_inet_addr etc.)
The second conversion is in create_rtp_rtcp_sock calling pj_sock_bind_in
(calling pj_htonl).