Asterisk - The Open Source Telephony Project GIT-master-f36a736
Functions | Variables
func_uuid.c File Reference

UUID dialplan function. More...

#include "asterisk.h"
#include "asterisk/module.h"
#include "asterisk/pbx.h"
#include "asterisk/uuid.h"
Include dependency graph for func_uuid.c:

Go to the source code of this file.

Functions

 AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY, "UUID generation dialplan function")
 
static int load_module (void)
 
static int unload_module (void)
 
static int uuid (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
 

Variables

static struct ast_custom_function uuid_function
 

Detailed Description

UUID dialplan function.

Author
Maksim Nesterov braam.nosp@m.sdev.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Definition in file func_uuid.c.

Function Documentation

◆ AST_MODULE_INFO_STANDARD_EXTENDED()

AST_MODULE_INFO_STANDARD_EXTENDED ( ASTERISK_GPL_KEY  ,
"UUID generation dialplan function"   
)

◆ load_module()

static int load_module ( void  )
static

Definition at line 70 of file func_uuid.c.

71{
73}
static struct ast_custom_function uuid_function
Definition: func_uuid.c:59
#define ast_custom_function_register(acf)
Register a custom function.
Definition: pbx.h:1558

References ast_custom_function_register, and uuid_function.

◆ unload_module()

static int unload_module ( void  )
static

Definition at line 65 of file func_uuid.c.

66{
68}
int ast_custom_function_unregister(struct ast_custom_function *acf)
Unregister a custom function.

References ast_custom_function_unregister(), and uuid_function.

◆ uuid()

static int uuid ( struct ast_channel chan,
const char *  cmd,
char *  data,
char *  buf,
size_t  len 
)
static

Variable Documentation

◆ uuid_function

struct ast_custom_function uuid_function
static
Initial value:
= {
.name = "UUID",
.read = uuid,
.read_max = AST_UUID_STR_LEN,
}
static int uuid(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len)
Definition: func_uuid.c:52

Definition at line 59 of file func_uuid.c.

Referenced by load_module(), and unload_module().