[Freeswitch-svn] [commit] r9321 - freeswitch/trunk/src/mod/xml_int/mod_xml_cdr

Freeswitch SVN anthm at freeswitch.org
Tue Aug 19 10:52:45 EDT 2008


Author: anthm
Date: Tue Aug 19 10:52:44 2008
New Revision: 9321

Modified:
   freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c

Log:
enable https on mod_xml_cdr

Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c	(original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c	Tue Aug 19 10:52:44 2008
@@ -141,6 +141,11 @@
 			headers = curl_slist_append(headers, "Content-Type: application/x-www-form-plaintext");
 		}
 
+		if (!strncasecmp(globals.url, "https", 5)) {
+			curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0);
+			curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0);
+		}
+
 		if (!(curl_xml_text = switch_mprintf("cdr=%s", xml_text))) {
 			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Memory Error!\n");
 			goto error;



More information about the Freeswitch-svn mailing list