ecallmgr-->ecallmgr_app->ecallmgr:start_link()
start deps ->
'crypto'
'lager'
'gproc'
'ibrowse'
'whistle_amqp'
'whistle_stats'
绑定exchange:
_ = wapi_authn:declare_exchanges(), callmgr topic
_ = wapi_authz:declare_exchanges(), callmgr topic
_ = wapi_call:declare_exchanges(), callevt topic
callmgr topic
_ = wapi_conference:declare_exchanges(), conference topic
_ = wapi_dialplan:declare_exchanges(), callctl direct
whapps topic
_ = wapi_media:declare_exchanges(), whapps topic
_ = wapi_notifications:declare_exchanges(), notifications topic
_ = wapi_rate:declare_exchanges(), callmgr topic
_ = wapi_registration:declare_exchanges(), callmgr topic
_ = wapi_resource:declare_exchanges(), callmgr topic
_ = wapi_route:declare_exchanges(), callmgr topic
_ = wapi_sysconf:declare_exchanges(), sysconf topic
_ = wapi_sms:declare_exchanges(), sms fanout
_ = wapi_presence:declare_exchanges(), presence topic
_ = wapi_self:declare_exchanges(). targeted direct
ecallmgr_sup:start_link(). -->
ecallmgr_init -->设置节点cookie , 设置loglevel
ecallmgr_auxiliary_sup -->
ecallmgr_util_cache ecallmgr_auth_cache ecallmgr_call_cache 启动三个缓存进程
ecallmgr_originate_sup
ecallmgr_registrar
ecallmgr_call_sup -->
ecallmgr_call_event_sup
ecallmgr_call_control_sup
ecallmgr_fs_sup -->
ecallmgr_fs_pinger_sup
ecallmgr_fs_nodes --->读取节点配置。然后根据配置的freeswitch节点来启动相应的处理进程
ecallmgr_fs_channels
ecallmgr_fs_conferences
wh_nodes--> 监控所有erlang 节点的up 与down事件
exchange: nodes fanout
targeted direct
CHANNEL_CREATE 事件会触发 ecallmgr_call_events进程创建
从couchdb中读取节freeswitch节点的配置
ecallmgr_fs_nodes:start_preconfigured_servers
start deps ->
'crypto'
'lager'
'gproc'
'ibrowse'
'whistle_amqp'
'whistle_stats'
绑定exchange:
_ = wapi_authn:declare_exchanges(), callmgr topic
_ = wapi_authz:declare_exchanges(), callmgr topic
_ = wapi_call:declare_exchanges(), callevt topic
callmgr topic
_ = wapi_conference:declare_exchanges(), conference topic
_ = wapi_dialplan:declare_exchanges(), callctl direct
whapps topic
_ = wapi_media:declare_exchanges(), whapps topic
_ = wapi_notifications:declare_exchanges(), notifications topic
_ = wapi_rate:declare_exchanges(), callmgr topic
_ = wapi_registration:declare_exchanges(), callmgr topic
_ = wapi_resource:declare_exchanges(), callmgr topic
_ = wapi_route:declare_exchanges(), callmgr topic
_ = wapi_sysconf:declare_exchanges(), sysconf topic
_ = wapi_sms:declare_exchanges(), sms fanout
_ = wapi_presence:declare_exchanges(), presence topic
_ = wapi_self:declare_exchanges(). targeted direct
ecallmgr_sup:start_link(). -->
ecallmgr_init -->设置节点cookie , 设置loglevel
ecallmgr_auxiliary_sup -->
ecallmgr_util_cache ecallmgr_auth_cache ecallmgr_call_cache 启动三个缓存进程
ecallmgr_originate_sup
ecallmgr_registrar
ecallmgr_call_sup -->
ecallmgr_call_event_sup
ecallmgr_call_control_sup
ecallmgr_fs_sup -->
ecallmgr_fs_pinger_sup
ecallmgr_fs_nodes --->读取节点配置。然后根据配置的freeswitch节点来启动相应的处理进程
ecallmgr_fs_channels
ecallmgr_fs_conferences
wh_nodes--> 监控所有erlang 节点的up 与down事件
exchange: nodes fanout
targeted direct
CHANNEL_CREATE 事件会触发 ecallmgr_call_events进程创建
从couchdb中读取节freeswitch节点的配置
ecallmgr_fs_nodes:start_preconfigured_servers