mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
Merge "cdr: Fix 'core show channel' CDR variable truncation."
This commit is contained in:
@@ -3096,13 +3096,9 @@ int ast_cdr_serialize_variables(const char *channel_name, struct ast_str **buf,
|
|||||||
struct cdr_object *it_cdr;
|
struct cdr_object *it_cdr;
|
||||||
struct ast_var_t *variable;
|
struct ast_var_t *variable;
|
||||||
const char *var;
|
const char *var;
|
||||||
RAII_VAR(char *, workspace, ast_malloc(256), ast_free);
|
char workspace[256];
|
||||||
int total = 0, x = 0, i;
|
int total = 0, x = 0, i;
|
||||||
|
|
||||||
if (!workspace) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!cdr) {
|
if (!cdr) {
|
||||||
RAII_VAR(struct module_config *, mod_cfg,
|
RAII_VAR(struct module_config *, mod_cfg,
|
||||||
ao2_global_obj_ref(module_configs), ao2_cleanup);
|
ao2_global_obj_ref(module_configs), ao2_cleanup);
|
||||||
|
|||||||
Reference in New Issue
Block a user