]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3530 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Tue, 30 Aug 2011 14:01:07 +0000 (09:01 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Tue, 30 Aug 2011 14:01:07 +0000 (09:01 -0500)
src/mod/event_handlers/mod_json_cdr/mod_json_cdr.c

index c97ce1fe6e06449c360de73f019461b6fc6c4355..636fcd9dba3f10388ed75ebcd460f355ef9ca8ee 100644 (file)
@@ -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)));
                                        }
                                }
                        }