Proposition de configuration de display "simplifié?"
POST /displays
{
"name": "my_display",
"fields": [
{"name": "firstname"},
{"name": "lastname"},| #!/usr/bin/bash | |
| set -x | |
| trap read debug | |
| USERNAME="<USERNAME>" | |
| PASSWORD="<PASSWORD>" | |
| HOSTNAME="<HOSTNAME>" | |
| CLIENT_ID="demo" |
| ## config/kamailio-local.cfg | |
| ##!define DBURL "postgres://kamailio:mypass@1.1.1.1:5432/kamailiopyfb" | |
| #!define DBURL "postgres://kamailio:proformatique@localhost:5432/kamailio" | |
| #!substdef "!MY_IP_ADDRESS!enp0s3!g" | |
| #!substdef "!MY_IP_ADDRESS_INTERNAL!enp0s3!g" | |
| #!substdef "!MY_IP_ADDRESS_EXTERNAL!enp0s3!g" | |
| port=5060 |
| #!/usr/bin/env python3 | |
| # This script will re-publish the tenant created event to fix missing directory config | |
| # Example usage: | |
| # ./publish_tenant_created.py <tenant-uuid> <tenant-name> | |
| import sys | |
| import os | |
| from kombu import Connection, Exchange, Producer |
| #!/usr/bin/env python3 | |
| import os | |
| import sys | |
| from wazo_confd_client import Client | |
| TOKEN = os.getenv('TOKEN') | |
| TENANT_UUID = sys.argv[1] | |
| c = Client('localhost', verify_certificate=False, token=TOKEN) |
| #!/usr/bin/env python3 | |
| # This script need an environment variable TOKEN containing a valid token | |
| # The user_emails file can be generated with the following command | |
| # sudo -u postgres psql -t -AF' ' asterisk -c "select uuid, replace(concat('auto+', firstname, '.', lastname, '@example.com'), ' ', '_') as email from (select uuid, firstname, lastname from auth_user where purpose != 'internal' and firstname is not null and uuid not in (select user_uuid from auth_user_email)) AS foo" > user_emails | |
| import os | |
| from wazo_auth_client import Client | |
| TOKEN = os.getenv('TOKEN') |
| basePath: /1.1 | |
| consumes: | |
| - application/json | |
| definitions: | |
| AccessFeature: | |
| properties: | |
| enabled: | |
| type: boolean | |
| feature: | |
| description: The feature to limit the access to |
Proposition de configuration de display "simplifié?"
POST /displays
{
"name": "my_display",
"fields": [
{"name": "firstname"},
{"name": "lastname"},| pip install -r <(grep -v github test-requirements.txt) | |
| for r in $(grep github test-requirements.txt | awk -F'/wazo-pbx/' '{ print $2 }' | awk -F'/' '{ print $1 }'); do add2virtualenv ~/dev/xivo/$r; done |
| User: | |
| user_uuid | |
| acl_template_id | |
| Tenant: | |
| tenant_uuid | |
| display_name | |
| Credentials: | |
| id |