freeswitch/src/mod
Anthony Minessale 47192db741 Upgrade Dingaling to meet new googletalk spec upgrade your client if you have issues.
codecs need more work...

Expose events into javascript so you can create and fire events and 
and pick up chat events with chat-enabled clients like googletalk
EXAMPLE:

session.answer();

e = new Event("custom", "JS::Custom");
e.addHeader("subject", "cool");
e.addBody("hello this is a test");
e.fire;

while(session.ready()) {
    session.execute("sleep", "1000");
    event = session.getEvent();
    if (event) {
      str = event.serialize(); // or ("xml")
      console_log("debug", "Dump Event:\n" + str + "\n");


        e = new Event("custom", "JS::Chat");
        e.addHeader("works", "yes");
        e.addBody("you said: " + event.getBody());
        session.sendEvent(e);
      event.destroy();
    }
}





git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2323 d0543943-73ff-0310-b7d9-9358b9ac24b2
2006-08-18 01:28:50 +00:00
..
applications Update to new build system for windows. 2006-08-17 19:58:55 +00:00
asr_tts/mod_cepstral Update to new build system for windows. 2006-08-17 19:58:55 +00:00
codecs Upgrade Dingaling to meet new googletalk spec upgrade your client if you have issues. 2006-08-18 01:28:50 +00:00
dialplans Update to new build system for windows. 2006-08-17 19:58:55 +00:00
directories/mod_ldap Update to new build system for windows. 2006-08-17 19:58:55 +00:00
endpoints Upgrade Dingaling to meet new googletalk spec upgrade your client if you have issues. 2006-08-18 01:28:50 +00:00
event_handlers fix mod_event_socket destination 2006-08-17 23:47:24 +00:00
formats/mod_sndfile Update to new build system for windows. 2006-08-17 19:58:55 +00:00
languages Upgrade Dingaling to meet new googletalk spec upgrade your client if you have issues. 2006-08-18 01:28:50 +00:00
loggers Update to new build system for windows. 2006-08-17 19:58:55 +00:00
timers/mod_softtimer Update to new build system for windows. 2006-08-17 19:58:55 +00:00
xml_int/mod_xml_rpc Update to new build system for windows. 2006-08-17 19:58:55 +00:00