From 11bcc60077ccc0c43d47c89e8a4b654df4270b96 Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Tue, 30 Aug 2011 09:01:07 -0500 Subject: [PATCH] FS-3530 --resolve --- src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c index c97ce1fe6e..636fcd9dba 100644 --- a/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c +++ b/src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c @@ -407,7 +407,7 @@ static switch_status_t generate_json_cdr(switch_core_session_t *session, struct json_object_object_add(j_application, "last_executed", json_object_new_string("true")); } json_object_object_add(j_application, "app_name", json_object_new_string(ap->application_name)); - json_object_object_add(j_application, "app_data", json_object_new_string(ap->application_data)); + json_object_object_add(j_application, "app_data", json_object_new_string(switch_str_nil(ap->application_data))); } if (caller_profile->caller_extension->children) { @@ -454,7 +454,7 @@ static switch_status_t generate_json_cdr(switch_core_session_t *session, struct json_object_object_add(j_application, "last_executed", json_object_new_string("true")); } json_object_object_add(j_application, "app_name", json_object_new_string(ap->application_name)); - json_object_object_add(j_application, "app_data", json_object_new_string(ap->application_data)); + json_object_object_add(j_application, "app_data", json_object_new_string(switch_str_nil(ap->application_data))); } } }