forked from Mirrors/freeswitch
47192db741
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 |
||
---|---|---|
.. | ||
codec | ||
iax | ||
libdingaling | ||
libspeakup | ||
libteletone | ||
srtp | ||
win32 | ||
libresample-0.1.3.build.sh | ||
mozilla.build.sh | ||
openldap-2.3.19.build.sh | ||
portaudio.build.sh | ||
srtp.build.sh |