#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 |
---|---|---|---|
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 (4)
comment:1 Changed 17 years ago by bennylp
- Description modified (diff)
comment:2 Changed 17 years ago by bennylp
- Description modified (diff)
comment:3 Changed 17 years ago by bennylp
- Resolution set to fixed
- Status changed from new to closed
comment:4 Changed 17 years ago by bennylp
In r1636:
- when bind address is specified and public address is not, the bind address should be used as the public address
Note: See
TracTickets for help on using
tickets.
Fixed in r1625