Home » Monitoring Calls with FreeSWITCH CLI: A Comprehensive Guide

Monitoring Calls with FreeSWITCH CLI: A Comprehensive Guide

by Salman Chawhan
0 comment

The FreeSWITCH Command-Line Interface (CLI) provides powerful tools for monitoring and managing calls in your FreeSWITCH server. Whether you’re troubleshooting, gathering statistics, or simply keeping an eye on your system, the CLI offers a range of commands to help you monitor call activity in real time. In this blog post, we will explore the FreeSWITCH CLI monitoring capabilities and provide a list of essential commands for monitoring calls.

Click Here for More Blogs

  1. Accessing the FreeSWITCH CLI: To access the FreeSWITCH CLI, open a terminal window and enter the following command:
fs_cli

If prompted for a password, enter your FreeSWITCH CLI password.

  1. Displaying Active Calls: To view a list of active calls, use the show channels command:
show channels

This command will display detailed information about all active calls, including the caller and callee numbers, call state, duration, and more.

  1. Filtering Calls by Caller/Callee Number: To filter the output based on a specific caller or Callee numbers, you can use the grep command. For example, to filter calls with a specific caller number, use the following command:
show channels | grep "caller_number"

Replace "caller_number" with the actual number you want to filter.

  1. Monitoring Call Details: For more concise information about active calls, you can use the show channels concise command. This command provides a condensed view of call details:
show channels concise
  1. Call Statistics: To gather call statistics, use the show status command. It provides information such as the total number of calls, channels, and active sessions:
show status
  1. Real-time Call Logging: To monitor call logs in real-time, enable the event socket and use the log command with the desired log level. For example, to log call events at the INFO level, run the following commands:
event socket
log level 7

This will log call-related events to the console.

  1. Call Flow Monitoring: The FreeSWITCH CLI also allows you to monitor the call flow in real-time using the uuid_bridge command. This command bridges two active calls and provides detailed call flow information:
uuid_bridge <uuid1> <uuid2>
  • Replace <uuid1> and <uuid2> with the UUIDs of the calls you want to bridge.
  • Conclusion: The FreeSWITCH CLI provides a comprehensive set of commands for monitoring and managing calls in real-time. By leveraging these commands, you can gain valuable insights into your system’s call activity, troubleshoot issues, and ensure smooth operation. Experiment with the various commands discussed in this blog post to enhance your monitoring capabilities with FreeSWITCH CLI.
  • Note: The commands mentioned in this blog post are based on general usage and may vary depending on the version and configuration of your FreeSWITCH installation. Consult the official FreeSWITCH documentation for detailed information on CLI commands specific to your setup.

You may also like

Leave a Comment

6 + 12 =

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?
-
00:00
00:00
Update Required Flash plugin
-
00:00
00:00