![Cisco Small Business SPA8800 Скачать руководство пользователя страница 29](http://html.mh-extra.com/html/cisco/small-business-spa8800/small-business-spa8800_configuring_63548029.webp)
Configuring the Cisco SPA8800 IP Telephony Gateway in an Asterisk Environment
© 2009 Cisco Systems, Inc. All rights reserved.
Page 29 of 69
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 Host Dyn Nat ACL Port Status
itsp1/3615551212 <ITSP IP Addr> N 5060 OK (110 ms)
pstn2/pstn2 192.168.2.237 N 5161 Unmonitored
104/104 (Unspecified) D N 0 UNKNOWN
103/103 (Unspecified) D N 0 UNKNOWN
102/102 192.168.2.237 D N 5160 OK (10 ms)
101/101 192.168.2.237 D N 5060 OK (9 ms)
201/201 192.168.2.19 D N 5060 Unmonitored
200/200 192.168.2.15 D N 5060 Unmonitored
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