diff --git a/simpleadmin/www/deviceinfo.html b/simpleadmin/www/deviceinfo.html
index 487c49e..aa68c5f 100644
--- a/simpleadmin/www/deviceinfo.html
+++ b/simpleadmin/www/deviceinfo.html
@@ -92,6 +92,10 @@
Firmware version |
|
+
+ | Phone Number |
+ |
+
| IMSI |
|
@@ -225,6 +229,7 @@
lanIp: "-",
wwanIpv4: "-",
wwanIpv6: "-",
+ phoneNumber: "Unknown",
simpleAdminVersion: "-",
atcmd: null,
atCommandResponse: "",
@@ -262,7 +267,7 @@
fetchATCommand() {
this.atcmd =
- 'AT+CGMI;+CGMM;+QGMR;+CIMI;+ICCID;+CGSN;+QMAP="LANIP";+QMAP="WWAN"';
+ 'AT+CGMI;+CGMM;+QGMR;+CIMI;+ICCID;+CGSN;+QMAP="LANIP";+QMAP="WWAN";+CNUM';
this.isLoading = true;
fetch(
"/cgi-bin/get_atcommand?" +
@@ -297,7 +302,13 @@
this.lanIp = lines[13].trim().split(",")[3];
this.wwanIpv4 = lines[15].trim().split(",")[4].replace(/"/g, "");
this.wwanIpv6 = lines[16].trim().split(",")[4].replace(/"/g, "");
- this.simpleAdminVersion = "SimpleAdminRev-Alpha-0.5";
+ this.phoneNumber = lines[18].trim().split(",")[1].replace(/"/g, "");
+
+ if (this.phoneNumber === "") {
+ this.phoneNumber = "Unknown";
+ }
+
+ this.simpleAdminVersion = "SimpleAdminRev-Alpha-0.6";
this.isLoading = false;
},