Ticket #429 (closed defect: fixed)
Failed to create RTP/RTCP sockets when explicit bind address is specified (thanks Arie Velthoen)
|Reported by:||bennylp||Owned by:||bennylp|
|Backport to 1.x milestone:||Backported:|
Description (last modified by bennylp) (diff)
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).