From voicemail.conf:

 

; Maximum number of messages per folder.  If not specified, a default value

; (100) is used.  Maximum value for this option is 9999.

;maxmsg=100

; Maximum length of a voicemail message in seconds

;maxmessage=180

; Maximum length of greetings in seconds

;maxgreet=60

 

I would like to configure these parameters on a per mailbox basis using Realtime voicemail.  I was successful at getting maxmsg to work by adding a field to the realtime voicemail table when using Asterisk 1.2.4:

 

CREATE TABLE `voicemail` (

 `uniqueid` bigint NOT NULL auto_increment,

 `customer_id` bigint NOT NULL default '0',

 `context` varchar(50) NOT NULL default '',

 `mailbox` bigint NOT NULL default '0',

 `password` varchar(5) NOT NULL default '0',

 `fullname` varchar(150) NOT NULL default '',

 `email` varchar(50) NOT NULL default '',

 `pager` varchar(50) NOT NULL default '',

 `tz` varchar(10) NOT NULL default 'central',

 `attach` varchar(4) NOT NULL default 'yes',

 `saycid` varchar(4) NOT NULL default 'yes',

 `dialout` varchar(10) NOT NULL default '',

 `callback` varchar(10) NOT NULL default '',

 `review` varchar(4) NOT NULL default 'no',

 `operator` varchar(4) NOT NULL default 'no',

 `envelope` varchar(4) NOT NULL default 'no',

 `sayduration` varchar(4) NOT NULL default 'no',

 `saydurationm` tinyint(4) NOT NULL default '1',

 `sendvoicemail` varchar(4) NOT NULL default 'no',

 `delete` varchar(4) NOT NULL default 'no',

 `nextaftercmd` varchar(4) NOT NULL default 'yes',

 `forcename` varchar(4) NOT NULL default 'no',

 `forcegreetings` varchar(4) NOT NULL default 'no',

 `hidefromdir` varchar(4) NOT NULL default 'yes',

 `stamp` timestamp(14) NOT NULL,

 `maxmsg` int NOT NULL default '60',

 PRIMARY KEY  (`uniqueid`),

 KEY `mailbox_context` (`mailbox`,`context`)

) TYPE=MyISAM ;

 

Is it possible to do the same for maxgreet and maxmessage?  And if not in Asterisk 1.2.4, is there a patch available?  Any help or suggestions are greatly appreciated.

 

Thanks,

Anish Basu

 

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to