On Thu, 2009-09-10 at 19:21 +0100, Husam Senussi wrote:
> I see this in system log file
>
>
> Sep 10 07:44:04 mac named[12319]: zone ./IN: NS '127.0.0.1' has no
> address records (A or AAAA)
> Sep 10 07:44:04 mac named[12319]: zone ./IN: _sip._udp.test10/SRV
> 'invalid.com' has no address records (A or AAAA)
> Sep 10 07:44:04 mac named[12319]: zone ./IN: _sip._tcp.test11/SRV
> 'invalid.com' has no address records (A or AAAA)
> Sep 10 07:44:04 mac named[12319]: zone ./IN: _sip._udp.test26/SRV
> 'c2.test25' is a CNAME (illegal)
> Sep 10 07:44:04 mac named[12319]: zone ./IN: _sip._tcp.test27/SRV
> 'c2.test25' is a CNAME (illegal)
> Sep 10 07:44:04 mac named[12319]: zone ./IN: _sip._udp.test27/SRV
> 'c2.test25' is a CNAME (illegal)
These messages are named complaining that the test zone file is invalid
for real-world use. That's correct.
> and this the result I'm getting from test cases
>
>
> SipSrvLookup::servers("test4", "sip", OsSocket::UNKNOWN, -1) returns:
> SipSrvLookupTest::lookup host = 'test4.example.com', IP addr =
> '2.1.4.0', port = 5060, weight = 1, score = 11.758012, priority = 1,
> proto = UDP
> [END]
>
>
> Failed test seq. no. 6, named 'test4'
> Expected results were:
> 2.1.4.0:5060,1,0.174,1,UDP
>
>
> Actual results were:
> 2.1.4.0:5060,1,11.758,1,UDP
It looks like what is happening is that your system's rand() function
returns a different sequence of values than the Linux/Gnu rand()
function. That is not an error, but will cause all of these comparisons
to fail. (The 3rd number in the results, e.g., "11.758", is generated
using rand().)
I see no reason to think this is a real error. I would suggest removing
the line
net/SipSrvLookupTest.cpp \
from sipXtackLib/src/test/Makefile.am and rebuilding, so as to disable
this test.
Dale
_______________________________________________
sipx-dev mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev
sipXecs IP PBX -- http://www.sipfoundry.org/