From: Anthony Minessale Date: Thu, 11 Aug 2016 02:57:42 +0000 (-0500) Subject: try to deliver locally to verto too X-Git-Tag: v1.6.10~1^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c79441d84ef5132596e20e0d9d1469aacc24e844;p=thirdparty%2Ffreeswitch.git try to deliver locally to verto too --- 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))) {