allow vars to be set containing vars from languages
This commit is contained in:
parent
c3dcc603b1
commit
5cd072a3fb
|
@ -1823,7 +1823,7 @@ static JSBool session_set_variable(JSContext * cx, JSObject * obj, uintN argc, j
|
||||||
|
|
||||||
var = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
|
var = JS_GetStringBytes(JS_ValueToString(cx, argv[0]));
|
||||||
val = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
|
val = JS_GetStringBytes(JS_ValueToString(cx, argv[1]));
|
||||||
switch_channel_set_variable(channel, var, val);
|
switch_channel_set_variable_var_check(channel, var, val, SWITCH_FALSE);
|
||||||
*rval = BOOLEAN_TO_JSVAL(JS_TRUE);
|
*rval = BOOLEAN_TO_JSVAL(JS_TRUE);
|
||||||
} else {
|
} else {
|
||||||
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
||||||
|
|
|
@ -623,7 +623,7 @@ SWITCH_DECLARE(void) CoreSession::setVariable(char *var, char *val)
|
||||||
{
|
{
|
||||||
this_check_void();
|
this_check_void();
|
||||||
sanity_check_noreturn;
|
sanity_check_noreturn;
|
||||||
switch_channel_set_variable(channel, var, val);
|
switch_channel_set_variable_var_check(channel, var, val, SWITCH_FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
SWITCH_DECLARE(const char *)CoreSession::getVariable(char *var)
|
SWITCH_DECLARE(const char *)CoreSession::getVariable(char *var)
|
||||||
|
|
Loading…
Reference in New Issue