kazoo 随笔

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


  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值