Asterisk realtime: Difference between revisions

From 탱이의 잡동사니
Jump to navigation Jump to search
No edit summary
Line 68: Line 68:


== See also ==
== 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
* http://www.voip-info.org/wiki/view/Asterisk+RealTime - Asterisk RealTime


[[category:asterisk]]
[[category:asterisk]]

Revision as of 21:31, 30 August 2020

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