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 Version 2
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 (last modified by bennylp)
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).
Change History (2)
comment:1 Changed 17 years ago by bennylp
- Description modified (diff)
comment:2 Changed 17 years ago by bennylp
- Description modified (diff)