• 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
名称
最后提交
最后更新
..
switch.h 正在载入提交数据...
switch_am_config.h.in 正在载入提交数据...
switch_apr.h 正在载入提交数据...
switch_buffer.h 正在载入提交数据...
switch_caller.h 正在载入提交数据...
switch_channel.h 正在载入提交数据...
switch_config.h 正在载入提交数据...
switch_console.h 正在载入提交数据...
switch_core.h 正在载入提交数据...
switch_event.h 正在载入提交数据...
switch_frame.h 正在载入提交数据...
switch_ivr.h 正在载入提交数据...
switch_loadable_module.h 正在载入提交数据...
switch_log.h 正在载入提交数据...
switch_module_interfaces.h 正在载入提交数据...
switch_platform.h 正在载入提交数据...
switch_resample.h 正在载入提交数据...
switch_rtp.h 正在载入提交数据...
switch_sqlite.h 正在载入提交数据...
switch_stun.h 正在载入提交数据...
switch_types.h 正在载入提交数据...
switch_utils.h 正在载入提交数据...
switch_version.h.in 正在载入提交数据...
switch_xml.h 正在载入提交数据...