Merge branch 'master' of ssh://git.freeswitch.org/freeswitch
This commit is contained in:
commit
0806c38801
|
@ -2126,6 +2126,15 @@ static JSBool session_media_ready(JSContext * cx, JSObject * obj, uintN argc, js
|
|||
}
|
||||
|
||||
|
||||
static JSBool session_ring_ready(JSContext * cx, JSObject * obj, uintN argc, jsval * argv, jsval * rval)
|
||||
{
|
||||
struct js_session *jss = JS_GetPrivate(cx, obj);
|
||||
|
||||
*rval = BOOLEAN_TO_JSVAL((jss && jss->session && switch_channel_test_flag(switch_core_session_get_channel(jss->session), CF_RING_READY)) ? JS_TRUE : JS_FALSE);
|
||||
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
static JSBool session_answered(JSContext * cx, JSObject * obj, uintN argc, jsval * argv, jsval * rval)
|
||||
{
|
||||
struct js_session *jss = JS_GetPrivate(cx, obj);
|
||||
|
@ -2673,6 +2682,7 @@ static JSFunctionSpec session_methods[] = {
|
|||
{"ready", session_ready, 0},
|
||||
{"answered", session_answered, 0},
|
||||
{"mediaReady", session_media_ready, 0},
|
||||
{"ringReady", session_ring_ready, 0},
|
||||
{"waitForAnswer", session_wait_for_answer, 0},
|
||||
{"waitForMedia", session_wait_for_media, 0},
|
||||
{"getEvent", session_get_event, 0},
|
||||
|
|
|
@ -177,7 +177,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_config_parse_event(switch_event_t *ev
|
|||
|
||||
if (int_options) {
|
||||
/* Enforce validation options */
|
||||
if ((int_options->enforce_min && !(intval > int_options->min)) || (int_options->enforce_max && !(intval < int_options->max))) {
|
||||
if ((int_options->enforce_min && !(intval >= int_options->min)) || (int_options->enforce_max && !(intval <= int_options->max))) {
|
||||
/* Validation failed, set default */
|
||||
intval = (int) (intptr_t) item->defaultvalue;
|
||||
/* Then complain */
|
||||
|
|
|
@ -2,7 +2,7 @@ UNAME=`uname`
|
|||
|
||||
|
||||
NEEDED_PACKAGES_YUM='automake autoconf libtool screen gdb gcc-c++ compat-gcc-32 compat-gcc-32-c++ subversion ncurses-devel unixODBC-devel make wget'
|
||||
NEEDED_PACAKGES_APT='automake autoconf libtool screen gdb libncurses5-dev unixodbc-dev subversion emacs22-nox gcc g++ make'
|
||||
NEEDED_PACAKGES_APT='automake autoconf libtool screen gdb libncurses5-dev unixodbc-dev subversion emacs22-nox gcc g++ make libjpeg-dev'
|
||||
NEEDED_PACKAGES_PKG_ADD=''
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue