Ticket #429 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

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) (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).

Change History

comment:1 Changed 10 years ago by bennylp

  • Description modified (diff)

comment:2 Changed 10 years ago by bennylp

  • Description modified (diff)

comment:3 Changed 10 years ago by bennylp

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in r1625

comment:4 Changed 10 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.