Add the ability to execute connected line interception macros.

When connected line updates are received or generated in the middle
of an application call, it is now possible to execute a macro to
manipulate the connected line data. This way, phone numbers may be
manipulated to be more presentable to users, names may be changed 
for...whatever reason, or whatever else needs to be done may be.

Review: https://reviewboard.asterisk.org/r/256

AST-165



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198727 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2009-06-01 20:57:31 +00:00
parent 0fb1700522
commit 298d745fb4
12 changed files with 243 additions and 66 deletions

View File

@@ -108,6 +108,26 @@ int ast_app_getdata(struct ast_channel *c, const char *prompt, char *s, int maxl
/*! \brief Full version with audiofd and controlfd. NOTE: returns '2' on ctrlfd available, not '1' like other full functions */
int ast_app_getdata_full(struct ast_channel *c, const char *prompt, char *s, int maxlen, int timeout, int audiofd, int ctrlfd);
/*!
* \since 1.6.3
* \brief Run a macro on a channel, placing a second channel into autoservice.
*
* This is a shorthand method that makes it very easy to run a macro on any given
* channel. It is perfectly reasonable to supply a NULL autoservice_chan here in case
* there is no channel to place into autoservice. It is very important that the
* autoservice_chan parameter is not locked prior to calling ast_app_run_macro. A
* deadlock could result, otherwise.
*
* \param autoservice_chan A channel to place into autoservice while the macro is run
* \param macro_chan The channel to run the macro on
* \param macro_name The name of the macro to run
* \param macro_args The arguments to pass to the macro
* \retval 0 success
* \retval -1 failure
*/
int ast_app_run_macro(struct ast_channel *autoservice_chan, struct ast_channel
*macro_chan, const char * const macro_name, const char * const macro_args);
/*!
* \brief Set voicemail function callbacks
* \param[in] inboxcount2_func set function pointer