mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-24 05:38:11 +00:00
Add REPLACE & PASSTHRU functions, overhaul of func_strings, fix API docs for the ast_get_encoded_* functions.
* Add REPLACE function, which searches a given variable for a set of characters and replaces each with a given character. * Add PASSTHRU function, which passes a literal string back, like a NoOp for functions. Intent is to be able to specify a literal string to another function that takes a variable name as an argument. * Let the array manipulation functions work with dialplan functions, in addition to variables. This allows the array manipulation functions to modify ASTDB and ODBC backends, assuming the func_odbc configuration has both read and write functions. (closes issue #15223) Reported by: ajohnson Patches: 20091112__issue15223.diff.txt uploaded by tilghman (license 14) Tested by: lmadsen, tilghman git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@230994 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
9
CHANGES
9
CHANGES
@@ -146,8 +146,13 @@ Dialplan Functions
|
||||
mode=multirow. If rowlimit is set, then additional rows may be retrieved
|
||||
from the same query by using the name of the function which retrieved the
|
||||
first row as an argument to ODBC_FETCH().
|
||||
* Added JABBER_RECEIVE, which permits receiving XMPP messages from the
|
||||
dialplan. This function returns the content of the received message.
|
||||
* Added JABBER_RECEIVE, which permits receiving XMPP messages from the
|
||||
dialplan. This function returns the content of the received message.
|
||||
* Added REPLACE, which searches a given variable name for a set of characters,
|
||||
then either replaces them with a single character or deletes them.
|
||||
* Added PASSTHRU, which literally passes the same argument back as its return
|
||||
value. The intent is to be able to use a literal string argument to
|
||||
functions that currently require a variable name as an argument.
|
||||
|
||||
Dialplan Variables
|
||||
------------------
|
||||
|
||||
Reference in New Issue
Block a user