clear.txt 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. 1. clear database tables;
  2. truncate table cc_call_phone;
  3. truncate table cc_call_task;
  4. -- truncate table cc_gateways;
  5. truncate table cc_inbound_cdr;
  6. -- truncate table cc_inbound_llm_account;
  7. -- truncate table cc_llm_agent_account;
  8. truncate table cc_outbound_cdr;
  9. truncate table sys_oper_log;
  10. SELECT * FROM cc_tts_aliyun WHERE voice_code LIKE 'S\\_%' ESCAPE '\\';
  11. delete FROM cc_tts_aliyun WHERE voice_code LIKE 'S\\_%' ESCAPE '\\';
  12. reset master;
  13. 2. clear FreeSWITCH configuration files:
  14. a. update asr configuration: /cc/fsconf/aliasrconf
  15. b. update tts configuration: /cc/fsconf/alittsconf
  16. c. update tts configuration: /cc/fsconf/doubaottsconf
  17. update above configs via admin web pages.
  18. 3. delete gateway config files:
  19. rm -rf /home/freeswitch/etc/freeswitch/sip_profiles/internal/*.xml
  20. rm -rf /home/freeswitch/etc/freeswitch/sip_profiles/external/*.xml
  21. 4. update version info:
  22. update sys_config set config_value='v20260217' where config_key='sys.version';
  23. 5. delete all test-user accounts:
  24. DELETE from sys_user where user_name <> 'admin';
  25. 6. delete install_lock file:
  26. rm -rf /home/freeswitch/etc/freeswitch/autoload_configs/install_lock.data
  27. 7. 修改参数管理页面: event-socket-ip 为127.0.0.1