From V9.1.0.48 - Softdial Telephony Gateway™ (STG) includes limited support for remote diagnostics, accessed via a standard Telnet interface.
By default, STG is listening for connection on port 6511 (this can be changed if required). So from a Windows system, you can connect using a command line such as
telnet servername 6511
where servername is the network name for the machine hosting STG (Fig. 1).
If the connection is successful you will see a greeting message with some basic details of the server and the version of STG (Fig. 2).
At this point, you may enter commands which will provide diagnostic information or change configuration settings.
As of 9.1.0.48 there is only one command provided, which is trunkstatus (Fig. 3). You may alternatively use the short form ts. This will provide a list of the configured ports together with some status information and a line detailing the state of each channel on that port.
The following 2 optional switches can be specified:
If channelsonly (or its shortened form of co) is specified then the output is less verbose, just listing the channel states for each port making it easier to see an overview of port/ channel status (Fig. 4).
Using this switch, the channel state is displayed on a single line, and 32 two character pairs are used, each representing one of the possible channels on an E1 port
On T1, therefore, some of them are never used, though they are still displayed.
For channels which cannot be used, .. is displayed.
For channels which can be used:
Indicates if the channel is waiting for an incoming call. Possible values are:
It is possible for a channel to be waiting for an incoming call regardless of the channel being used for an outgoing call at the same time.
Gives the state of any call in progress on the channel (incoming or outgoing). The following table lists the possible states and the characters used to indicate them:
State | Char | The call is... |
---|---|---|
Accepting | a | in the process of being answered |
Connected | O | connected (outgoing) |
ConnectedIncoming | I | connected (incoming) |
Dialing | D | being dialed (outgoing) |
Idle | Z | gone idle but not yet released |
IncomingOffering | f | detected, but not yet accepted (incoming) |
Initialising | n | created, but is not yet being dialed (outgoing) |
Released | X | released - the channel is in a delay period before being reused |
Ringback | R | alerting at the far end and an ISDN signal to that effect has been received |
If the callinfo option (or its shortened form of ci) is used the output becomes more verbose, listing for each channel details of any call in progress (source and destination addresses, state) (Fig. 5).
The full state names are displayed rather than the single character versions.