Browse code

added changes to implement the From number drop-down list, the available numbers and default number fields and the debug logging checkbox, etc.

DoubleBastionAdmin authored on 08/01/2024 19:33:20
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,70 @@
1
+<?php
2
+/**
3
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
+ *
5
+ * @author Double Bastion LLC
6
+ *
7
+ * @license GNU AGPL version 3 or any later version
8
+ *
9
+ * This program is free software; you can redistribute it and/or
10
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
+ * License as published by the Free Software Foundation; either
12
+ * version 3 of the License, or any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public
20
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+
24
+declare(strict_types=1);
25
+
26
+namespace OCA\SIPTripPhone\Controller;
27
+
28
+use OCP\IRequest;
29
+use OCP\AppFramework\Controller;
30
+use OCA\SIPTripPhone\Service\SphoneService;
31
+
32
+
33
+class SphoneController extends Controller {
34
+
35
+    private $service;
36
+    private $userId;
37
+
38
+    public function __construct($appName, IRequest $request, SphoneService $service, $userId) {
39
+        parent::__construct($appName, $request);
40
+        $this->service = $service;
41
+        $this->userId = $userId;
42
+    }
43
+
44
+
45
+    /**
46
+     * @NoAdminRequired
47
+     */
48
+    public function getsettings($userId) {
49
+
50
+           return $this->service->getsettings($this->userId);
51
+    }
52
+
53
+    /**
54
+     * @NoAdminRequired
55
+     */
56
+    public function getsippass($userId) {
57
+
58
+           return $this->service->getsippass($this->userId);
59
+    }
60
+
61
+   /**
62
+    * @NoAdminRequired
63
+    */
64
+    public function updatesettings(string $userId, string $pdisplayname, string $sipusername, string $sipuserpassword, string $stphwssurl, string $siprealm, string $stunserver, int $tracesipmsg, string $voicenumbers, string $defaultvoicenumber) {
65
+
66
+          return $this->service->updatesettings($this->userId, $pdisplayname, $sipusername, $sipuserpassword, $stphwssurl, $siprealm, $stunserver, $tracesipmsg, $voicenumbers, $defaultvoicenumber);
67
+
68
+    }
69
+
70
+}
Browse code

removed appinfo/info.xml appinfo/signature.json CHANGELOG.txt README.md js/settings.js js/launchphone.js css/style.css phone/scripts/app.js templates/settings.php l10n/en_GB.js l10n/en_GB.json phone/css/ctxSip.css phone/index.html lib/Controller/SphoneController.php lib/Service/SphoneService.php phone/sounds/dtmf.mp3 phone/sounds/incoming.mp3 phone/sounds/outgoing.mp3 img/sip_trip_phone_screenshot.png img/sip_trip_phone_transfer_call.png img/sip_trip_phone_making_calls.png img/sip_trip_phone_initial_screen.png img/sip_trip_phone_dialpad.png

DoubleBastionAdmin authored on 08/01/2024 19:00:48
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,70 +0,0 @@
1
-<?php
2
-/**
3
- * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
- *
5
- * @author Double Bastion LLC
6
- *
7
- * @license GNU AGPL version 3 or any later version
8
- *
9
- * This program is free software; you can redistribute it and/or
10
- * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
- * License as published by the Free Software Foundation; either
12
- * version 3 of the License, or any later version.
13
- *
14
- * This program is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
- * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
- *
19
- * You should have received a copy of the GNU Affero General Public
20
- * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
- *
22
- */
23
-
24
-declare(strict_types=1);
25
-
26
-namespace OCA\SIPTripPhone\Controller;
27
-
28
-use OCP\IRequest;
29
-use OCP\AppFramework\Controller;
30
-use OCA\SIPTripPhone\Service\SphoneService;
31
-
32
-
33
-class SphoneController extends Controller {
34
-
35
-    private $service;
36
-    private $userId;
37
-
38
-    public function __construct($appName, IRequest $request, SphoneService $service, $userId) {
39
-        parent::__construct($appName, $request);
40
-        $this->service = $service;
41
-        $this->userId = $userId;
42
-    }
43
-
44
-
45
-    /**
46
-     * @NoAdminRequired
47
-     */
48
-    public function getsettings($userId) {
49
-
50
-           return $this->service->getsettings($this->userId);
51
-    }
52
-
53
-    /**
54
-     * @NoAdminRequired
55
-     */
56
-    public function getsippass($userId) {
57
-
58
-           return $this->service->getsippass($this->userId);
59
-    }
60
-
61
-   /**
62
-    * @NoAdminRequired
63
-    */
64
-    public function updatesettings(string $userId, string $pdisplayname, string $sipusername, string $sipuserpassword, string $stphwssurl, string $siprealm, string $stunserver) {
65
-
66
-          return $this->service->updatesettings($this->userId, $pdisplayname, $sipusername, $sipuserpassword, $stphwssurl, $siprealm, $stunserver);
67
-
68
-    }
69
-
70
-}
Browse code

Created repository.

DoubleBastionAdmin authored on 02/03/2022 00:26:46
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,70 @@
1
+<?php
2
+/**
3
+ * @copyright 2021 Double Bastion LLC <www.doublebastion.com>
4
+ *
5
+ * @author Double Bastion LLC
6
+ *
7
+ * @license GNU AGPL version 3 or any later version
8
+ *
9
+ * This program is free software; you can redistribute it and/or
10
+ * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
11
+ * License as published by the Free Software Foundation; either
12
+ * version 3 of the License, or any later version.
13
+ *
14
+ * This program is distributed in the hope that it will be useful,
15
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
+ * GNU AFFERO GENERAL PUBLIC LICENSE for more details.
18
+ *
19
+ * You should have received a copy of the GNU Affero General Public
20
+ * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
+ *
22
+ */
23
+
24
+declare(strict_types=1);
25
+
26
+namespace OCA\SIPTripPhone\Controller;
27
+
28
+use OCP\IRequest;
29
+use OCP\AppFramework\Controller;
30
+use OCA\SIPTripPhone\Service\SphoneService;
31
+
32
+
33
+class SphoneController extends Controller {
34
+
35
+    private $service;
36
+    private $userId;
37
+
38
+    public function __construct($appName, IRequest $request, SphoneService $service, $userId) {
39
+        parent::__construct($appName, $request);
40
+        $this->service = $service;
41
+        $this->userId = $userId;
42
+    }
43
+
44
+
45
+    /**
46
+     * @NoAdminRequired
47
+     */
48
+    public function getsettings($userId) {
49
+
50
+           return $this->service->getsettings($this->userId);
51
+    }
52
+
53
+    /**
54
+     * @NoAdminRequired
55
+     */
56
+    public function getsippass($userId) {
57
+
58
+           return $this->service->getsippass($this->userId);
59
+    }
60
+
61
+   /**
62
+    * @NoAdminRequired
63
+    */
64
+    public function updatesettings(string $userId, string $pdisplayname, string $sipusername, string $sipuserpassword, string $stphwssurl, string $siprealm, string $stunserver) {
65
+
66
+          return $this->service->updatesettings($this->userId, $pdisplayname, $sipusername, $sipuserpassword, $stphwssurl, $siprealm, $stunserver);
67
+
68
+    }
69
+
70
+}