فهرست منبع

Merge branch 'master' of ssh://gogs.halsbox.ru:2022/hal/freepbx-tftp-server

Hal De 3 سال پیش
والد
کامیت
660b63d904
1فایلهای تغییر یافته به همراه12 افزوده شده و 6 حذف شده
  1. 12 6
      README.md

+ 12 - 6
README.md

@@ -1,10 +1,10 @@
 ## FreePBX tftp server
 
-This is an advanced tftp server that automatically generates config files for sip phones.
+This is an advanced tftp server that automatically generates config files for cisco sip phones.
 
 ## How it works
 
-FreePBX server syncs with Active Directory(AD). Binding users to phones is carried out through the fax field in the user properties from AD. The tftp server receives a request for a file of the form `SEP<MAC>.cfg.xml`, makes a request to the freepbx database, generates a config and sends it to the phone.
+FreePBX server syncs with FreePBX. Binding users to phones is carried out through the fax field in the user properties from FreePBX. The tftp server receives a request for a file of the form `SEP<MAC>.cfg.xml`, makes a request to the FreePBX database, generates a config and sends it to the phone. All other files are taken from provided folder as-is.
 
 ## Requirements:
 
@@ -14,11 +14,17 @@ FreePBX server syncs with Active Directory(AD). Binding users to phones is carri
 ## Flags:
 
 ```bash
-Usage of ./freebpx-tftp-server:
-  -freepbx-conf string
-    	Set path to freepbx db connection config file (default "/etc/freepbx.conf")
-  -sep-template-file string
+Usage of ./freepbx-tftp-server:
+  -freepbx_db string
+    	Set freepbx db connection string (default "asterisk:password@tcp(127.0.0.1)/asterisk")
+  -sep_template_file string
     	Set path to sep template file (default "./sep-cisco.cnf.xml.tpl")
   -workdir string
     	Set working directory (default "/tftpboot")
 ```
+
+flags may be set via ENV variables by capitalizing flag name, e.g. 
+
+```bash
+SEP_TEMPLATE_FILE=/tftpboot/sep-cisco.cnf.xml.tpl
+```