" ADSIProg(script): This application programs an ADSI Phone with the given\n"
"script. If nothing is specified, the default script (asterisk.adsi) is used.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
struct adsi_event {
static char db_family[128] = {'\0'};
static char time_stamp_format[128] = {"%a %b %d, %Y @ %H:%M:%S %Z"};
-
/* Misc variables */
-
static char event_file[14] = "/event-XXXXXX";
-
-
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
/*
" LONGGREETING-<%d voiceDuration>-<%d greeting>\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
#define STATE_IN_WORD 1
" Defaults to 0 - no limit - wait for the user press the '#' key.\n"
;
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int auth_exec(struct ast_channel *chan, void *data)
static char *nocdr_app = "NoCDR";
static char *nocdr_synopsis = "Tell Asterisk to not maintain a CDR for the current call";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int nocdr_exec(struct ast_channel *chan, void *data)
" s - Consider the channel unavailable if the channel is in use at all\n"
" j - Support jumping to priority n+101 if no channel is available\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int chanavail_exec(struct ast_channel *chan, void *data)
AST_APP_OPTION_ARG('r', OPTION_RECORD, OPT_ARG_RECORD),
});
-STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
struct chanspy_translation_helper {
" CPLAYBACKSTATUS - This variable contains the status of the attempt as a text\n"
" string, one of: SUCCESS | USERSTOPPED | ERROR\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int is_on_phonepad(char key)
static char *tdesc = "Load external URL";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
struct MemoryStruct {
static char *d_synopsis = "Delete a key from the database";
static char *dt_synopsis = "Delete a family or keytree from the database";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int deltree_exec(struct ast_channel *chan, void *data)
};
LOCAL_USER_DECL;
-STANDARD_LOCAL_USER;
static void hanguptree(struct dial_localuser *outgoing, struct ast_channel *exception)
{
static char *desc = " Dictate([<base_dir>[|<filename>]])\n"
"Start dictation machine using optional base dir for files.\n";
-
-STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
typedef enum {
"that is calling the specified extension. If no context is specified, the current\n"
"context will be used.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int pickup_exec(struct ast_channel *chan, void *data)
/* How many digits to read in */
#define NUMDIGITS 3
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static char *convert(char *lastname)
"exists in the context, it will be used. Also, if you set the 5th argument\n"
"to 'NOANSWER', the DISA application will not answer initially.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static void play_dialtone(struct ast_channel *chan, char *mailbox)
"displayed when the verbose level is currently set to that number\n"
"or greater. \n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int ast_serialize_showchan(struct ast_channel *c, char *buf, size_t size)
"the calling channel back to itself. If the DTMF digit '#' is received, the\n"
"application will exit.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int echo_exec(struct ast_channel *chan, void *data)
"see the application System. Returns whatever value the\n"
"app returns or a non-zero value if the app cannot be found.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int exec_exec(struct ast_channel *chan, void *data)
};
LOCAL_USER_DECL;
-STANDARD_LOCAL_USER;
struct gen_state {
struct ivr_localuser *u;
"play it to the user, allowing any given interrupt keys to immediately terminate and return\n"
"the value, or 'any' to allow any number back (useful in dialplan)\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static char *socket_receive_file_to_buff(int fd,int *size)
"people who want to perform transfers and such via AGI and is generally\n"
"quite useless oths application will only work on Zap trunks.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static inline int zt_wait_event(int fd)
"If the option 'v' is passed all cdr variables will be passed along also.\n"
"";
-
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static void ast_cdr_fork(struct ast_channel *chan)
" GetCPEID: Obtains and displays ADSI CPE ID and other information in order\n"
"to properly setup zapata.conf for on-hook operations.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int cpeid_setstatus(struct ast_channel *chan, char *stuff[], int voice)
" HASVMSTATUS The result of the new voicemail check returned as a text string as follows\n"
" <# of messages in the folder, 0 for NONE>\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int hasvoicemail_internal(char *context, char *box, char *folder)
"(available separately). A configuration file must be supplied\n"
"for ices (see examples/asterisk-ices.conf). \n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int icesencode(char *filename, int fd)
" SENDIMAGESTATUS The status is the result of the attempt as a text string, one of\n"
" OK | NOSUPPORT \n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int sendimage_exec(struct ast_channel *chan, void *data)
{ NULL },
});
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int skel_exec(struct ast_channel *chan, void *data)
" FOUND | NOTFOUND\n"
"Example: exten => 1234,1,LookupBlacklist()\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int
"name delivery, or if you want to change the names on some incoming\n"
"calls.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int
static char *if_synopsis = "Conditional Macro Implementation";
static char *exit_synopsis = "Exit From Macro";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int macro_exec(struct ast_channel *chan, void *data)
#define CONFIG_FILE_NAME "meetme.conf"
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
struct ast_conference {
static char *descrip =
"Milliwatt(): Generate a Constant 1000Hz tone at 0dbm (mu-law)\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static char digital_milliwatt[] = {0x1e,0x0b,0x0b,0x1e,0x9e,0x8b,0x8b,0x9e} ;
"The variable MIXMONITOR_FILENAME will contain the filename used to record.\n"
"";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static const char *mixmonitor_spy_type = "MixMonitor";
"(defaults to 80). Additionally, if MORSETONE is set, it will use that tone\n"
"(in Hz). The tone default is 800.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static char *morsecode[] = {
"which typically would be a filename or a URL. User can exit by pressing\n"
"any key on the dialpad, or by hanging up.";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int mp3play(char *filename, int fd)
" NBScat: Executes nbscat to listen to the local NBS stream.\n"
"User can exit by pressing any key\n.";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int NBScatplay(int fd)
" OSPFINISHSTATUS The status of the OSP Finish attempt as a text string, one of\n"
" SUCCESS | FAILED \n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int str2cause(char *cause)
" d - full duplex audio\n"
" q - quiet, do not play beep to caller\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
enum {
"call was placed. Use with the Local channel to allow the dialplan to make\n"
"use of this information.\n";
-
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int parkandannounce_exec(struct ast_channel *chan, void *data)
" SUCCESS | FAILED\n"
;
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int playback_exec(struct ast_channel *chan, void *data)
" SUCCESS | FAILED \n"
;
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
-
-
static int privacy_exec (struct ast_channel *chan, void *data)
{
int res=0;
struct member *member;
};
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
struct queue_ent {
" probability := INTEGER in the range 1 to 100\n"
"DEPRECATED: Use GotoIf($[${RAND(1,100)} > <number>]?<label>)\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int random_exec(struct ast_channel *chan, void *data)
" timeout -- if greater than 0, that value will override the default timeout.\n\n"
"Read should disconnect if the function fails or errors out.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
#define ast_next_data(instr,ptr,delim) if((ptr=strchr(instr,delim))) { *(ptr) = '\0' ; ptr++;}
" File - The name of the file to read.\n"
" Length - Maximum number of characters to capture.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
-
static int readfile_exec(struct ast_channel *chan, void *data)
{
int res=0;
"updated to <newval>. REALTIMECOUNT will be set with the number of rows\n"
"updated or -1 if an error occurs.\n";
-STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static int cli_load_realtime(int fd, int argc, char **argv)
"If the user should hangup during a recording, all data will be lost and the\n"
"application will teminate. \n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int record_exec(struct ast_channel *chan, void *data)
struct ast_config *cfg;
-STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
#define MSWAIT 200
" format: a format the time is to be said in. See voicemail.conf.\n"
" defaults to \"ABdY 'digits/at' IMp\"\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int sayunixtime_exec(struct ast_channel *chan, void *data)
" The application will either pass the assigned digits or terminate if it\n"
" encounters an error.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int senddtmf_exec(struct ast_channel *chan, void *data)
"'j' -- jump to n+101 priority if the channel doesn't support\n"
" text transport\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int sendtext_exec(struct ast_channel *chan, void *data)
static char *synopsis2 = "Set CallerID Presentation";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static char *descrip2 =
static char *appendcdruserfield_app = "AppendCDRUserField";
static char *appendcdruserfield_synopsis = "Append to the CDR user field";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int action_setcdruserfield(struct mansession *s, struct message *m)
static char *synopsis = "Set ISDN Transfer Capability";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static struct { int val; char *name; } transcaps[] = {
['c'] = { OPTION_C, 2 }
});
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int app_exec(struct ast_channel *chan, void *data)
static unsigned char wavea[80];
#endif
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
/* SMS 7 bit character mapping to UCS-2 */
static char *app = "SoftHangup";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int softhangup_exec(struct ast_channel *chan, void *data)
"StackPop()\n"
" Removes last label on the stack, discarding it.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int pop_exec(struct ast_channel *chan, void *data)
"instance, then the channel will be setup to continue at that\n"
"priority level. Otherwise, System will terminate.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int system_exec_helper(struct ast_channel *chan, void *data, int failmode)
"if available. If unspecified, sil, min, and max default to 1000, 100, and\n"
"infinity respectively.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int background_detect_exec(struct ast_channel *chan, void *data)
#include "asterisk/pbx.h"
#include "asterisk/utils.h"
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static char *tdesc = "Interface Test Application";
#include "asterisk/options.h"
#include "asterisk/app.h"
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static const char *tdesc = "Transfer";
" SendURL only returns 0 if the URL was sent correctly or if\n"
" the channel does not support HTML transport, and -1 otherwise.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int sendurl_exec(struct ast_channel *chan, void *data)
"If the body is not specified, only Event, Channel, and Uniqueid fields\n"
"will be present. Returns 0.";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int userevent_exec(struct ast_channel *chan, void *data)
"Log(<level>|<message>)\n"
" level must be one of ERROR, WARNING, NOTICE, DEBUG, VERBOSE, DTMF\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int verbose_exec(struct ast_channel *chan, void *data)
static int adsiver = 1;
static char emaildateformat[32] = "%A, %B %d, %Y at %r";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static void populate_defaults(struct ast_vm_user *vmu)
static char *app = "WaitForRing";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int waitforring_exec(struct ast_channel *chan, void *data)
" - WaitForSilence(500|2) will wait for 1/2 second of silence, twice\n"
" - WaitForSilence(1000) will wait for 1 second of silence, once\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int do_waiting(struct ast_channel *chan, int maxsilence) {
static char *tdesc = "While Loops and Conditional Execution";
-
-
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int execif_exec(struct ast_channel *chan, void *data) {
"is no callerid information available. Options should be separated by |\n"
"characters\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int zapateller_exec(struct ast_channel *chan, void *data)
"-1 when caller user hangs up and is independent of the\n"
"state of the channel being monitored.";
-
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
-
#define CONF_SIZE 160
static int careful_write(int fd, unsigned char *data, int len)
"Your pppd must be patched to be zaptel aware. Arguments should be\n"
"separated by | characters.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
#define PPP_MAX_ARGS 32
"a convenient way. Use '#' to select the next channel and use '*' to exit\n"
"Limit scanning to a channel GROUP by setting the option group argument.\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
-
#define CONF_SIZE 160
static struct ast_channel *get_zap_channel_locked(int num) {
{ "agent", "logoff", NULL }, agent_logoff_cmd,
"Sets an agent offline", agent_logoff_usage, complete_agent_logoff_cmd };
-STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
/*!
static char *tdesc = "Cut out information from a string";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
struct sortable_keys {
static char *synopsis = "Syntax: ENUMLOOKUP(number[|Method-type[|options[|record#[|zone-suffix]]]])\n";
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int function_enum(struct ast_channel *chan, char *cmd, char *data,
#include "asterisk/utils.h"
#include "asterisk/app.h"
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static int acf_rand_exec(struct ast_channel *chan, char *cmd,
static struct ast_cli_entry cli_queryeid =
{ { "dundi", "query", NULL }, dundi_do_query, "Query a DUNDi EID", query_usage };
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
static struct dundi_transaction *create_transaction(struct dundi_peer *p)
static int agidebug = 0;
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
-
#define TONE_BLOCK_SIZE 200
/* Max time to connect to an AGI remote host */
#include "asterisk/utils.h"
static char *tdesc = "ODBC Configuration";
-STANDARD_LOCAL_USER;
LOCAL_USER_DECL;
static pthread_t parking_thread;
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
char *ast_parking_ext(void)
return ODBC_SUCCESS;
}
-STANDARD_LOCAL_USER;
-
LOCAL_USER_DECL;
int unload_module(void)