• Anthony Minessale's avatar
    Upgrade Dingaling to meet new googletalk spec upgrade your client if you have issues. · 47192db7
    Anthony Minessale 提交于
    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
    47192db7
名称
最后提交
最后更新
build 正在载入提交数据...
conf 正在载入提交数据...
docs 正在载入提交数据...
libs 正在载入提交数据...
mac/xcode 正在载入提交数据...
scripts 正在载入提交数据...
src 正在载入提交数据...
w32 正在载入提交数据...
.indent.pro 正在载入提交数据...
AUTHORS 正在载入提交数据...
COPYING 正在载入提交数据...
ChangeLog 正在载入提交数据...
Freeswitch.sln 正在载入提交数据...
INSTALL 正在载入提交数据...
Makefile.am 正在载入提交数据...
Makefile.in 正在载入提交数据...
NEWS 正在载入提交数据...
README 正在载入提交数据...
aclocal.m4 正在载入提交数据...
build.sh 正在载入提交数据...
configure 正在载入提交数据...
configure.in 正在载入提交数据...
generic_mod.mk 正在载入提交数据...
indent_options.sh 正在载入提交数据...
mkinstalldirs 正在载入提交数据...
modules.conf.in 正在载入提交数据...