mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-26 06:26:41 +00:00 
			
		
		
		
	Presence support has been added. This is accomplished by allowing for presence hints in addition to device state hints. A dialplan function called PRESENCE_STATE has been added to allow for setting and reading presence. Presence can be transmitted to Digium phones using custom XML elements in a PIDF presence document. Voicemail has new APIs that allow for moving, removing, forwarding, and playing messages. Messages have had a new unique message ID added to them so that the APIs will work reliably. The state of a voicemail mailbox can be obtained using an API that allows one to get a snapshot of the mailbox. A voicemail Dialplan App called VoiceMailPlayMsg has been added to be able to play back a specific message. Configuration hooks have been added. Configuration hooks allow for a piece of code to be executed when a specific configuration file is loaded by a specific module. This is useful for modules that are dependent on the configuration of other modules. chan_sip now has a public method that allows for a custom SIP INFO request to be sent mid-dialog. Digium phones use this in order to display progress bars when files are played. Messaging support has been expanded a bit. The main visible difference is the addition of an AMI action MessageSend. Finally, a ParkingLots manager action has been added in order to get a list of parking lots. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368435 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			32 lines
		
	
	
		
			953 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			953 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
| -- While this does not use the realtime backend, for brevity, we include this table here, as well.
 | |
| DROP TABLE IF EXISTS voicemail_messages;
 | |
| CREATE TABLE voicemail_messages (
 | |
| 	-- Logical directory
 | |
| 	dir CHAR(255),
 | |
| 	-- Message number within the logical directory
 | |
| 	msgnum INT(4),
 | |
| 	-- Dialplan context
 | |
| 	context CHAR(80),
 | |
| 	-- Dialplan context, if Voicemail was invoked from a macro
 | |
| 	macrocontext CHAR(80),
 | |
| 	-- CallerID, when the message was left
 | |
| 	callerid CHAR(80),
 | |
| 	-- Date when the message was left, in Unixtime
 | |
| 	origtime INT(11),
 | |
| 	-- Length of the message, in seconds
 | |
| 	duration INT(11),
 | |
| 	-- The recording itself
 | |
| 	recording BLOB,
 | |
| 	-- Text flags indicating urgency of the message
 | |
| 	flag CHAR(30),
 | |
| 	-- Value of channel variable VM_CATEGORY, if set
 | |
| 	category CHAR(30),
 | |
| 	-- Owner of the mailbox
 | |
| 	mailboxuser CHAR(30),
 | |
| 	-- Context of the owner of the mailbox
 | |
| 	mailboxcontext CHAR(30),
 | |
| 	-- Unique ID of the message,
 | |
| 	msg_id char(40),
 | |
| 	PRIMARY KEY (dir, msgnum)
 | |
| );
 |