122{
  123    int res = 0;
  125    char *cbuf;
  126 
  130        return failmode;
  131    }
  132 
  134 
  135    
  138 
  141        cbuf++;
  142        ast_log(
LOG_NOTICE, 
"It is not necessary to quote the argument to the System application.\n");
 
  143    }
  144 
  146 
  147    if ((res < 0) && (
errno != ECHILD)) {
 
  150        res = failmode;
  151    } else if (res == 127) {
  154        res = failmode;
  155    } else {
  156        if (res < 0)
  157            res = 0;
  158        if (res != 0)
  160        else
  162        res = 0;
  163    }
  164 
  166 
  167    return res;
  168}
int ast_autoservice_stop(struct ast_channel *chan)
Stop servicing a channel for us...
int ast_autoservice_start(struct ast_channel *chan)
Automatically service a channel for us...
int ast_str_get_encoded_str(struct ast_str **str, int maxlen, const char *stream)
Decode a stream of encoded control or extended ASCII characters.
int ast_safe_system(const char *s)
Safely spawn an OS shell command while closing file descriptors.
int pbx_builtin_setvar_helper(struct ast_channel *chan, const char *name, const char *value)
Add a variable to the channel variable stack, removing the most recently set value for the same name.
size_t attribute_pure ast_str_strlen(const struct ast_str *buf)
Returns the current length of the string stored within buf.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
char *attribute_pure ast_str_buffer(const struct ast_str *buf)
Returns the string buffer within the ast_str buf.
struct ast_str * ast_str_thread_get(struct ast_threadstorage *ts, size_t init_len)
Retrieve a thread locally stored dynamic string.
Support for dynamic strings.
structure for queuing ARI channel variable setting