Changeset 13805
- Timestamp:
- 03/14/12 14:33:02 (1 year ago)
- Files:
-
- freepbx/branches/2.10/libfreepbx.install.php (modified) (1 diff)
- modules/branches/2.10/core/functions.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
freepbx/branches/2.10/libfreepbx.install.php
r13623 r13805 2043 2043 $set['sortorder'] = 12; 2044 2044 $freepbx_conf->define_conf_setting('DEVICE_STRONG_SECRETS',$set); 2045 2046 // DEVICE_REMOVE_MAILBOX 2047 $set['value'] = false; 2048 $set['options'] = ''; 2049 $set['name'] = 'Remove mailbox Setting when no Voicemail'; 2050 $set['description'] = 'If set to true, any fixed device associated with a user that has no voicemail configured will have the "mailbox=" setting removed in the generated technology configuration file such as sip_additional.conf. This will not affect the value in the GUI.'; 2051 $set['readonly'] = 0; 2052 $set['type'] = CONF_TYPE_BOOL; 2053 $set['emptyok'] = 0; 2054 $set['sortorder'] = 15; 2055 $freepbx_conf->define_conf_setting('DEVICE_REMOVE_MAILBOX',$set); 2045 2056 2046 2057 // DEVICE_SIP_CANREINVITE modules/branches/2.10/core/functions.inc.php
r13804 r13805 33 33 // map the actual vmcontext and user devicename if the device is fixed 34 34 private function map_dev_user($account, $keyword, $data) { 35 global $amp_conf; 35 36 36 37 if (!isset($this->dev_user_map)) { … … 45 46 case 'mailbox': 46 47 if ((empty($this->dev_user_map[$account]['vmcontext']) || $this->dev_user_map[$account]['vmcontext'] == 'novm') 47 && strtolower($data) == "$account" . "@device" ) {48 && strtolower($data) == "$account" . "@device" && $amp_conf['DEVICE_REMOVE_MAILBOX']) { 48 49 // they have no vm so don't put a mailbox=line 49 50 return "";
