]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
try to deliver locally to verto too
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 11 Aug 2016 02:57:42 +0000 (21:57 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 11 Aug 2016 02:57:42 +0000 (21:57 -0500)
src/mod/endpoints/mod_verto/mod_verto.c

index 8316620cc2357561fc4a23c1755e448757649b88..03361aaffa05b86d70aa95b6b6353764c750fa8a 100644 (file)
@@ -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))) {