[asterisk-commits] mmichelson: branch mmichelson/srv_sip_outbound r200 - /asterisk/team/mmichels...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Apr 5 09:56:48 CDT 2010
Author: mmichelson
Date: Mon Apr 5 09:56:47 2010
New Revision: 200
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=200
Log:
Equality tester for SRV records
Modified:
asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test.lua
Modified: asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test.lua?view=diff&rev=200&r1=199&r2=200
==============================================================================
--- asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test.lua (original)
+++ asterisk/team/mmichelson/srv_sip_outbound/tests/func_srv/test.lua Mon Apr 5 09:56:47 2010
@@ -9,6 +9,10 @@
setmetatable(s, self)
self.__index = self
return s
+end
+
+function srv_record.__eq(rec1, rec2)
+ return rec1.host == rec2.host and rec1.port == rec2.port and rec1.priority == rec2.priority and rec1.weight == rec2.weight
end
srv_records = {
More information about the asterisk-commits
mailing list