Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igorolhovskiy/bitrix24-fusion-daemon
Daemon for Bitrix24 - FusionPBX integration
https://github.com/igorolhovskiy/bitrix24-fusion-daemon
bitrix24 freeswitch fusionpbx
Last synced: 4 days ago
JSON representation
Daemon for Bitrix24 - FusionPBX integration
- Host: GitHub
- URL: https://github.com/igorolhovskiy/bitrix24-fusion-daemon
- Owner: igorolhovskiy
- Created: 2020-06-15T16:50:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T06:52:32.000Z (over 4 years ago)
- Last Synced: 2024-10-30T21:12:04.543Z (about 2 months ago)
- Topics: bitrix24, freeswitch, fusionpbx
- Language: JavaScript
- Homepage:
- Size: 209 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Daemon to listen FreeSWITCH Events and send em to Bitrix24 (box) via webHooks
For all questions, pls fork and explore.
DEV version, might will develop in the future.
Designed to work with this version of [FusionPBX](https://github.com/igorolhovskiy/fusionpbx)Variables to specify on FusionPBX:
bitrix24_enabled = true
bitrix24_token = `${REST_ENTRYPOINT}` = last path part (token) you for from Bitrix24 click2call pathRequests from Bitrix:
ONEXTERNALCALLSTART
http:///rest/1/`${REST_ENTRYPOINT}`:`${REST_PORT}`
Token - `${REST_TOKEN}` or `${REST_ENTRYPOINT}`
Bitrix Domain - `${REST_REQUESTDOMAIN}`Some env variables description
`BITRIX_URL` - Where to send Bitrix24 webhook requests. Full path like `https://crm.mycompany.com/rest/1/this_is_my_secret_token`
`REST_PORT` - Port on which to listen for Click2Call requests. 3000 by default
`REST_ENTRYPOINT` - Outbound webhook for click2call should be like `http://fusion_server:REST_PORT/rest/1/REST_ENTRYPOINT`
`REST_REQUESTDOMAIN` - Domain to verify in outbound webhook from Bitrix in `body.auth.domain`
`REST_TOKEN` - Token to verify in outbound webhook in `body.auth.application_token`
`FUSION_APIKEY` - API Key of user in Fusion with `click_to_call_call` permission
`FUSION_DOMAIN` - On which domain we're sending a request for Click2Call.
`FUSION_RECORDINGPATH` - Actually path to get recording files. For example - `https://fusion_server:8443`
See nginx example below for port 8443 and default Fusion recording pathnginx site example for getting recordings.
```
server {
listen 8080;
server_name _;
return 302 https://$host:8443$request_uri;
}server {
listen 8443;ssl on;
ssl_certificate /etc/ssl/wildcard.com.crt;
ssl_certificate_key /etc/ssl/wildcard.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!ADH:!MD5:!aNULL;access_log /var/log/nginx/access_rec.log;
error_log /var/log/nginx/error_rec.log;client_max_body_size 10M;
client_body_buffer_size 128k;location / {
root /var/lib/freeswitch/recordings/;
add_header Access-Control-Allow-Origin *;
autoindex off;
}# Disable viewing .htaccess & .htpassword & .db
location ~ .htaccess {
deny all;
}
location ~ .htpassword {
deny all;
}
location ~^.+.(db)$ {
deny all;
}
}
```More vars are in `fusion_daemon/app/config`