diff options
author | Mark Spencer <markster@digium.com> | 2002-11-10 03:20:35 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2002-11-10 03:20:35 +0000 |
commit | ea59b1b791aab2618afe7396959a9491440494e4 (patch) | |
tree | cc0d349dacedf5a6d05f555b788bc1e9735595d4 /include | |
parent | b1551be44b97557147818d4565d3320bc6ce6774 (diff) |
Version 0.3.0 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@544 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/pbx.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h index 15b353297..8e18bbc97 100755 --- a/include/asterisk/pbx.h +++ b/include/asterisk/pbx.h @@ -49,6 +49,8 @@ struct ast_switch { int (*canmatch)(struct ast_channel *chan, char *context, char *exten, int priority, char *callerid, char *data); int (*exec)(struct ast_channel *chan, char *context, char *exten, int priority, char *callerid, int newstack, char *data); + + int (*matchmore)(struct ast_channel *chan, char *context, char *exten, int priority, char *callerid, char *data); }; //! Register an alternative switch @@ -213,6 +215,20 @@ int ast_exists_extension(struct ast_channel *c, char *context, char *exten, int */ int ast_canmatch_extension(struct ast_channel *c, char *context, char *exten, int priority, char *callerid); +//! Looks to see if adding anything to this extension might match something. (exists ^ canmatch) +/*! + \param c not really important + \param context context to serach within + \param exten extension to check + \param priority priority of extension path + \param callerid callerid of extension being searched for + If "exten" *could match* a valid extension in this context with + some more digits, return non-zero. Does NOT return non-zero if this is + an exact-match only. Basically, when this returns 0, no matter + what you add to exten, it's not going to be a valid extension anymore +*/ +int ast_matchmore_extension(struct ast_channel *c, char *context, char *exten, int priority, char *callerid); + //! Determine if a given extension matches a given pattern (in NXX format) /*! * \param pattern pattern to match @@ -381,11 +397,11 @@ int ast_async_goto_by_name(char *chan, char *context, char *exten, int priority) /* Synchronously or asynchronously make an outbound call and send it to a particular extension */ -int ast_pbx_outgoing_exten(char *type, int format, void *data, int timeout, char *context, char *exten, int priority, int *reason, int sync); +int ast_pbx_outgoing_exten(char *type, int format, void *data, int timeout, char *context, char *exten, int priority, int *reason, int sync, char *callerid, char *variable ); /* Synchronously or asynchronously make an outbound call and send it to a particular application with given extension */ -int ast_pbx_outgoing_app(char *type, int format, void *data, int timeout, char *app, void *appdata, int *reason, int sync); +int ast_pbx_outgoing_app(char *type, int format, void *data, int timeout, char *app, char *appdata, int *reason, int sync, char *callerid); /* Functions for returning values from structures */ char *ast_get_context_name(struct ast_context *con); @@ -418,6 +434,7 @@ struct ast_include *ast_walk_context_includes(struct ast_context *con, struct ast_ignorepat *ast_walk_context_ignorepats(struct ast_context *con, struct ast_ignorepat *ip); struct ast_sw *ast_walk_context_switches(struct ast_context *con, struct ast_sw *sw); + #if defined(__cplusplus) || defined(c_plusplus) } #endif |