Asterisk - The Open Source Telephony Project  18.5.0
Data Fields
ast_app_stack_funcs Struct Reference

Stack applications callback functions. More...

#include <app.h>

Data Fields

const char *(* expand_sub_args )(struct ast_channel *chan, const char *args)
 Add missing context/exten to Gosub application argument string. More...
 
void * module
 
int(* run_sub )(struct ast_channel *chan, const char *args, int ignore_hangup)
 Callback for the routine to run a subroutine on a channel. More...
 

Detailed Description

Stack applications callback functions.

Examples:
/usr/src/asterisk-18.5.0/main/app.c.

Definition at line 190 of file include/asterisk/app.h.

Field Documentation

◆ expand_sub_args

const char*(* expand_sub_args) (struct ast_channel *chan, const char *args)

Add missing context/exten to Gosub application argument string.

Parameters
chanChannel to obtain context/exten.
argsGosub application argument string.

Fills in the optional context and exten from the given channel.

Return values
New-argsGosub argument string on success. Must be freed.
NULLon error.
Examples:
/usr/src/asterisk-18.5.0/main/app.c.

Definition at line 223 of file include/asterisk/app.h.

Referenced by ast_app_expand_sub_args().

◆ module

void* module

Module reference pointer so the module will stick around while a callback is active.

Examples:
/usr/src/asterisk-18.5.0/main/app.c.

Definition at line 195 of file include/asterisk/app.h.

Referenced by ast_app_exec_sub(), ast_app_expand_sub_args(), and load_module().

◆ run_sub

int(* run_sub) (struct ast_channel *chan, const char *args, int ignore_hangup)

Callback for the routine to run a subroutine on a channel.

Note
Absolutely NO channel locks should be held before calling this function.
Parameters
chanChannel to execute subroutine on.
argsGosub application argument string.
ignore_hangupTRUE if a hangup does not stop execution of the routine.
Return values
0success
-1on error
Examples:
/usr/src/asterisk-18.5.0/main/app.c.

Definition at line 209 of file include/asterisk/app.h.

Referenced by ast_app_exec_sub(), and load_module().


The documentation for this struct was generated from the following file: