diff options
Diffstat (limited to 'res/stasis')
-rw-r--r-- | res/stasis/app.c | 4 | ||||
-rw-r--r-- | res/stasis/control.c | 28 |
2 files changed, 1 insertions, 31 deletions
diff --git a/res/stasis/app.c b/res/stasis/app.c index 745969615..245936734 100644 --- a/res/stasis/app.c +++ b/res/stasis/app.c @@ -1073,9 +1073,7 @@ static int unsubscribe(struct stasis_app *app, const char *kind, const char *id, forwards = ao2_find(app->forwards, id, OBJ_SEARCH_KEY | OBJ_NOLOCK); if (!forwards) { - ast_log(LOG_WARNING, - "App '%s' not subscribed to %s '%s'\n", - app->name, kind, id); + ast_debug(3, "App '%s' not subscribed to %s '%s'\n", app->name, kind, id); return -1; } forwards->interested--; diff --git a/res/stasis/control.c b/res/stasis/control.c index 0a9669d3b..e53d93c06 100644 --- a/res/stasis/control.c +++ b/res/stasis/control.c @@ -565,34 +565,6 @@ int stasis_app_control_unmute(struct stasis_app_control *control, unsigned int d return 0; } -char *stasis_app_control_get_channel_var(struct stasis_app_control *control, const char *variable) -{ - RAII_VAR(struct ast_str *, tmp, ast_str_create(32), ast_free); - - /* You may be tempted to lock the channel you're about to read from. You - * would be wrong. Some dialplan functions put the channel into - * autoservice, which deadlocks if the channel is already locked. - * ast_str_retrieve_variable() does its own locking, and the dialplan - * functions need to as well. We should be fine without the lock. - */ - - if (!tmp) { - return NULL; - } - - if (variable[strlen(variable) - 1] == ')') { - if (ast_func_read2(control->channel, variable, &tmp, 0)) { - return NULL; - } - } else { - if (!ast_str_retrieve_variable(&tmp, 0, control->channel, NULL, variable)) { - return NULL; - } - } - - return ast_strdup(ast_str_buffer(tmp)); -} - int stasis_app_control_set_channel_var(struct stasis_app_control *control, const char *variable, const char *value) { return pbx_builtin_setvar_helper(control->channel, variable, value); |