func_evalexten: Extension evaluation function.

This adds the EVAL_EXTEN function, which may be used to retrieve
the variable-substituted data at any extension.

ASTERISK-29486

Change-Id: Iad81019689674c9f4ac77d235f5d7234adbb1432
This commit is contained in:
Naveen Albert
2021-06-21 08:49:16 -04:00
committed by Friendly Automation
parent a107ee8616
commit 4199afd360
5 changed files with 219 additions and 27 deletions

View File

@@ -1501,6 +1501,25 @@ int ast_explicit_goto(struct ast_channel *chan, const char *context, const char
*/
int ast_async_goto_if_exists(struct ast_channel *chan, const char *context, const char *exten, int priority);
/*!
* \brief Parses a dialplan location into context, extension, priority
*
* \param chan Channel to execute on
* \param context Pointer to initial value for context.
* \param exten Pointer to initial value for exten.
* \param pri Pointer to initial value for pri
* \param ipri Pointer to integer value of priority
* \param mode Pointer to mode (or NULL if mode is not used)
* \param rest Pointer to buffer to capture rest of parsing (or NULL if not used)
*
* strsep should be used to initially populate context, exten, and pri prior
* to calling this function. All arguments are modified in place.
*
* \retval 0 success
* \retval non-zero failure
*/
int pbx_parse_location(struct ast_channel *chan, char **context, char **exten, char **pri, int *ipri, int *mode, char *rest);
struct ast_custom_function* ast_custom_function_find(const char *name);
/*!