How to see SIP registrations in Asterisk Logfiles Report?

I want to see these types of lines in the logfiles report:
[2023-06-15 16:19:32] VERBOSE[2503] chan_sip.c: Registered SIP ‘2041’ at x.x.x.x

I have one FreePBX box that is listing them properly and the other is not.

They both have verbose and debug set to ON in the log file settings.

Verbosity has to be at least 3, and the address has to have changed.

1 Like

I know how to set the verbosity in the CLI, but not in the FreePBX menus. Any idea where that is?

BTW thanks for pulling up that code and following the logic :slight_smile:

Pretty sure that’s only done in the CLI and it remembers what you had set before.

1 Like

CLI settings are not persisted over a restart.

Thanks for the correction.

You should be safe setting verbose and debug levels in /etc/asterisk/asterisk.conf
It is ‘what is remembered’

Hey guys, thanks for all the replies and suggestions. I just compared /etc/asterisk/asterisk.conf between the two FreePBX boxes and they are both identical.

After thinking about that code, I am not so sure that is the snippet where it decides to print SIP registrations to the log file. Because I get them all the time on “Box 1” where the IP address does not change. Any other ideas possibly? I would be most appreciative to get this fixed. I was thinking of asking ChatGPT in a little while to see just how smart it is or not, haha :slight_smile:

It looks like I may have got a forked chan_sip. The problem with chan_sip is that is no longer present in the master branch of the Asterisk source code, so Google can’t be relied on to return the right project from github. I’ll track down the end of life version.

It is still only produced for changes in 20.2. Unfortunately the source file is too big for github to generate anchors for ever line, but it is line 17187: asterisk/channels/chan_sip.c at 20.2 · asterisk/asterisk · GitHub

Tests the address back to, at least, 1.6.0

verbose
Hey, look what I just found in the drop-down… Maybe I can try to change it to lv4? ChatGPT’s advice, so I guess it is gathering sentience after all.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.