Skip to content

Monitor-Maintain

Monitor Maintain Whistle_Apps#

Connect to the Erlang whistle_apps shell:   whistle_apps/conn-to-apps.sh   Flushing the cache (callflows, CID, ect):   wh_cache:flush().   Flushing the config (db cached system config) requires restart of sysconf whapp: whapps_config:flush().whapps_controller:restart_app(sysconf). 

Erlang-based Application list (full):   application:which_applications().   Start, stop WhApps and verify running WhApps: whapps_controller:start_app(crossbar).whapps_controller:stop_app(crossbar).whapps_controller:running_apps(). 

Determine which CouchDB/BIGCouch server it is connected to couch_mgr:get_host().couch_mgr:get_creds().wzxhzdk:0whapps_maintenance:refresh().whapps_maintenance:refresh(Account ID).

NOTE - THIS REPLACED:

crossbar:refresh().

Callflow Refresh Command (useful for after upgrade)   callflow_maintenance:refresh().   Whistle Number Manager (iterates thru each account checking all DID's exist in the numbers db)   whistle_number_manager_maintenance:reconcile().