[Freeswitch-users] Subscribing to event channels with Verto

Richard A. Branham, Jr. Rich.freeswitch at Branham.us
Tue Dec 12 00:41:36 UTC 2017


I have a web application in which phone calling has been implemented using
Verto.  Calls have been working for quite a while now and we are happy
with Verto and FS.  I am now attempting to create other event channels
using Verto.

Two clients subscribe to an event channel with the following:

myVertoHandle.sendMethod('verto.subscribe', { "eventChannel":
"my-channel", "subParams": { "callID": null, "someparam":"someparam value"
} });

The subscription requests are received by the server and
subscribedChannels includes "my-channel" in both cases.

However, when I use the following to broadcast a message to the channel,
it does not seem to be sent to the clients:

myVertoHandle.broadcast("my-channel", {"someval":"val1",
"anotherval":"val2"});

The server receives the event and sends a reply to the sender, but other
clients do not receive the event.  (The reply from the server includes
message = "MCAST Data Sent".)

We are using FreeSWITCH Version 1.6.19~64bit ( 64bit).


Some questions:
--Is it possible to implement non-call communication using this approach,
or am I way off track?
--If this is the correct approach, what am I missing in the implementation?

Thanks!





More information about the FreeSWITCH-users mailing list