All pastes #26312 Raw Edit

Unnamed

public text v1 · immutable
#26312 ·published 2005-10-22 20:41 UTC
rendered paste body
static JSFunctionSpec chan_methods[] = {
    {"GetVar", chan_getvar, 1},
    {"SetVar", chan_setvar, 2},
    {"StreamFile", chan_streamfile, 1},
    {"RecordFile", chan_recordfile, 1},
    {"Exec", chan_exec, 2},
    {"ExecFunc", chan_execfunc, 2},
    {"Hangup", chan_hangup, 0},
    {"Answer", chan_answer, 0},
        {"GetDigits", chan_getdigits, 2},
        {"WaitForDigit", chan_waitfordigit, 1},
        {"Wait", chan_wait, 1},
        {"Up", chan_up, 1}, 
        {"StartMusic", chan_mohstart, 1},
        {"StopMusic", chan_mohstop, 0},
        {"SetMusic", chan_setmoh, 1},
        {0}
};


static JSPropertySpec chan_props[] = {
    {"name", CHAN_NAME, JSPROP_READONLY|JSPROP_PERMANENT}, 
        {"context", CHAN_CONTEXT, JSPROP_READONLY|JSPROP_PERMANENT},
        {"exten", CHAN_EXTEN, JSPROP_READONLY|JSPROP_PERMANENT}, 
        {"priority", CHAN_PRIORITY, JSPROP_READONLY|JSPROP_PERMANENT}, 
        {"callerid_num", CHAN_CALLERID_NUM, JSPROP_READONLY|JSPROP_PERMANENT}, 
        {"callerid_name", CHAN_CALLERID_NAME, JSPROP_READONLY|JSPROP_PERMANENT},
        {"musicclass", CHAN_MUSICCLASS, JSPROP_READONLY|JSPROP_PERMANENT},
    {0}
};