that sends the message over the call like a chat message.
if you want to fire the event to event socket
change:
session.sendEvent(e);
to
e.fire();On Wed, Sep 24, 2008 at 2:40 PM, Johny Kadarisman <jkr888@gmail.com> wrote:_______________________________________________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.
Freeswitch-dev mailing list
Freeswitch-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org
--
Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400
_______________________________________________
Freeswitch-dev mailing list
Freeswitch-dev@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
http://www.freeswitch.org