diff --git a/src/mod/applications/mod_esf/mod_esf.c b/src/mod/applications/mod_esf/mod_esf.c index 431a806556..ec1c361e83 100644 --- a/src/mod/applications/mod_esf/mod_esf.c +++ b/src/mod/applications/mod_esf/mod_esf.c @@ -79,9 +79,10 @@ SWITCH_STANDARD_APP(bcast_function) char *mcast_port_str = "34567"; const char *esf_broadcast_ip = NULL, *var; switch_codec_implementation_t read_impl = {0}; - switch_core_session_get_read_impl(session, &read_impl); int mcast_ttl = 1; + switch_core_session_get_read_impl(session, &read_impl); + if (!switch_strlen_zero((char *) data)) { mydata = switch_core_session_strdup(session, data); assert(mydata != NULL);