PJSIP logging disapears after a config reload

Hi,

I need to log SIP messages for a specific set of connections unsing the PJSIP module.
For that I’ve added to ‘/etc/asterisk/cli.conf’ something like this:

pjsip set logger host {ip_address}/{netmask} = yes

This setting works fine after I restart asterisk.
Nevertheless, after I reload the configuration via FreePBX 15 reload button, this configuration is lost, i.e, logging from the PJSIP module is disabled.
Is this a bug on FreePBX or am I missing some logging configuration?

Not tested, but I think what you want is to add to /etc/asterisk/pjsip_custom_post.conf
[global](+type=global)
debug=1.2.3.4
or
debug=yes
to log all calls.

Then, restart Asterisk and test.

1 Like

@Stewart1Works perfectly. Thanks!

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