Thu Apr 16 06:48:24 2015

Asterisk developer's documentation


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.
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.


Detailed Description

Stack applications callback functions.

Definition at line 165 of file app.h.


Field Documentation

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

Add missing context/exten to Gosub application argument string.

Parameters:
chan Channel to obtain context/exten.
args Gosub application argument string.
Fills in the optional context and exten from the given channel.

Return values:
New-args Gosub argument string on success. Must be freed.
NULL on error.

Referenced by ast_app_expand_sub_args().

void* module

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

Definition at line 170 of file app.h.

Referenced by ast_app_exec_sub(), ast_app_expand_sub_args(), and load_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.

Note:
Absolutely _NO_ channel locks should be held before calling this function.
Parameters:
chan Channel to execute subroutine on.
args Gosub application argument string.
ignore_hangup TRUE if a hangup does not stop execution of the routine.
Return values:
0 success
-1 on error

Referenced by ast_app_exec_sub(), and load_module().


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

Generated on Thu Apr 16 06:48:24 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6