WebTrit Dialer is a reference implementation of a client web application for the WebTrit system.
It provides basic call functionality along with contacts and call history viewing.
The application is built using:
Ensure your development environment meets the following requirements:
-
Git LFS
This project uses the Git Large File Storage (LFS) extension.
Make sure it is installed and initialized in your Git environment. -
Node.js
Version: 14.x - 16.x
Download Node.js -
Python
Version: 3.9 - 3.11
Download Python
cp .env.example .env.local
npm install
npm run serve
npm run build
npm run test:unit
npm run test:e2e
npm run lint
WebTrit Dialer docker image is NGINX Web server with built WebTrit Dialer code.
Env variables descriptions:
VUE_APP_PUBLIC_PATH- optional application bundle base URL (without/at the end) (examples:/sub-path)VUE_APP_GTM- optional Google Tag Manager container IDs (examples:GTM-xxxxxx,GTM-xxxxxx, GTM-yyyyyy)VUE_APP_WEBTRIT_APP_NAME- branding app nameVUE_APP_WEBTRIT_APP_SUBNAME- branding app sub-nameVUE_APP_WEBTRIT_COMPANY_NAME- branding company nameVUE_APP_WEBTRIT_COMPANY_URL- branding company URLVUE_APP_WEBTRIT_COMPANY_LOGO_IMG_SRC- branding company image source path related to the directory with overwritten and added files (optional)VUE_APP_WEBTRIT_CORE_URL- WebTrit Core URLVUE_APP_WEBTRIT_NAVIGATION_DRAWER_MINIMIZING- can the main navigation menu be minimized, default:trueVUE_APP_WEBTRIT_RECORDING_PLAY_BUTTON_DISABLE- don't show play button for records, default:falseVUE_APP_UPDATE_INFO_INTERVAL- optional interval for retrieving user information in milliseconds, default:60000VUE_APP_UPDATE_CONTACTS_INTERVAL- optional interval for retrieving contacts in milliseconds, default:0(where0is a special value that disables periodic updates)
Env variable of the set color palette. Specified through HEX color. Some colors have a default value.
VUE_APP_COLOR_PRIMARY- default:#F5841FVUE_APP_COLOR_SECONDARY- default:#F5841FVUE_APP_COLOR_ACCENT- default:#F5841FVUE_APP_COLOR_SURFACE- default:#4C86B7VUE_APP_COLOR_ERRORVUE_APP_COLOR_INFOVUE_APP_COLOR_SUCCESSVUE_APP_COLOR_WARNINGVUE_APP_COLOR_ANCHOR
- Add to query parameter
modeto activate additional functionality. Currently, it supports the following values:mst- activate configuration related to Microsoft Teams (such as prevent navigation drawer minimization), ex.:dailer.webtrit.com?mode=mst;
- Add to query parameter
tenantwith value oftenant_idto choose another Adaptee to dialer communicate, ex.:dailer.webtrit.com?tenant=special_adapter;
docker build --tag webtrit-dialer .
docker run --detach --restart always \
--name webtrit-dialer \
--env VUE_APP_WEBTRIT_COMPANY_NAME="WebTrit" \
--env VUE_APP_WEBTRIT_CORE_URL="https://core.webtrit.com" \
-p 127.0.0.1:4001:80 \
--mount type=bind,source=<directory with overwrited and added files>,target=/usr/share/nginx/html_overwrite \
webtrit-dialerWebTrit Dialer docker image built automatically by GitHub Actions with next tags:
main- last pushedmainbranchlatest- last pushed tagx.y.z- corresponding pushed tagx.y- automatically stripped pushed tag to collect last patch of respective tags