SOLVED Active Call DID

Status
Not open for further replies.

dogankirdemir

New Member
Mar 4, 2021
16
2
3
37
Hi Guys,

I need active calls count on the system , I can get all active calls or module based calls from fs console.

However, count value is required for specific did,

How can I do it ?

Thanks,
 
This shell script may give you some pointers, I run it from the command line when I want to quickly see what the box is doing:
Code:
#!/bin/bash

CALLS=`/usr/bin/fs_cli -x "show calls count" | grep total | awk {'print $1'}`
CHANNELS=`/usr/bin/fs_cli -x "show channels count" | grep total | awk {'print $1'}`
CALLSPERSEC=`/usr/bin/fs_cli -x "show status" | grep "session(s) per Sec" | awk {'print $1'}`

echo "Calls: $CALLS"
echo "Channels: $CHANNELS"
echo "Calls per Sec: $CALLSPERSEC"

I'm pretty sure I adapted this from some useful commands posted by @KonradSC
 
  • Like
Reactions: KonradSC
Hi Adrian,

I am using these functions. These work well globally. But not enough for my control. I need to get the total count from did or domain fs console. Maybe I should experiment a bit with grep.
 
Outside the console, I can get the count value here. So just numbers. This is very useful.

But it gives all the details in the console. It just doesn't count. How can I use non console value in dialplan manager. Do you have an idea ?
 
Hi Adrian,

I found a solution on the FS side. The logs with the 'channels like' function are successful. Using regex as the final touch provided the correct data.

Take care of yourself,
 
Status
Not open for further replies.