freeswitch/src/mod/endpoints
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
..
mod_dingaling Upgrade Dingaling to meet new googletalk spec upgrade your client if you have issues. 2006-08-18 01:28:50 +00:00
mod_exosip fix segfault when there is a malformed registration in the db. 2006-08-18 01:23:18 +00:00
mod_iax Update to new build system for windows. 2006-08-17 19:58:55 +00:00
mod_portaudio Update to new build system for windows. 2006-08-17 19:58:55 +00:00
mod_wanpipe add more mutexed flag ops 2006-06-23 16:59:47 +00:00
mod_woomera Update to new build system for windows. 2006-08-17 19:58:55 +00:00