| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | protected function generateConfigProtected(): void |
||
| 21 | { |
||
| 22 | $conf = "[general]\n" . |
||
| 23 | "featuredigittimeout = {$this->generalSettings['PBXFeatureDigitTimeout']}\n" . |
||
| 24 | "atxfernoanswertimeout = {$this->generalSettings['PBXFeatureAtxferNoAnswerTimeout']}\n" . |
||
| 25 | "transferdigittimeout = {$this->generalSettings['PBXFeatureTransferDigitTimeout']}\n" . |
||
| 26 | "pickupexten = {$this->generalSettings['PBXFeaturePickupExten']}\n" . |
||
| 27 | "atxferabort = *0\n" . |
||
| 28 | "\n" . |
||
| 29 | "[featuremap]\n" . |
||
| 30 | "atxfer => {$this->generalSettings['PBXFeatureAttendedTransfer']}\n" . |
||
| 31 | "disconnect = *0\n" . |
||
| 32 | "blindxfer => {$this->generalSettings['PBXFeatureBlindTransfer']}\n"; |
||
| 33 | |||
| 34 | $additionalModules = $this->di->getShared('pbxConfModules'); |
||
| 35 | foreach ($additionalModules as $appClass) { |
||
| 36 | $conf .= $appClass->getFeatureMap(); |
||
| 37 | } |
||
| 38 | |||
| 39 | Util::fileWriteContent($this->config->path('asterisk.astetcdir') . '/features.conf', $conf); |
||
| 40 | } |
||
| 48 | } |