[asterisk-commits] mjordan: branch mjordan/voicemail_refactor_11_10_19 r345775 - /team/mjordan/v...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Nov 21 13:31:19 CST 2011


Author: mjordan
Date: Mon Nov 21 13:31:17 2011
New Revision: 345775

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=345775
Log: (empty)

Modified:
    team/mjordan/voicemail_refactor_11_10_19/include/asterisk/message_storage.h

Modified: team/mjordan/voicemail_refactor_11_10_19/include/asterisk/message_storage.h
URL: http://svnview.digium.com/svn/asterisk/team/mjordan/voicemail_refactor_11_10_19/include/asterisk/message_storage.h?view=diff&rev=345775&r1=345774&r2=345775
==============================================================================
--- team/mjordan/voicemail_refactor_11_10_19/include/asterisk/message_storage.h (original)
+++ team/mjordan/voicemail_refactor_11_10_19/include/asterisk/message_storage.h Mon Nov 21 13:31:17 2011
@@ -7,6 +7,93 @@
 
 #ifndef MESSAGE_STORAGE_H_
 #define MESSAGE_STORAGE_H_
+
+
+struct vm_config {
+	double volgain;
+	unsigned int max_silence;
+	unsigned int max_deleted_messages;
+	unsigned int max_messages;
+	unsigned int min_say_duration;
+	unsigned int min_message_duration;
+	unsigned int max_message_duration;
+	unsigned int max_message_greeting_length;
+	unsigned int skip_ms;
+	unsigned int min_password_length;
+	unsigned int silence_threshold;
+	unsigned int poll_frequency;
+	unsigned int max_logins;
+	enum vm_passwordlocation password_location;
+	char attach_format[MAX_FORMAT_LENGTH];
+	char format[MAX_FORMAT_LENGTH];
+	char dial_out_context[AST_MAX_CONTEXT];
+	char callback_context[AST_MAX_CONTEXT];
+	char op_exit_context[AST_MAX_CONTEXT];
+	char default_users_context[AST_MAX_CONTEXT];
+	char cid_internal_contexts[MAX_NUM_CID_CONTEXTS][AST_MAX_CONTEXT];
+	char extern_notify_cmd[PATH_MAX];
+	char extern_pass_cmd[PATH_MAX];
+	char extern_pass_check_cmd[PATH_MAX];
+	char directory_intro_path[PATH_MAX];
+	struct vm_sound_config * sound_config;
+	struct vm_listen_control_config * listen_control_config;
+	struct vm_smdi_config * smdi_config;
+	struct vm_adsi_config * adsi_config;
+	struct ast_flags globalflags;
+	struct ast_flags passwordflags;
+	AST_DECLARE_STRING_FIELDS(
+		AST_STRING_FIELD(mail_command);
+		AST_STRING_FIELD(email_from_string);
+		AST_STRING_FIELD(email_server);
+		AST_STRING_FIELD(email_date_format);
+		AST_STRING_FIELD(email_subject);
+		AST_STRING_FIELD(email_body);
+		AST_STRING_FIELD(pager_from_string);
+		AST_STRING_FIELD(pager_date_format);
+		AST_STRING_FIELD(pager_subject);
+		AST_STRING_FIELD(pager_body);
+		AST_STRING_FIELD(zonetag);
+		AST_STRING_FIELD(locale);
+		AST_STRING_FIELD(charset);
+	);
+};
+
+
+struct ast_msg_user {
+	char context[AST_MAX_CONTEXT];		/*!< Mailbox context */
+	char mailbox[AST_MAX_EXTENSION];	/*!< Mailbox id, unique within a context */
+	char language[MAX_LANGUAGE];		/*!< Config: Language setting */
+	char callback[AST_MAX_CONTEXT];				 /*!< Callback context */
+	char dialout[AST_MAX_CONTEXT];				 /*!< Dialout context */
+	char uniqueid[80];					/*!< Unique integer identifier TODO: make this an integer? */
+	char exit[AST_MAX_CONTEXT];					 /*!< Context to exit out to */
+	char attachfmt[MAX_FORMAT_LENGTH];	/*!< Attachment format */
+	int min_say_duration;				/*!< Minimum number of seconds for say */
+	int min_message_duration;			/*!< Minimum number of seconds per message for this mailbox */
+	int max_messages;					/*!< Maximum number of msgs per folder for this mailbox */
+	int max_deleted_messages;			/*!< Maximum number of deleted msgs saved for this mailbox */
+	int max_message_duration;			/*!< Maximum number of seconds per message for this mailbox */
+	int hash_key;
+	enum vm_passwordlocation password_location;           /*!< Storage location of the password */
+	double volgain;						/*!< Volume gain for voicemails sent via email */
+	struct ast_flags flags;				/*!< VM_ flags */
+	AST_DECLARE_STRING_FIELDS(
+		AST_STRING_FIELD(fullname);
+		AST_STRING_FIELD(password);
+		AST_STRING_FIELD(email_address);
+		AST_STRING_FIELD(email_subject);
+		AST_STRING_FIELD(email_body);
+		AST_STRING_FIELD(pager_address);
+		AST_STRING_FIELD(pager_subject);
+		AST_STRING_FIELD(pager_body);
+		AST_STRING_FIELD(email_from_address);
+		AST_STRING_FIELD(locale);
+		AST_STRING_FIELD(mail_command);
+		AST_STRING_FIELD(zonetag);
+		AST_STRING_FIELD(timezone);
+	);
+};
+
 
 struct ast_msg_storage_tech {
 	const char * const name;




More information about the asterisk-commits mailing list