mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-14 13:58:38 +00:00
Backport fix for 11520--for some reason I didn't do this back in February when I patched for trunk.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@121992 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -411,8 +411,16 @@ struct ast_app_option {
|
||||
*/
|
||||
int ast_app_parse_options(const struct ast_app_option *options, struct ast_flags *flags, char **args, char *optstr);
|
||||
|
||||
/*! \brief Present a dialtone and collect a certain length extension.
|
||||
\return Returns 1 on valid extension entered, -1 on hangup, or 0 on invalid extension.
|
||||
/*! \brief Given a list of options array, return an option string based on passed flags
|
||||
\param options The array of possible options declared with AST_APP_OPTIONS
|
||||
\param flags The flags of the options that you wish to populate the buffer with
|
||||
\param buf The buffer to fill with the string of options
|
||||
\param len The maximum length of buf
|
||||
*/
|
||||
void ast_app_options2str(const struct ast_app_option *options, struct ast_flags *flags, char *buf, size_t len);
|
||||
|
||||
/*! \brief Present a dialtone and collect a certain length extension.
|
||||
\return Returns 1 on valid extension entered, -1 on hangup, or 0 on invalid extension.
|
||||
\note Note that if 'collect' holds digits already, new digits will be appended, so be sure it's initialized properly */
|
||||
int ast_app_dtget(struct ast_channel *chan, const char *context, char *collect, size_t size, int maxlen, int timeout);
|
||||
|
||||
|
||||
@@ -26,11 +26,22 @@
|
||||
|
||||
#include "asterisk/channel.h"
|
||||
|
||||
#define MAX_DIAL_FEATURE_OPTIONS 30
|
||||
|
||||
extern const struct ast_datastore_info dialed_interface_info;
|
||||
|
||||
extern const struct ast_datastore_info dial_features_info;
|
||||
|
||||
struct ast_dialed_interface {
|
||||
AST_LIST_ENTRY(ast_dialed_interface) list;
|
||||
char interface[1];
|
||||
};
|
||||
|
||||
struct ast_dial_features {
|
||||
struct ast_flags features_caller;
|
||||
struct ast_flags features_callee;
|
||||
char options[MAX_DIAL_FEATURE_OPTIONS];
|
||||
int is_caller;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user