Troubleshooting With Asterisk Cli Commands; Sip Show Peers; Sip Show Peer <Peername - Cisco SPA8800 Configuring

Ip telephony gateway
Hide thumbs Also See for SPA8800:
Table of Contents

Advertisement

© 2009 Cisco Systems, Inc. All rights reserved.
Configuring the Cisco SPA8800 IP Telephony Gateway in an Asterisk Environment
Content-Length: 0

Troubleshooting with Asterisk CLI Commands

The following Asterisk CLI commands are useful for troubleshooting the environment:
core show version

sip show peers

sip show peer itsp1
sip show peer 200
sip show channels
sip show settings
sip show users
sip show user 200
sip show objects
core show channels
dialplan show
Connect to the Asterisk console with:
$ sudo asterisk –r
sip show peers
*CLI> sip show peers
Name/username
itsp1/3615551212
pstn2/pstn2
104/104
103/103
102/102
101/101
201/201
200/200
8 sip peers [Monitored: 3 online, 2 offline Unmonitored: 3 online, 0 offline]
*CLI>
sip show peer <PeerName>
This command is useful to verify the following:
Name, Context, and credentials. Following is an example where the DID and IP address have been
sanitized.
*CLI> sip show peer itsp1
* Name
: itsp1
Secret
: <Set>
MD5Secret
: <Not set>
Context
: itsp1
Subscr.Cont. : <Not set>
Language
:
AMA flags
: Unknown
Transfer mode: open
Host
Dyn Nat ACL Port
<ITSP IP Addr>
N
192.168.2.237
N
(Unspecified)
D
N
(Unspecified)
D
N
192.168.2.237
D
N
192.168.2.237
D
N
192.168.2.19
D
N
192.168.2.15
D
N
Status
5060
OK (110 ms)
5161
Unmonitored
0
UNKNOWN
0
UNKNOWN
5160
OK (10 ms)
5060
OK (9 ms)
5060
Unmonitored
5060
Unmonitored
Page 29 of 69

Advertisement

Table of Contents
loading

Table of Contents