Skip to content

Commit

Permalink
Restored Incoming/Outgoing Map Telephony tab
Browse files Browse the repository at this point in the history
  • Loading branch information
seud0nym committed Aug 22, 2020
1 parent 2bf2ace commit 9709333
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ So, I set out to enable whatever hidden features were included with the firmware
- Phone Book (Set up contacts)
- Phone Numbers (Define SIP profiles)
- Service (Configure VoIP services)
- Incoming/Outgoing Map (Assign phone numbers to handsets)
- Call Log
- The TCP Dump tab is enabled on the **Diagnostics** screen
- The **IP Extras** card is enabled to:
Expand Down Expand Up @@ -49,7 +50,7 @@ Some hidden screens included on the device are not enabled, mainly because they
- If a file called *ipv4-DNS-Servers* is found in the directory from which the script is invoked, the contents will be added to the list of DNS Servers on the **Local Network** screen. (See below)
- If run on the 18.1.c.0514 firmware, it will also add a button to access the pre-release version of DumaOS, but only if DumaOS has been enabled. To add this button, execute the [`dumaos-beta`](https://github.com/seud0nym/tch-gui-unhide/tree/master/utilities) script with the `-on` parameter to enable DumaOS before running the `tch-gui-unhide-DJA0231-18.1.c.0514` script.

*PLEASE NOTE: Previous versions of the script (release 2020.08.03 and before) also automatically enabled the beta version of DumaOS on the DJA0231. To get this functionality, run the [`dumaos-beta`](https://github.com/seud0nym/tch-gui-unhide/tree/master/utilities) utility script (see below).*
*PLEASE NOTE: Previous versions of the script (release 2020.08.03 and before) also automatically enabled the beta version of DumaOS on the DJA0231. To get this functionality, run the [`dumaos-beta`](https://github.com/seud0nym/tch-gui-unhide/tree/master/utilities) utility script.*

#### ipv4-DNS-Servers file
The contents of this file are simply the hostname and IP address, which are separated by a space. Multiple servers may be added, each on its own line.
Expand All @@ -76,6 +77,7 @@ Follow the instructions at https://hack-technicolor.rtfd.io

The scripts have only be tested against the specified hardware and firmware version denoted in the script name. If you are not running the firmware version for which the script was written, you should upgrade. (https://hack-technicolor.readthedocs.io/en/latest/Repository)

#### Harden your root access
It is recommended that you apply whatever hardening (such as the [`de-telstra`](https://github.com/seud0nym/tch-gui-unhide/tree/master/utilities) script) and other configuration changes you want to make *before* executing the script, as features are enabled or disabled depending on the current configuration of the target device.

### Second, download and extract the scripts
Expand Down
12 changes: 10 additions & 2 deletions VERSION.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
2020-08-22
==========
- Added Broadband modal from https://github.com/Ansuel/tch-nginx-gui/tree/master/decompressed/gui_file/www to allow VLAN tagging + dis/enable WAN Sensing and set connection method
- Improved detection of added files to more easily restore state
- Included serial number in configuration export file name (for those with multiple devices of the same variant) and browser tabs
- Moved hostname and VoLTE backup from tch-gui-unhide to de-telstra (so that tch-gui-unhide only makes GUI changes and de-telstra makes once-off config changes)
- Added option to include serial number in host name (for those with multiple devices of the same variant)
- Restored Incoming/Outgoing Map Telephony tab

2020.08.16
==========
- Removed SIP Device, Incoming/Outgoing Map, and Statistics Telephony tabs (only applicable to FW 17.2.0188
and earlier, according to https://hack-technicolor.readthedocs.io/en/stable/Unlock/#voip-setup)
- Removed SIP Device, Incoming/Outgoing Map, and Statistics Telephony tabs (only applicable to FW 17.2.0188 and earlier, according to https://hack-technicolor.readthedocs.io/en/stable/Unlock/#voip-setup)

2020.08.08
==========
Expand Down
6 changes: 4 additions & 2 deletions tch-gui-unhide-DJA0231-18.1.c.0462
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
# Based on various pages https://hack-technicolor.readthedocs.io/en/stable/

TARGET_VARIANT=""
Expand Down Expand Up @@ -132,6 +133,7 @@ echo "[$SCRIPT]: . log-connections-modal.lp"
echo "[$SCRIPT]: . log-routingtable-modal.lp"
echo "[$SCRIPT]: . lte-sms.lp"
echo "[$SCRIPT]: . mmpbx-global-modal.lp"
echo "[$SCRIPT]: . mmpbx-inoutgoingmap-modal.lp"
echo "[$SCRIPT]: . mmpbx-profile-modal.lp"
echo "[$SCRIPT]: . nat-alg-helper-modal.lp"
echo "[$SCRIPT]: . system-modal.lp"
Expand Down Expand Up @@ -228,6 +230,7 @@ for f in $(ls \
/www/docroot/modals/log-routingtable-modal.lp \
/www/docroot/modals/lte-sms.lp \
/www/docroot/modals/mmpbx-global-modal.lp \
/www/docroot/modals/mmpbx-inoutgoingmap-modal.lp \
/www/docroot/modals/mmpbx-profile-modal.lp \
/www/docroot/modals/nat-alg-helper-modal.lp \
/www/docroot/modals/system-modal.lp \
Expand Down Expand Up @@ -257,7 +260,6 @@ do
fi
done
# These were incorrectly enabled in release 2020.08.08 and earlier
uci -q delete web.mmpbxinoutgoingmapmodal
uci -q delete web.mmpbxsipdevicemodal
uci -q delete web.mmpbxstatisticsmodal
uci commit web
Expand Down Expand Up @@ -320,7 +322,7 @@ sed -e 's/if role ~= "admin"/if role == "admin"/' -i /www/docroot/modals/mmpbx-s
echo [$SCRIPT]: Show the hidden Telephony tabs and fix default tab
sed \
-e 's/-- {"mmpbx-contacts/ {"mmpbx-contacts/' \
-e 's/-- {"mmpbx-service-modal.lp", T"Service"},/ {"mmpbx-service-modal.lp", T"Service"},/' \
-e 's/-- {"mmpbx-service-modal.lp", T"Service"},/ {"mmpbx-service-modal.lp", T"Service"},\n {"mmpbx-inoutgoingmap-modal.lp", T"In\/Outgoing Map"},/' \
-i /www/snippets/tabs-voice.lp
# Default telephony tab is DECT!!!
# - Set test to always be false (emission_state can only be 0 or 1, so 9 should always be false)
Expand Down
6 changes: 4 additions & 2 deletions tch-gui-unhide-DJA0231-18.1.c.0514
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
# Based on various pages https://hack-technicolor.readthedocs.io/en/stable/

TARGET_VARIANT=""
Expand Down Expand Up @@ -132,6 +133,7 @@ echo "[$SCRIPT]: . log-connections-modal.lp"
echo "[$SCRIPT]: . log-routingtable-modal.lp"
echo "[$SCRIPT]: . lte-sms.lp"
echo "[$SCRIPT]: . mmpbx-global-modal.lp"
echo "[$SCRIPT]: . mmpbx-inoutgoingmap-modal.lp"
echo "[$SCRIPT]: . mmpbx-profile-modal.lp"
echo "[$SCRIPT]: . nat-alg-helper-modal.lp"
echo "[$SCRIPT]: . system-modal.lp"
Expand Down Expand Up @@ -228,6 +230,7 @@ for f in $(ls \
/www/docroot/modals/log-routingtable-modal.lp \
/www/docroot/modals/lte-sms.lp \
/www/docroot/modals/mmpbx-global-modal.lp \
/www/docroot/modals/mmpbx-inoutgoingmap-modal.lp \
/www/docroot/modals/mmpbx-profile-modal.lp \
/www/docroot/modals/nat-alg-helper-modal.lp \
/www/docroot/modals/system-modal.lp \
Expand Down Expand Up @@ -257,7 +260,6 @@ do
fi
done
# These were incorrectly enabled in release 2020.08.08 and earlier
uci -q delete web.mmpbxinoutgoingmapmodal
uci -q delete web.mmpbxsipdevicemodal
uci -q delete web.mmpbxstatisticsmodal
uci commit web
Expand Down Expand Up @@ -333,7 +335,7 @@ sed -e 's/if role ~= "admin"/if role == "admin"/' -i /www/docroot/modals/mmpbx-s
echo [$SCRIPT]: Show the hidden Telephony tabs and fix default tab
sed \
-e 's/-- {"mmpbx-contacts/ {"mmpbx-contacts/' \
-e 's/-- {"mmpbx-service-modal.lp", T"Service"},/ {"mmpbx-service-modal.lp", T"Service"},/' \
-e 's/-- {"mmpbx-service-modal.lp", T"Service"},/ {"mmpbx-service-modal.lp", T"Service"},\n {"mmpbx-inoutgoingmap-modal.lp", T"In\/Outgoing Map"},/' \
-i /www/snippets/tabs-voice.lp
# Default telephony tab is DECT!!!
# - Set test to always be false (mmpbx_state can only be 0 or 1, so 9 should always be false)
Expand Down
4 changes: 3 additions & 1 deletion tch-gui-unhide-TG800vac-17.2.0284
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
# Based on various pages https://hack-technicolor.readthedocs.io/en/stable/

TARGET_VARIANT=""
Expand Down Expand Up @@ -127,6 +128,7 @@ echo "[$SCRIPT]: . log-connections-modal.lp"
echo "[$SCRIPT]: . log-routingtable-modal.lp"
echo "[$SCRIPT]: . lte-sms.lp"
echo "[$SCRIPT]: . mmpbx-global-modal.lp"
echo "[$SCRIPT]: . mmpbx-inoutgoingmap-modal.lp"
echo "[$SCRIPT]: . mmpbx-profile-modal.lp"
echo "[$SCRIPT]: . nat-alg-helper-modal.lp"
echo "[$SCRIPT]: . system-modal.lp"
Expand Down Expand Up @@ -223,6 +225,7 @@ for f in $(ls \
/www/docroot/modals/log-routingtable-modal.lp \
/www/docroot/modals/lte-sms.lp \
/www/docroot/modals/mmpbx-global-modal.lp \
/www/docroot/modals/mmpbx-inoutgoingmap-modal.lp \
/www/docroot/modals/mmpbx-profile-modal.lp \
/www/docroot/modals/nat-alg-helper-modal.lp \
/www/docroot/modals/system-modal.lp \
Expand Down Expand Up @@ -252,7 +255,6 @@ do
fi
done
# These were incorrectly enabled in release 2020.08.08 and earlier
uci -q delete web.mmpbxinoutgoingmapmodal
uci -q delete web.mmpbxsipdevicemodal
uci -q delete web.mmpbxstatisticsmodal
uci commit web
Expand Down

0 comments on commit 9709333

Please sign in to comment.