Asterisk realtime
Overview
Asterisk realtime architecture 내용 정리
Installation
Required package
Debian 10
- unixodbc - unixodbc-dev - odbc-mariadb - python - python-dev - python-pip - python-mysqldb
$ sudo pip install alembic
alembic
# A generic, single database configuration. [alembic] script_location = config sqlalchemy.url = {{ database_type }}://{{ database_username }}:{{ database_password }}@{{ database_hostname }}:{{ database_port }}/{{ database_name }} [loggers] keys = root,sqlalchemy,alembic [handlers] keys = console [formatters] keys = generic [logger_root] level = WARN handlers = console qualname = [logger_sqlalchemy] level = WARN handlers = qualname = sqlalchemy.engine [logger_alembic] level = INFO handlers = qualname = alembic [handler_console] class = StreamHandler args = (sys.stderr,) level = NOTSET formatter = generic [formatter_generic] format = %(levelname)-5.5s [%(name)s] %(message)s datefmt = %H:%M:%S
Run alembic
$ alembic -c config.ini upgrade head
See also
- https://wiki.asterisk.org/wiki/display/AST/Setting+up+PJSIP+Realtime - Setting up PJSIP Realtime
- https://wiki.asterisk.org/wiki/display/AST/Realtime+Database+Configuration - Realtime Database Configuration
- http://www.voip-info.org/wiki/view/Asterisk+RealTime - Asterisk RealTime