Skip to main content

Getting Call Statistics from AudioCodes Through SSH

By February 25, 2019September 18th, 2020Blog, Networking
AudioCodes SSH Pull Call stats

Description:

This document describes how to pull call stats via SSH from an AudioCodes Mediant 1000 running in SBC mode. Ever need to determine currently active calls on an AudioCodes or whether you have been having media negotiation issues? Though not very accessible via the web interface, all of this is very accessible via SSH.

Logging into an AudioCodes via SSH:

  1. Go head and login to the AudioCodes and go to ‘Configuration’->’System’->’Telnet/SSH Management’ and enable ssh. Here is an example of the specific settings.Audio Codes ssh settings
  2. Use putty or your other favorite ssh client, and connect to the device over the inside interface with the standard admin account.

Pulling Call Stats:

Run ‘show voip calls statistics sbc’ to view current global stats:

Mediant 1000> show voip calls statistics sbc
SBC Call Statistics:
Active INVITE dialogs: 12
Active incoming INVITE dialogs: 6
Active outgoing INVITE dialogs: 6
Average call duration [min:sec]: 2:18
Call attempts: 263268
Incoming call attempts: 131720
Outgoing call attempts: 131548
Established calls: 232392
Incoming established calls: 116196
Outgoing established calls: 116196
Calls terminated due to busy line: 586
Incoming calls terminated due to busy line: 293
Outgoing calls terminated due to busy line: 293
Calls terminated due to no answer: 16194
Incoming calls terminated due to no answer: 8097
Outgoing calls terminated due to no answer: 8097
Calls terminated due to forward: 0
Incoming calls terminated due to forward: 0
Outgoing calls terminated due to forward: 0
Calls terminated due to resource allocation failure: 0
Incoming calls terminated due to resource allocation failure: 0
Outgoing calls terminated due to resource allocation failure: 0
Calls terminated due to media negotiation failure: 0
Incoming calls terminated due to media negotiation failure: 0
Outgoing calls terminated due to media negotiation failure: 0
Calls terminated due to general failure: 13924
Incoming calls terminated due to general failure: 6962
Outgoing calls terminated due to general failure: 6962
Calls abnormally terminated: 6
Incoming calls abnormally terminated: 3
Outgoing calls abnormally terminated: 3

Run ‘sow voip calls active’ to see currently running phone calls (details redacted):

Mediant 1000> show voip calls active
Total Active Calls: 10
| Call Start Time |End Point | Caller | Cal                       lee |Direction| Remote IP |Duration|Call State| Session ID
===========================================                       ===========================================================
If you’re interested in learning more tips like this, check out the Networking section of our blog! Or make sure you never miss another post like this by subscribing to our blog below!
mfuller, PEI

Leave a Reply