Beispiel #1
0
#!/usr/bin/python3
import os
import pwd
import grp
import logging
import logger as logger_

ESL_SERVER = ('127.0.0.1', 8021)

APP_DIR = os.path.dirname(__file__)

ESL_PROXY = {'host': '0.0.0.0', 'port': 28021}
log_file = os.path.join(APP_DIR, 'esl_proxy.log')
logger = logger_.rotating_log(log_file, 'esl_proxy', log_level=logging.DEBUG)
MAX_CALLBACKS = 128
ESLLogin = (b'127.0.0.1', b'8021', b'ClueCon')
ESL_TIMEOUT = 20
VOIP_USER = (pwd.getpwnam('andrew').pw_uid, grp.getgrnam('andrew').gr_gid)
SIMPLE_CALLBACK = '6700'
PID = os.path.join(APP_DIR, 'esl_proxy.pid')
Beispiel #2
0
#!/usr/bin/python3
import os
# import logging
import logger as logger_

WS_SERVER = 'ws://127.0.0.1:4055/ws'
WS_TIMEOUT = 10

APP_DIR = os.path.dirname(__file__)
# SQL_DIR = os.path.join(APP_DIR, 'sql')
logger = logger_.rotating_log(os.path.join(APP_DIR, 'callbacks.log'),
                              'callbacks_log')
# DNS = ('dbname=50eb8a3c0e444176ea5139ad5de941cd79daa8b9 user=freeswitch '
#        'password=freeswitch host=127.0.0.1 port=15432')
FREESWITCH_ESL = {'host': '127.0.0.1', 'port': 28021}

DISTRIBUTOR = 'http://127.0.0.1:18021'
Beispiel #3
0
#!/usr/bin/python3
import os
import logger as logger_

WS_SERVER = 'ws://127.0.0.1:4055/ws'
WS_TIMEOUT = 10

APP_DIR = os.path.dirname(__file__)
SQL_DIR = os.path.join(APP_DIR, 'sql')
logger = logger_.rotating_log(os.path.join(APP_DIR, 'orders.log'),
                              'orders_log')
PG_DNS = 'dbname=taximaster user=taximaster password=taximaster host=192.168.0.100'
FDB = {
    'user': '******',
    'password': '******',
    'database': 'd:\\tme_db.fdb',
    'host': '127.0.0.1',
    'charset': 'win1251'
}
Beispiel #4
0
#!/usr/bin/python3
import os
import logger as logger_

WS_SERVER = 'ws://127.0.0.1:4055/ws'
WS_TIMEOUT = 10

APP_DIR = os.path.dirname(__file__)
SQL_DIR = os.path.join(APP_DIR, 'sql')
logger = logger_.rotating_log(os.path.join(APP_DIR, 'tmtapi.log'),
                              'tmtapi_log')
# PG_DNS = 'dbname=taximaster user=taximaster password=taximaster host=192.168.0.100'
FDB = {
    'user': '******',
    'password': '******',
    'database': 'd:\\tme_db.fdb',
    'host': '127.0.0.1',
    'charset': 'win1251'
}
FDB_PARALLEL_OPERS = 5
TMAPI = {
    'host': '127.0.0.1',  # ip сервера TM
    'port': 8089,  # порт
    'sign': '1292',  # соль
}

GOSNUMBER_LENGTH = 3

FAKE_TERM_ACCOUNT = '00000'

CALLBACK_STARTED = 1
Beispiel #5
0
PORT = 18021
# settings = {
#     'cookie_secret': '61oETzKXQAGaYdkL5gEmGeJJFuYh7EQnp2XdTP1o/Vo=',
#     'login_url': '/login',
#     'xsrf_cookies': False,
#     'debug': True,
#     'autoreload': True,
#     'compiled_template_cache': False,
#     'serve_traceback': True,
#     'static_path': os.path.join(os.path.dirname(__file__), 'static'),
#     'template_path': os.path.join(os.path.dirname(__file__), "templates"),
#     'archive_path': os.path.join(os.path.dirname(__file__), 'static'),
# }

TMAPI = {
    'host': '127.0.0.1',  # ip сервера TM
    'port': 8089,  # порт
    'sign': '1292',  # соль
}

# WS_SERVER = f'localhost:{PORT}'

PG_DSN = 'dbname=50eb8a3c0e444176ea5139ad5de941cd79daa8b9 user=freeswitch password=freeswitch host=localhost port=15432'

LOCAL_CODE = '8362'  # Местные звонки
PHONE_LENGTH = (6, 10)  # Допустимые длины номеров
REGIO_CODE = '+7'  # Выход наружу

logger = logger_.rotating_log(os.path.join(APP_DIR, 'distributor.log'),
                              'distributor_log')
Beispiel #6
0
#!/usr/bin/python3
import os
# import logging
import logger as logger_

WS_SERVER = 'ws://127.0.0.1:4055/ws'
WS_TIMEOUT = 10

APP_DIR = os.path.dirname(__file__)
# SQL_DIR = os.path.join(APP_DIR, 'sql')
logger = logger_.rotating_log(os.path.join(APP_DIR, 'kts_snmp.log'),
                              'kts_snmp_log')

SNMP_IP = '192.168.222.179'
SNMP_PORT = 11162

ROUTER_URL = 'http://127.0.0.1/snmp'
Beispiel #7
0
#!/usr/bin/python3
import os
# import logging
import logger as logger_

WS_SERVER = 'ws://127.0.0.1:4055/ws'
WS_TIMEOUT = 10

APP_DIR = os.path.dirname(__file__)
SQL_DIR = os.path.join(APP_DIR, 'sql')
logger = logger_.rotating_log(os.path.join(APP_DIR, 'sms.log'), 'sms_log')
DNS = ('dbname=50eb8a3c0e444176ea5139ad5de941cd79daa8b9 user=freeswitch '
       'password=freeswitch host=127.0.0.1 port=15432')
# FREESWITCH_ESL = {'host': '127.0.0.1', 'port': 28021}
LOCAL_CODE = '8362'
PHONE_LENGTH = 10
REGIO_CODE = '+7'