diff --git a/libs/esl/src/esl_oop.cpp b/libs/esl/src/esl_oop.cpp index 1b6629c066..231950f892 100644 --- a/libs/esl/src/esl_oop.cpp +++ b/libs/esl/src/esl_oop.cpp @@ -355,7 +355,7 @@ const char *ESLevent::serialize(const char *format) return ""; } - if (!strcasecmp(format, "json")) { + if (format && !strcasecmp(format, "json")) { esl_event_serialize_json(event, &serialized_string); return serialized_string; } diff --git a/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c b/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c index 42090710b1..b5121b995b 100644 --- a/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c +++ b/libs/freetdm/src/ftmod/ftmod_sangoma_boost/ftmod_sangoma_boost.c @@ -1031,6 +1031,10 @@ tryagain: ftdm_set_string(ftdmchan->caller_data.ani.digits, (char *)event->calling.digits); ftdm_set_string(ftdmchan->caller_data.dnis.digits, (char *)event->called.digits); ftdm_set_string(ftdmchan->caller_data.rdnis.digits, (char *)event->rdnis.digits); + if (event->custom_data_size) { + ftdm_set_string(ftdmchan->caller_data.raw_data, event->custom_data); + ftdmchan->caller_data.raw_data_len = event->custom_data_size; + } if (strlen(event->calling_name)) { ftdm_set_string(ftdmchan->caller_data.cid_name, (char *)event->calling_name);