#include "asterisk.h"#include <stdlib.h>#include <unistd.h>#include <string.h>#include <stdio.h>#include <asterisk/lock.h>#include <asterisk/file.h>#include <asterisk/logger.h>#include <asterisk/channel.h>#include <asterisk/pbx.h>#include <asterisk/module.h>

Go to the source code of this file.
Functions | |
| AST_MODULE_INFO (ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS,"Application for crashing Asterisk with a segmentation fault",.load=load_module,.unload=unload_module,) | |
| static int | load_module (void) |
| static int | segfault_exec (struct ast_channel *chan, void *data) |
| static int | unload_module (void) |
Variables | |
| static char * | app = "Segfault" |
| static char * | descrip |
| static char * | synopsis = "This application will crash Asterisk with a segmentation fault." |
| AST_MODULE_INFO | ( | ASTERISK_GPL_KEY | , | |
| AST_MODFLAG_GLOBAL_SYMBOLS | , | |||
| "Application for crashing Asterisk with a segmentation fault" | , | |||
| . | load = load_module, |
|||
| . | unload = unload_module | |||
| ) |
| static int load_module | ( | void | ) | [static] |
Definition at line 47 of file app_segfault.c.
References app, ast_register_application(), descrip, segfault_exec(), and synopsis.
00048 { 00049 return ast_register_application(app, segfault_exec, synopsis, descrip); 00050 }
| static int segfault_exec | ( | struct ast_channel * | chan, | |
| void * | data | |||
| ) | [static] |
| static int unload_module | ( | void | ) | [static] |
Definition at line 42 of file app_segfault.c.
References app, and ast_unregister_application().
00043 { 00044 return ast_unregister_application(app); 00045 }
char* app = "Segfault" [static] |
Definition at line 29 of file app_segfault.c.
char* descrip [static] |
Initial value:
" Segfault(): Crash with a segfault. Never returns nufin.\n"
Definition at line 33 of file app_segfault.c.
char* synopsis = "This application will crash Asterisk with a segmentation fault." [static] |
Definition at line 31 of file app_segfault.c.
1.5.5