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

[reSIProcate-users] resiprocate on iPhone - DNS server addresses


Hi, 

We are considering using resiprocate 1.7 for a future iphone project. We have 
compiled the sipdialler application and are running it on a device.

In the mail archives it is mentioned that there should be no code changes 
required to run the stack on iphone. This seems to be the case but in 
ares_init.c there is code to obtain nameservers on MacOS X. However if running 
on an iphone device it seems to simply get the loopback address as a nameserver 
and then of course it can't resolve anything.

static void init_by_defaults_systemconfiguration(ares_channel channel)
{
  ------------

  channel->servers[0].addr.s_addr = htonl(INADDR_LOOPBACK);
    channel->servers[0].default_localhost_server = 1;
    channel->nservers = 1;
  
}  

Does this bit of work still need doing then or am I missing something?

Thanks