From joshebosh, 6 Years ago, written in Plain Text.
- go back
Embed
Viewing differences between and callpaste aliases
  1. alias callpaste='fs_cli -x "fsctl send_sighup" \
  2. && read -p "Make call, then hit <ENTER> after call complete..." \
  3. && fs_cli -x "fsctl send_sighup" \
  4. && printf "#############################################\n\n\n\n\n" \
  5. && curl -d private=1 --data-urlencode text@`find /var/log/freeswitch -name freeswitch.log.1 2>/dev/null || find /usr/local/freeswitch/log -name freeswitch.log.1` https://pastebin.freeswitch.org/api/create \
  6. && printf "\n\n\n\n#############################################\n\n"'
  7.  
  8. alias bugon='fs_cli -x "console loglevel debug" \
  9. && fs_cli -x "sofia global siptrace on" \
  10. && fs_cli -x "sofia tracelevel alert" \
  11. && fs_cli -x "sofia loglevel all 9" \
  12. && fs_cli -x "fsctl loglevel debug" \
  13. && fs_cli -x "fsctl debug_level 0"'
  14.  
  15. alias bugoff='fs_cli -x "console loglevel debug" \
  16. && fs_cli -x "sofia global siptrace off" \
  17. && fs_cli -x "sofia tracelevel console" \
  18. && fs_cli -x "sofia loglevel all 0" \
  19. && fs_cli -x "fsctl loglevel debug" \
  20. && fs_cli -x "fsctl debug_level 0"'
  21.