|
static void | __init_result_buf (void) |
|
static void | __init_tmp_buf (void) |
|
static void | __reg_module (void) |
|
static void | __unreg_module (void) |
|
static int | acf_strftime (struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t buflen) |
|
static int | acf_strptime (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen) |
|
static int | array (struct ast_channel *chan, const char *cmd, char *var, const char *value) |
|
static void | clearvar_prefix (struct ast_channel *chan, const char *prefix) |
|
static int | csv_quote (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
|
static int | exec_clearhash (struct ast_channel *chan, const char *data) |
|
static int | filter (struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) |
|
static int | function_eval (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen) |
|
static int | function_eval2 (struct ast_channel *chan, const char *cmd, char *data, struct ast_str **buf, ssize_t buflen) |
|
static int | function_fieldnum (struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) |
|
static int | function_fieldnum_helper (struct ast_channel *chan, const char *cmd, char *parse, char *buf, struct ast_str **sbuf, ssize_t len) |
|
static int | function_fieldnum_str (struct ast_channel *chan, const char *cmd, char *parse, struct ast_str **buf, ssize_t len) |
|
static int | function_fieldqty (struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) |
|
static int | function_fieldqty_helper (struct ast_channel *chan, const char *cmd, char *parse, char *buf, struct ast_str **sbuf, ssize_t len) |
|
static int | function_fieldqty_str (struct ast_channel *chan, const char *cmd, char *parse, struct ast_str **buf, ssize_t len) |
|
static int | hash_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
|
static int | hash_write (struct ast_channel *chan, const char *cmd, char *var, const char *value) |
|
static int | hashkeys_read (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
|
static int | hashkeys_read2 (struct ast_channel *chan, const char *cmd, char *data, struct ast_str **buf, ssize_t len) |
|
static int | keypadhash (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen) |
|
static int | len (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen) |
|
static int | listfilter (struct ast_channel *chan, const char *cmd, char *parse, char *buf, struct ast_str **bufstr, ssize_t len) |
|
static int | listfilter_read (struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) |
|
static int | listfilter_read2 (struct ast_channel *chan, const char *cmd, char *parse, struct ast_str **buf, ssize_t len) |
|
static int | load_module (void) |
|
static int | passthru (struct ast_channel *chan, const char *cmd, char *data, struct ast_str **buf, ssize_t len) |
|
static int | quote (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) |
|
static int | regex (struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len) |
|
static int | replace (struct ast_channel *chan, const char *cmd, char *data, struct ast_str **buf, ssize_t len) |
|
static int | shift_pop (struct ast_channel *chan, const char *cmd, char *data, struct ast_str **buf, ssize_t len) |
|
static int | string_tolower (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen) |
|
static int | string_tolower2 (struct ast_channel *chan, const char *cmd, char *data, struct ast_str **buf, ssize_t buflen) |
|
static int | string_toupper (struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen) |
|
static int | string_toupper2 (struct ast_channel *chan, const char *cmd, char *data, struct ast_str **buf, ssize_t buflen) |
|
static int | unload_module (void) |
|
static int | unshift_push (struct ast_channel *chan, const char *cmd, char *data, const char *new_value) |
|
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "String handling dialplan functions" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "ac1f6a56484a8820659555499174e588" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_DEFAULT, } |
|
static char * | app_clearhash = "ClearHash" |
|
static struct ast_custom_function | array_function |
|
static struct ast_module_info * | ast_module_info = &__mod_info |
|
static struct ast_custom_function | csv_quote_function |
|
static struct ast_custom_function | eval_function |
|
static struct ast_custom_function | fieldnum_function |
|
static struct ast_custom_function | fieldqty_function |
|
static struct ast_custom_function | filter_function |
|
static struct ast_custom_function | hash_function |
|
static struct ast_custom_function | hashkeys_function |
|
static struct ast_custom_function | keypadhash_function |
|
static struct ast_custom_function | len_function |
|
static struct ast_custom_function | listfilter_function |
|
static struct ast_custom_function | passthru_function |
|
static struct ast_custom_function | pop_function |
|
static struct ast_custom_function | push_function |
|
static struct ast_custom_function | quote_function |
|
static struct ast_custom_function | regex_function |
|
static struct ast_custom_function | replace_function |
|
static struct ast_threadstorage | result_buf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_result_buf , .custom_init = NULL , } |
|
static struct ast_custom_function | shift_function |
|
static struct ast_custom_function | strftime_function |
|
static struct ast_custom_function | strptime_function |
|
static struct ast_threadstorage | tmp_buf = { .once = PTHREAD_ONCE_INIT , .key_init = __init_tmp_buf , .custom_init = NULL , } |
|
static struct ast_custom_function | tolower_function |
|
static struct ast_custom_function | toupper_function |
|
static struct ast_custom_function | unshift_function |
|
String manipulation dialplan functions.
- Author
- Tilghman Lesher
-
Anothony Minessale II
Definition in file func_strings.c.
static int len |
( |
struct ast_channel * |
chan, |
|
|
const char * |
cmd, |
|
|
char * |
data, |
|
|
char * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
|
static |
Definition at line 1212 of file func_strings.c.
Referenced by __analog_ss_thread(), __ast_cli_register(), __ast_dsp_call_progress(), __ast_dsp_silence_noise(), __ast_str_helper(), __get_header(), __rtp_recvfrom(), __rtp_sendto(), _parse(), acf_escape(), add_sdp(), adsi_careful_send(), ael_token_subst(), aji_io_recv(), aji_recv(), aji_send_header(), aji_send_raw(), aji_start_sasl(), alsa_write(), amdf_pitch(), analog_ss_thread(), anti_injection(), aoc_parse_ie(), append_interface(), append_var_and_value_to_filter(), ast_agi_register_multiple(), ast_agi_unregister_multiple(), ast_app_group_set_channel(), ast_app_options2str64(), ast_callerid_vmwi_generate(), ast_cdr_appenduserfield(), ast_cli_complete(), ast_cli_register_multiple(), ast_cli_unregister_multiple(), ast_codec_get_len(), ast_complete_source_filename(), ast_dsp_noise(), ast_dsp_process(), ast_dsp_silence(), ast_event_cb(), ast_format_str_reduce(), ast_frdup(), ast_getformatname_multiple(), ast_http_send(), ast_http_uri_link(), ast_join(), ast_mkdir(), ast_pri_pack_hex_string(), ast_read_image(), ast_rtcp_write_rr(), ast_rtcp_write_sr(), ast_rtp_read(), ast_say_number_full_ka(), ast_smoother_read(), ast_srtp_protect(), ast_srtp_unprotect(), ast_str_buffer(), ast_str_substitute_variables_full(), ast_tdd_gen_ecdisa(), ast_translate(), ast_udptl_write(), ast_xml_escape(), ast_xmldoc_printable(), auth_exec(), authenticate(), build_device(), build_facility(), build_route(), builtin_automixmonitor(), builtin_automonitor(), calc_energy(), callerid_feed(), callerid_feed_jp(), callerid_generate(), CB_ADD_LEN(), cleaned_basedn(), clearvar_prefix(), cli_console_sendtext(), complete_agent_logoff_cmd(), complete_confno(), complete_dialplan_add_extension(), complete_dialplan_add_ignorepat(), complete_dialplan_add_include(), complete_dialplan_remove_extension(), complete_dialplan_remove_ignorepat(), complete_dialplan_remove_include(), complete_meetmecmd_list(), complete_meetmecmd_mute_kick(), complete_peer_helper(), complete_trans_path_choice(), complete_userno(), conf_play(), config_jitterbuffer(), cops_getmsg(), copy(), create_video_frame(), dahdi_sendtext(), dahdi_setoption(), decode_length(), decode_open_type(), devstate_write(), dialgroup_refreshdb(), dictate_exec(), do_pktccops(), do_tone(), dump_prefs(), dump_raw(), dump_string(), dundi_encrypt(), dundi_parse_ies(), dundi_send(), enc_ie_facility(), encode_length(), evt_event_deliver_cb(), expand_gosub_args(), expr2_token_subst(), ext_cmp_exten_strlen(), fax_generator_generate(), fbuf_append(), fetch_response_reader(), ffmpeg_decode(), find_by_part(), flip_buf_bits(), fsk_serial(), gen_tone(), gen_tones(), get_body(), get_ip_and_port_from_sdp(), get_msg_text(), get_sdp(), get_sdp_iterate(), get_to_address(), gsm_write(), gsmtolin_framein(), h261_encap(), h263_encap(), h263_read(), h263_write(), h263p_encap(), h264_read(), h264_write(), handle_cli_core_show_translation(), handle_cli_devstate_change(), handle_commandmatchesarray(), handle_incoming(), handle_message(), handle_output(), handle_response(), handle_show_sysinfo(), handle_subscribe(), help1(), iax_parse_ies(), iax_str2flags(), iconv_read(), jpeg_read_image(), launch_monitor_thread(), listener(), local_call(), lpc10tolin_framein(), lws2sws(), make_tone_burst(), memcpy_decrypt(), memcpy_encrypt(), message_template_parse_emailbody(), method_match(), mgcp_postrequest(), mgcp_ss(), mgcpsock_read(), milliwatt_generate(), misdn_jb_empty(), misdn_jb_fill(), misdn_lib_tx2misdn_frm(), misdn_read(), misdn_tx_jitter(), monmp3thread(), mpeg4_encap(), my_dahdi_write(), newpvt(), parse_ie(), ParseBookmark(), pbx_substitute_variables_helper_full(), phone_write_buf(), playtones_generator(), plc_fillin(), plc_rx(), pri_dchannel(), pri_ss_thread(), process_sdp(), read_credentials(), readfile_exec(), red_t140_to_red(), reschedule_precache(), run_agi(), save_history(), scan_thread(), schedule_delivery(), set_egress_subscription(), sig_pri_digit_begin(), sig_pri_set_subaddress(), sip_addheader(), sip_show_channel(), sip_show_history(), sip_tcptls_write(), skinny_ss(), sms_messagetx(), socket_process_meta(), socket_read(), static_callback(), strnncpy(), tdd_feed(), term_filter_escapes(), tonepair_generator(), transfer_exec(), try_firmware(), udptl_build_packet(), unistim_sp(), unquote(), wav_write(), xmldoc_get_syntax_fun(), and xmldoc_setpostbr().
1217 length = strlen(data);
1219 snprintf(buf, buflen,
"%d", length);