[Freeswitch-dev] Send event from javascript?

Johny Kadarisman jkr888 at gmail.com
Wed Sep 24 15:40:11 EDT 2008


Hi, I am trying to fire a custom event from javascript, and found following
code snippet:

=====================
var msg = "Hello, welcome to the FreeSWITCH demo application please enter
some text into the chat box";

e = new Event("custom", "message");
e.addBody(msg);
session.sendEvent(e);
======================

But, i don't seems to receive the custom event on the event_socket side. Is
this still a valid way to fire event from javascripts?
I can't seem to find any ref except above snippet on wiki or mailing list.

Best Regards,
Johny K.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20080924/538b96d1/attachment.html 


More information about the Freeswitch-dev mailing list