Debug di Asterisk
Versione del 3 mag 2013 alle 19:39 di Dancast78 (discussione | contributi) (Comandi di debug, da ricontrollare e integrare)
Alcuni comandi utili per il debug di Asterisk:
lanciare un sessione CLI da shell con il comando(molte v=più verboso)
asterisk -vvvvr
Utile per controllare gli interni registrati sul centralino
raspberrypi*CLI> sip show peers Name/username Host Dyn Forcerport ACL Port Status 2000 (Unspecified) D N 0 UNKNOWN 2001/2001 192.168.1.124 D N 5060 OK (31 ms) 2002/2002 192.168.1.16 D N 5060 OK (1 ms) 2003 (Unspecified) D N 0 UNKNOWN sip.messagenet.it/5628527 212.97.59.76 N 5061 OK (48 ms) 6 sip peers [Monitored: 3 online, 3 offline Unmonitored: 0 online, 0 offline]
Controllare se il nostro numero si è registrato sul provider
sip show registry
Esempio di registrazione andata a buon fine
raspberrypi*CLI> sip show registry Host dnsmgr Username Refresh State Reg.Time sip.messagenet.it:5061 N 5xxxxxx 105 Registered Fri, 03 May 2013 19:30:38 1 SIP registrations.
debug di un singolo peer
sip set debug peer 2001
sip set debug ip indirizzo_provider
sip set debug ip sip.messagenet.it
ferma il debug (abbastanza verboso e forse poco utile)
sip set debug off
ferma tutti i debug
sip set debug off