Hi,<br><br>It is very strange that following chan_woomera code part gives IP address <a href="http://44.215.5.41">44.215.5.41</a>.<br><br>static int connect_woomera(int *new_socket, woomera_profile *profile, int flags)<br>
{<br>       struct sockaddr_in localAddr, remoteAddr;<br>       struct hostent *hp;<br>       struct ast_hostent ahp;<br>       int res = 0;<br><br>       *new_socket=-1;<br><br>       printf(&quot;WOOMERA HOST: %s\n&quot;,profile-&gt;woomera_host);    // THIS PRINTS CORRECT IP ADDRESS<br>
       if ((hp = ast_gethostbyname(profile-&gt;woomera_host, &amp;ahp))) {<br>               remoteAddr.sin_family = hp-&gt;h_addrtype;                 memcpy((char *) &amp;remoteAddr.sin_addr.s_addr, hp-&gt;h_addr_list[0], hp-&gt;h_length);<br>
<br>               printf(&quot;************************ WOOMERA HOST: %s\n&quot;, inet_ntoa(remoteAddr.sin_addr));  // THIS PRINTS <a href="http://44.215.5.41">44.215.5.41</a><br>               remoteAddr.sin_port = htons(profile-&gt;woomera_port);<br>
<br>And chan_woomera tries to connect to <a href="http://44.215.5.41:42240">44.215.5.41:42240</a>, it is very strange, because<br>I have already defined host <a href="http://192.168.0.18">192.168.0.18</a> in woomera.conf.<br>
<br>I can hardcode it like:<br><br>//                memcpy((char *) &amp;remoteAddr.sin_addr.s_addr, hp-&gt;h_addr_list[0], hp-&gt;h_length);<br>             inet_aton(&quot;<a href="http://192.168.0.18">192.168.0.18</a>&quot;, &amp;remoteAddr.sin_addr);<br>
<br>But I would like to know the right solution.<br>Please let me know.<br><br>thanks,<br><br>Ganbold<br><br><br>