< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate-users] The Assertion failed if the network is disabled.


If turned on the airplan mode(windows 10 or iOS, Android), the ARES will be failed with assertion:

Assertion failed: (family == 2 || family == 30), function open_udp_socket, file resiprocate/rutil/dns/ares/ares_process.c, line 779
family value is '\0'


static int open_udp_socket(ares_channel channel, struct server_state *server)
{
  u_int8_t family;
  int s;

#ifdef USE_IPV6
  family = server->family;
  resip_assert(family == AF_INET || family == AF_INET6);   ======> this assertion will be tirggered.
#else
  family = AF_INET;
#endif