diff --git a/Phones/7940-7960/README.md b/Phones/7940-7960/README.md new file mode 100644 index 0000000..4994d33 --- /dev/null +++ b/Phones/7940-7960/README.md @@ -0,0 +1,17 @@ +# 7940 - 7960 Series : +## Intro : + +You will need an IPv4 Network with : +* DHCP server +* TFTP server +* physical access to the phone + +## Factory reset sequence : +When the phone start's up, (either POE or local adapter), dial the `#` until the screen starts up. +When the screen tell's factory reset sequence, Dial `1 2 3 4 5 6 7 8 9 * 0 #` in that order. Phone will ask you if you want to save his network config. +Dial 2 (network config erase). + +## Flashing process : +After factory reset, the phone will look up in the TFTP server for his own config file (`SEP.cnf.xml`) +In the case of flashing to SIP firmware, that file has to contain the fact that it goes to SIP and a firmware version. +All system files must be stored at the root of the TFTP server. \ No newline at end of file diff --git a/Scripts/7911-7906.py b/Scripts/__init__.py similarity index 100% rename from Scripts/7911-7906.py rename to Scripts/__init__.py diff --git a/Scripts/7940-7960.py b/Scripts/c79117906.py similarity index 100% rename from Scripts/7940-7960.py rename to Scripts/c79117906.py diff --git a/Scripts/c79407960.py b/Scripts/c79407960.py new file mode 100644 index 0000000..5784897 --- /dev/null +++ b/Scripts/c79407960.py @@ -0,0 +1,2 @@ +def main(): + print("test") \ No newline at end of file diff --git a/gen.py b/gen.py index 351ccd7..5c6964b 100644 --- a/gen.py +++ b/gen.py @@ -2,9 +2,19 @@ Config Generator for VOIP Phones Arnold Dechamps 2022 """ +from Scripts import c79407960 def main(): - print("hello world") + print("Hello, what phone system would you like to provision?") + print(" * 1) Cisco 7940") + print(" * 2) Cisco 7960") + print(" * 3) Cisco 7911") + print(" * 4) Cisco 7906") + + phone_choice = int(input("Choice : ")) + + if phone_choice == 1 or phone_choice == 2: + c79407960.main() if __name__ == '__main__': main() \ No newline at end of file