Generate User-Defined CEL event. 
- Author
- Steve Murphy 
Definition in file app_celgenuserevent.c.
  
  | 
        
          | static int celgenuserevent_exec | ( | struct ast_channel * | chan, |  
          |  |  | const char * | data |  
          |  | ) |  |  |  | static | 
 
Definition at line 62 of file app_celgenuserevent.c.
   63{
   64    int res = 0;
   65    char *parse;
   70    );
   71 
   73        return 0;
   74    }
   75 
   78 
   81        "extra", 
"extra", 
S_OR(
args.extra, 
""));
 
   82    if (!blob) {
   83        return res;
   84    }
   86    return res;
   87}
#define ast_strdupa(s)
duplicate a string in memory from the stack
void ast_cel_publish_event(struct ast_channel *chan, enum ast_cel_event_type event_type, struct ast_json *blob)
Publish a CEL event.
@ AST_CEL_USER_DEFINED
a user-defined event, the event name field should be set
#define AST_APP_ARG(name)
Define an application argument.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
void ast_json_unref(struct ast_json *value)
Decrease refcount on value. If refcount reaches zero, value is freed.
struct ast_json * ast_json_pack(char const *format,...)
Helper for creating complex JSON values.
#define S_OR(a, b)
returns the equivalent of logic or for strings: first one if not empty, otherwise second one.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
Abstract JSON element (object, array, string, int, ...).
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.
References args, AST_APP_ARG, ast_cel_publish_event(), AST_CEL_USER_DEFINED, AST_DECLARE_APP_ARGS, ast_json_pack(), ast_json_unref(), AST_STANDARD_APP_ARGS, ast_strdupa, ast_strlen_zero(), NULL, RAII_VAR, and S_OR.
Referenced by load_module().