Multiple Ips and Subnet Support: Pjsip Set Logger On Pjsip Show Endpoints Pjsip Show Registrations
Multiple Ips and Subnet Support: Pjsip Set Logger On Pjsip Show Endpoints Pjsip Show Registrations
sip reload
sip show registry
sngrep is a nice monitoring tool that comes preinstalled with Distro SNG7.
It’s easier to follow the SIP traffic than it is with sip debug from the command line which is easily clutterd
with messages you don’t need to see
if not installed you can install it with yum install sngrep
As well you can now use the “add” command to have an additional host or subnet logged:
Packets are placed into the pcap as UDP packets in all cases and they are unencrypted. This even applies
if you are using, for example, SIP over Websockets with TLS.
tail -f /var/log/kamailio/kamailio.log
STEP 1: Set the debug to a value higher than 1. For that you can use the following command:
kamctl fifo debug 3
Troubleshooting Asterisk
To troubleshoot Asterisk, take the following steps:
STEP 1: Set your logging level to /etc/asterisk/logger.conf and reload Asterisk logger module.
This allows an easier reading of the dialplan flow.
[logfiles]
console => notice,warning,error ; what to log on console
asterisk -rx 'logger reload'
STEP 3: Look through the console output and check whether your call ended in the dialplan
logic or in some application logic.
In order to find this out, you need to identify the last application run in the console log before the
hangup/crash and verify if any application errors or warnings occurred. If the last application
exited smoothly or no application was run, this means the dialplan logic ended the call and the
issue should be debugged at the dialplan level.
STEP 4: If an application reported an error, then turn on debug mode in logger.conf and identify
the last application that was run, along with the debug messages logged by this application.