[SR-Users] Kamailio dump configuration and exit?

Henning Westerholt hw at skalatan.de
Sun Nov 8 12:39:24 CET 2020


Hi Brandon,

I do not think this is currently available, but it might be a good extension to add. 😊

There is a tool to print a “summary” of the cfg file, though:

henning at app01:~/repositories/kamailio$ python misc/tools/route_graph/route_graph.py etc/kamailio.cfg

Main
|
\- REQINIT
|
\- NATDETECT
|
\- RELAY
|
\- WITHINDLG
|  |
|  \- DLGURI
|  |
|  \- NATMANAGE
|  |
|  \- RELAY
|  |
|  \- PRESENCE
|  |  |
|  |  \- TOVOICEMAIL
|  |  |  |
|  |  |  \- RELAY
|  |
|  \- RELAY
|
\- AUTH
[…]

Cheers,

Henning

--
Henning Westerholt – https://skalatan.de/blog/
Kamailio services – https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Brandon Armstead
Sent: Saturday, November 7, 2020 2:36 AM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: [SR-Users] Kamailio dump configuration and exit?

Is there a similar hook to make kamailio dump its current configuration it is reading including ... included files, i.e. similar to nginx -T


root at main:/home/brandon# nginx -h

nginx version: nginx/1.14.2

Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g directives]



Options:

  -?,-h         : this help

  -v            : show version and exit

  -V            : show version and configure options then exit

  -t            : test configuration and exit

  -T            : test configuration, dump it and exit

  -q            : suppress non-error messages during configuration testing

  -s signal     : send signal to a master process: stop, quit, reopen, reload

  -p prefix     : set prefix path (default: /usr/share/nginx/)

  -c filename   : set configuration file (default: /etc/nginx/nginx.conf)

  -g directives : set global directives out of configuration file




Thanks for your time in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20201108/81aa70f8/attachment.htm>


More information about the sr-users mailing list