From 0829f7ab0a34d7a30c2edc0b3db12775694d8fe8 Mon Sep 17 00:00:00 2001 From: Sviatoslav Tsariov Date: Thu, 4 May 2023 16:53:02 +0300 Subject: [PATCH] asterisk docs --- Dipal/Backend/Fox/Third-party services/Asterisk.md | 14 ++++++++++++++ server/config/env.py | 5 +---- server/view/html.py | 4 ++-- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/Dipal/Backend/Fox/Third-party services/Asterisk.md b/Dipal/Backend/Fox/Third-party services/Asterisk.md index eb52f63..d1db93d 100644 --- a/Dipal/Backend/Fox/Third-party services/Asterisk.md +++ b/Dipal/Backend/Fox/Third-party services/Asterisk.md @@ -341,3 +341,17 @@ port = ssh logpath = %(sshd_log)s backend = %(sshd_backend)s ``` + +## Compiling Asterisk +To compile Asterisk you need to download its source (for example, [Asterisk 16](https://launchpad.net/ubuntu/+source/asterisk/1:16.2.1~dfsg-2ubuntu1)). + +```bash +sudo ./contrib/scripts/install_prereq install +sudo ./configure --with-jansson-bundled +sudo make menuselect +sudo make +sudo make install +sudo make samples +sudo make config +sudo asterisk -vvvc +``` diff --git a/server/config/env.py b/server/config/env.py index 471ca72..3ec92b4 100644 --- a/server/config/env.py +++ b/server/config/env.py @@ -1,6 +1,6 @@ import os -port=8009 +port=8008 working_dir='.' forbidden_dir_names=['env', '.git', '__pycache__', 'server'] allowed_file_endings=['.md'] @@ -15,6 +15,3 @@ css_index_name='github-markdown.css' css_md_path=os.path.join(css_dir, css_md_name) css_index_path=os.path.join(css_dir, css_index_name) markdown_type='gfm' -test_cases_dir='test-cases' -test_suites_dir='test-suites' -test_reports_dir='test-reports' \ No newline at end of file diff --git a/server/view/html.py b/server/view/html.py index a2cd190..ee8e701 100644 --- a/server/view/html.py +++ b/server/view/html.py @@ -90,7 +90,7 @@ def show_nested_files(files): for nested in subdirectory_files: if type(nested) is str: text += f'
  • {os.path.basename(nested)}' - reportable_dirs = [item + '\\' for item in [env.test_cases_dir, env.test_suites_dir]] + reportable_dirs = [item + '\\' for item in []] if any([directory in nested for directory in reportable_dirs]): text += f' [report]' text += '
  • ' @@ -167,4 +167,4 @@ def index2(files): """ def to_html(body): - return html_header + body + html_footer \ No newline at end of file + return html_header + body + html_footer