[Freeswitch-users] Writing Custom Verto Events to Websocket

Gregor Nanger gregor at infomedia.si
Thu Jun 11 10:34:38 UTC 2020


Hi!

If you would like to inform verto user from fs server, I would suggest
using chat:

https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools%3A+chat

I am using it to send my system messages from my code logic to verto users
and it works like a charm.



On Thu, 11 Jun 2020 at 01:45, Michael Smeltzer <mwsmeltzer at gmail.com> wrote:

> Hi all,
>
> Was trying to figure out how to send custom verto events to the browser
> via websocket and I found this old thread, which pretty much lays out what
> I was trying to do - but unfortunately, no responses on this.
>
>
> https://lists.freeswitch.org/pipermail/freeswitch-users/2015-May/112995.html
>
> Essentially wondering if there was a way to send custom events using
> mod_verto's WRITE functionality, similar to below, and if there was any
> guidance on how to do this? I tried creating an event and firing it but it
> doesn't seem to appear in the websocket and it seems that mod_verto is
> writing these events uniquely.
>
> 2015-05-12 05:18:04.470641 [ALERT] mod_verto.c:604 WRITE192.168.10.101:48165 [{
>         "jsonrpc":      "2.0",
>         "id":   8,
>         "result":       {
>                 "message":      "CALL CREATED",
>                 "callID":       "be3e35a0-ec02-5ca7-cbf8-68a8c1cd2c4c",
>                 "sessid":       "48a502b3-740a-5b3d-21a4-bf9244bafb90"
>         }
> }]
>
> Thanks,
> Mike
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com



-- 
Gregor Nanger

*CTO*
t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485
• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia
• www.infomedia.si
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200611/7fcd5c94/attachment.html>


More information about the FreeSWITCH-users mailing list