[Asterisk-Dev] ast_find_ourip and sip?

Kevin P. Fleming kpfleming at digium.com
Wed Apr 27 10:35:07 MST 2005


Brian West wrote:
> Ok this is one that i'm sure some of you have seen before.  Why MUST  
> sip resolve the hostname to an IP?  It doesn't really use it so why?   
> If you set /etc/hosts with the hostname then the ip of 127.0.0.1 then  
> it works.. but then again why not just fall back to that instead of  
> just disabling sip totally?    Also is it wise to embed the root  
> nameserver's ip into the function?  I'm going for NOT!!!!

It needs the IP so that it can do matching based on what it sees in the 
SIP headers, and so that it can add proper Via headers and such on the 
way out.

No, I don't think the IP of A.ROOT-SERVERS.NET should be embedded in 
that function either. Someone please find out when it was put there and 
why, so we can get it taken care of...



More information about the asterisk-dev mailing list