Files | |
| file | func_aes.c |
| AES encryption/decryption dialplan functions. | |
| file | func_audiohookinherit.c |
| Audiohook inheritance function. | |
| file | func_base64.c |
| Use the base64 as functions. | |
| file | func_blacklist.c |
| Function to lookup the callerid number, and see if it is blacklisted. | |
| file | func_callerid.c |
| Party ID related dialplan functions (Caller-ID, Connected-line, Redirecting). | |
| file | func_cdr.c |
| Call Detail Record related dialplan functions. | |
| file | func_channel.c |
| Channel info dialplan functions. | |
| file | func_config.c |
| A function to retrieve variables from an Asterisk configuration file. | |
| file | func_curl.c |
| Curl - Load a URL. | |
| file | func_cut.c |
| CUT function. | |
| file | func_db.c |
| Functions for interaction with the Asterisk database. | |
| file | func_devstate.c |
| Manually controlled blinky lights. | |
| file | func_dialgroup.c |
| Dial group dialplan function. | |
| file | func_dialplan.c |
| Dialplan group functions check if a dialplan entry exists. | |
| file | func_enum.c |
| ENUM Functions. | |
| file | func_env.c |
| Environment related dialplan functions. | |
| file | func_extstate.c |
| Get the state of a hinted extension for dialplan control. | |
| file | func_frame_trace.c |
| Trace internal ast_frames on a channel. | |
| file | func_global.c |
| Global variable dialplan functions. | |
| file | func_groupcount.c |
| Channel group related dialplan functions. | |
| file | func_iconv.c |
| Charset conversions. | |
| file | func_jitterbuffer.c |
| Put a jitterbuffer on the read side of a channel. | |
| file | func_lock.c |
| Dialplan mutexes. | |
| file | func_logic.c |
| Conditional logic dialplan functions. | |
| file | func_math.c |
| Math related dialplan function. | |
| file | func_md5.c |
| MD5 digest related dialplan functions. | |
| file | func_module.c |
| Simple module check function. | |
| file | func_odbc.c |
| ODBC lookups. | |
| file | func_pitchshift.c |
| Pitch Shift Audio Effect. | |
| file | func_rand.c |
| Generate Random Number. | |
| file | func_realtime.c |
| REALTIME dialplan function. | |
| file | func_sha1.c |
| SHA1 digest related dialplan functions. | |
| file | func_shell.c |
| file | func_speex.c |
| Noise reduction and automatic gain control (AGC). | |
| file | func_sprintf.c |
| String manipulation dialplan functions. | |
| file | func_srv.c |
| SRV Functions. | |
| file | func_strings.c |
| String manipulation dialplan functions. | |
| file | func_sysinfo.c |
| file | func_timeout.c |
| Channel timeout related dialplan functions. | |
| file | func_uri.c |
| URI encoding / decoding. | |
| file | func_version.c |
| Return the current Version strings. | |
| file | func_vmcount.c |
| VMCOUNT dialplan function. | |
| file | func_volume.c |
| Technology independent volume control. | |
| file | res_mutestream.c |
| MUTESTREAM audiohooks. | |
Functions | |
| static int | testtime_write (struct ast_channel *chan, const char *cmd, char *var, const char *value) |
Variables | |
| static struct ast_custom_function | dundi_function |
| static int testtime_write | ( | struct ast_channel * | chan, | |
| const char * | cmd, | |||
| char * | var, | |||
| const char * | value | |||
| ) | [static] |
Definition at line 9655 of file pbx.c.
References ast_mktime(), ast_strptime(), pbx_builtin_setvar_helper(), pbx_checkcondition(), and S_OR.
09656 { 09657 struct ast_tm tm; 09658 struct timeval tv; 09659 char *remainder, result[30], timezone[80]; 09660 09661 /* Turn off testing? */ 09662 if (!pbx_checkcondition(value)) { 09663 pbx_builtin_setvar_helper(chan, "TESTTIME", NULL); 09664 return 0; 09665 } 09666 09667 /* Parse specified time */ 09668 if (!(remainder = ast_strptime(value, "%Y/%m/%d %H:%M:%S", &tm))) { 09669 return -1; 09670 } 09671 sscanf(remainder, "%79s", timezone); 09672 tv = ast_mktime(&tm, S_OR(timezone, NULL)); 09673 09674 snprintf(result, sizeof(result), "%ld", (long) tv.tv_sec); 09675 pbx_builtin_setvar_helper(chan, "__TESTTIME", result); 09676 return 0; 09677 }
struct ast_custom_function dundi_function [static] |
Initial value:
{
.name = "DUNDILOOKUP",
.read = dundifunc_read,
}
Definition at line 3953 of file pbx_dundi.c.
1.5.6