<div dir="ltr">Got it, Thanks. will also update the wiki. <br><br>==========================<br>Content-Length: 608<br>Content-Type: text/event-plain<br><br>Event-Subclass: message<br>Event-Name: CUSTOM<br>Core-UUID: 95e16640-7ddf-11dd-adfa-133c220a79a4<br>
FreeSWITCH-Hostname: johny-ubuntu<br>FreeSWITCH-IPv4: <a href="http://192.168.150.134">192.168.150.134</a><br>FreeSWITCH-IPv6: <a href="http://127.0.0.1">127.0.0.1</a><br>Event-Date-Local: 2008-09-25%2010%3A38%3A42<br>Event-Date-GMT: Thu,%2025%20Sep%202008%2014%3A38%3A42%20GMT<br>
Event-Date-timestamp: 1222353522769992<br>Event-Calling-File: mod_spidermonkey.c<br>Event-Calling-Function: event_fire<br>Event-Calling-Line-Number: 673<br>Event-Subclass: message<br>Event-Subclass-Owner: src/switch_event.c<br>
Content-Length: 90<br><br>Hello, welcome to the FreeSWITCH demo application please enter some text into the chat box<br><br><br><br><div class="gmail_quote">On Wed, Sep 24, 2008 at 7:47 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">that sends the message over the call like a chat message.<br><br>if you want to fire the event to event socket <br>
<br>change:<br>session.sendEvent(e);<br>to<br>e.fire();<br><br><br><div class="gmail_quote"><div><div></div><div class="Wj3C7c">
On Wed, Sep 24, 2008 at 2:40 PM, Johny Kadarisman <span dir="ltr">&lt;<a href="mailto:jkr888@gmail.com" target="_blank">jkr888@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c">
<div dir="ltr">Hi, I am trying to fire a custom event from javascript, and found following code snippet:<br><br>=====================<br>var msg = &quot;Hello, welcome to the FreeSWITCH demo application please enter some text into the chat box&quot;;<br>


<br>e = new Event(&quot;custom&quot;, &quot;message&quot;);<br>e.addBody(msg);<br>session.sendEvent(e);<br>======================<br><br>But, i don&#39;t seems to receive the custom event on the event_socket side. Is this still a valid way to fire event from javascripts?<br>


I can&#39;t seem to find any ref except above snippet on wiki or mailing list.<br><br>Best Regards,<br>Johny K.<br><br></div>
<br></div></div>_______________________________________________<br>
Freeswitch-dev mailing list<br>
<a href="mailto:Freeswitch-dev@lists.freeswitch.org" target="_blank">Freeswitch-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>

<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>

IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div>
<br>_______________________________________________<br>
Freeswitch-dev mailing list<br>
<a href="mailto:Freeswitch-dev@lists.freeswitch.org">Freeswitch-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>