trixie_no5
(Gunter Treichel)
August 21, 2019, 5:48am
1
Do the results of sip set debug on or pjsip set logger on output results to a file? It is difficult to capture the outputs from the command line.
Stewart1
(Stewart)
August 21, 2019, 6:01am
2
Sure, they are included in the regular Asterisk log. View in GUI at Reports -> Asterisk Logfiles, or access the raw file
/var/log/asterisk/full
avayax
(Johann Zurner)
August 21, 2019, 7:28am
3
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.
There has to be a better way!
You will periodically see references here in the forum to sngrep. Starting in Distro SNG7, the sngrep utility is installed by default, and if not installed you can install it with yum install sngrep
. From the bash prompt you run it by typing sngrep
. When run without any arguments, sngrep will show you all SIP packets inbound and outbound on all interfaces in real time. Horizontally across the bottom are individual menus that can be triggered with the F keys. Individual SIP dialogs are displayed vertically on the main screen. Up/Down arrow keys are used to move between dialogs, and enter is used to view the highlighted SIP dialog. Space bar is used to toggle select for one or more dialogs for further action. Escape is used to back up a screen or exit the program.
On a busy system, the main screen quickly becomes cluttered with lots of SIP dialogs, the majority of which you probably don’t care about. The fist step for me is usually to press F7 (filter) and using arrow keys and space bar, disable display of all packet types that don’t interest you. If you are debugging a registration issue, disable everything except REGISTER. To debug calls, diable everything except INVITE. When you press enter to activate the filter, only dialogs of interest are shown. On very busy systems you may need to press F3 and enter a filter string such as an extension number or IP address to further filter dialogs.
1 Like
trixie_no5
(Gunter Treichel)
August 21, 2019, 11:05am
4
sngrep is an excellent tool, thanks!
system
(system)
Closed
August 28, 2019, 11:17am
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.