From c79441d84ef5132596e20e0d9d1469aacc24e844 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 10 Aug 2016 21:57:42 -0500 Subject: [PATCH] try to deliver locally to verto too --- src/mod/endpoints/mod_verto/mod_verto.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 8316620cc2..03361aaffa 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -161,7 +161,7 @@ static void close_socket(ws_socket_t *sock) } } - +void verto_broadcast(const char *event_channel, cJSON *json, const char *key, switch_event_channel_id_t id); static int ssl_init = 0; static int verto_init_ssl(verto_profile_t *profile) @@ -3819,8 +3819,10 @@ static switch_bool_t verto__broadcast_func(const char *method, cJSON *params, js } jevent = cJSON_Duplicate(params, 1); + verto_broadcast(event_channel, jevent, modname, globals.event_channel_id); switch_event_channel_broadcast(event_channel, &jevent, modname, globals.event_channel_id); + if (jsock->profile->mcast_pub.sock != ws_sock_invalid) { if ((json_text = cJSON_PrintUnformatted(params))) {