Revision
16967
Author
cseket
Date
2010-03-11 06:58:25 -0600 (Thu, 11 Mar 2010)

Log Message

upgrade to json-c-0.9 for testing (MODEVENT-62)

Modified Paths

Diff

Modified: freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/Makefile (16966 => 16967)


--- freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/Makefile	2010-03-11 03:02:47 UTC (rev 16966)
+++ freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/Makefile	2010-03-11 12:58:25 UTC (rev 16967)
@@ -1,4 +1,4 @@
-json-c=json-c-0.8
+json-c=json-c-0.9
 BASE=../../../..
 WANT_CURL=yes
 
@@ -13,7 +13,7 @@
 include $(BASE)/build/modmake.rules
 
 $(JSON_DIR):
-	$(GETLIB) $(json-c).tar.gz
+	$(GETLIB) http://oss.metaparadigm.com/json-c/ $(json-c).tar.gz
 
 $(JSON_BUILDDIR)/Makefile: $(JSON_DIR)
 	mkdir -p $(JSON_BUILDDIR)

Modified: freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c (16966 => 16967)


--- freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c	2010-03-11 03:02:47 UTC (rev 16966)
+++ freeswitch/branches/cseket/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c	2010-03-11 12:58:25 UTC (rev 16967)
@@ -598,7 +598,7 @@
 static switch_status_t my_on_reporting(switch_core_session_t *session)
 {
 	struct json_object *json_cdr = NULL;
-	char *json_text = NULL;
+	const char *json_text = NULL;
 	char *path = NULL;
 	char *curl_json_text = NULL;
 	const char *logdir = NULL;
@@ -700,7 +700,7 @@
 
 		} else {
 			headers = curl_slist_append(headers, "Content-Type: application/x-www-form-plaintext");
-			curl_json_text = json_text;
+			curl_json_text = (char *)json_text;
 		}