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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
GTALK/JABBER/PAYPAL:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:[EMAIL PROTECTED] <[EMAIL PROTECTED]>
iax:[EMAIL PROTECTED]/888
googletalk:[EMAIL PROTECTED]<[EMAIL PROTECTED]>
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

Reply via email to