[Freeswitch-svn] [commit] r11954 - in freeswitch/trunk/libs/sofia-sip: . s2check

FreeSWITCH SVN mikej at freeswitch.org
Thu Feb 12 13:19:13 PST 2009


Author: mikej
Date: Thu Feb 12 15:19:13 2009
New Revision: 11954

Log:
Thu Feb 12 14:28:27 CST 2009  Pekka Pessi <first.last at nokia.com>
  * s2dns.c: fixed cname records



Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/s2check/s2dns.c

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Thu Feb 12 15:19:13 2009
@@ -1 +1 @@
-Thu Feb 12 15:18:14 CST 2009
+Thu Feb 12 15:19:02 CST 2009

Modified: freeswitch/trunk/libs/sofia-sip/s2check/s2dns.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/s2check/s2dns.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/s2check/s2dns.c	Thu Feb 12 15:19:13 2009
@@ -176,7 +176,7 @@
 
 static char const *default_domain;
 
-/* Set default domain */
+/** Set default domain suffix used with s2_dns_record() */
 char const *
 s2_dns_default(char const *domain)
 {
@@ -328,7 +328,7 @@
   put_uint32(m, s2_dns_ttl);
   start = put_len_at(m);
 
-  put_data(m, (void *)cname, strlen(cname));
+  put_domain(m, cname);
   put_len(m, start);
 }
 
@@ -543,7 +543,16 @@
   va_end(va0);
 }
 
-/** Insert DNS record */
+/** Insert DNS response.
+
+  s2_dns_record("example.com", sres_type_naptr,
+		// order priority flags services regexp target
+		"", sres_type_naptr, 20, 50, "a", "SIP+D2U", "", "sip00",
+		"", sres_type_naptr, 20, 50, "a", "SIP+D2T", "", "sip00",
+		"", sres_type_naptr, 20, 50, "a", "SIPS+D2T", "", "sip00",
+		"sip00", sres_type_a, "12.13.14.15",
+		NULL);
+*/
 void s2_dns_record(
   char const *qdomain, unsigned qtype,
   /* unsigned atype, domain, */



More information about the Freeswitch-svn mailing list