Home » How to filter FreeSWITCH CLI running calls log

How to filter FreeSWITCH CLI running calls log

FreeSWITCH CLI

by Salman Chawhan
0 comment

To filter FreeSWITCH CLI running calls log, you can use the built-in command show channels concise followed by a pipe (|) and the grep command. Here’s how you can do it:

  1. Open the FreeSWITCH CLI by running the command fs_cli in your terminal.
  2. Once you are in the CLI, run the command show channels concise to display concise information about all active calls.
  3. The output will show information about active calls, including their unique channel IDs, caller/callee numbers, call state, and more.
  4. To filter the output based on specific criteria, you can use the grep command along with appropriate options and patterns. For example:
    show channels concise | grep “caller_number”
  5. Replace "caller_number" with the actual number you want to filter.
  6. The filtered output will display only the calls that match the specified criteria.

Notes and Considerations

  • Output Variations: The format and content of the output might differ based on the version of FreeSWITCH in use. Always refer to the documentation corresponding to your version for accurate information.
  • Operating System Dependency: The availability of the grep command may vary depending on the operating system. Ensure that grep is installed on your system or consider alternative filtering methods if needed.
  • Pattern Matching: grep supports powerful pattern matching, allowing for versatile filtering based on regular expressions, strings, or specific patterns.

Conclusion

Utilizing grep in conjunction with the FreeSWITCH CLI’s show channels concise command enables users to efficiently sift through call information and focus on specific criteria of interest. This combination empowers administrators and users to manage ongoing calls more effectively, facilitating smoother call monitoring and troubleshooting processes.

Feel free to adapt this information to suit your blog’s style and audience, and don’t hesitate to explore more advanced grep functionalities to further refine call filtering within the FreeSWITCH CLI.

For more visit : https://techntrick.in/monitoring-calls-freeswitch-cli-guide/.

Want to explore more? Click here.

You may also like

Leave a Comment

2 − one =

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