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

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


We use resiprocate on iOS/Android too.
Did not observe this issue yet. I suppose main reason is our apps are
coded to not run resip stack in airplane mode at all.
Did you try to replace this assert() with

if (family != AF_INET && family != AF_INET6)
  return -1;

It should help.


On Mon, Dec 26, 2016 at 7:22 AM, Karlsson <boost.regex@xxxxxxxxx> wrote:
> 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
>
> _______________________________________________
> resiprocate-users mailing list
> resiprocate-users@xxxxxxxxxxxxxxx
> List Archive: http://list.resiprocate.org/archive/resiprocate-users/