<div dir="auto">Hey! Didn’t know that one! Very cool! Thanks!</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 8 Nov 2020 at 11:40, Henning Westerholt <<a href="mailto:hw@skalatan.de">hw@skalatan.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">





<div lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="m_3520903897208413474WordSection1">
<p class="MsoNormal"><span>Hi Brandon,<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">I do not think this is currently available, but it might be a good extension to add.
</span><span lang="EN-GB" style="font-family:"Segoe UI Emoji",sans-serif">😊</span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">There is a tool to print a “summary” of the cfg file, though:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">henning@app01:~/repositories/kamailio$ python misc/tools/route_graph/route_graph.py etc/kamailio.cfg<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Main<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">\- REQINIT<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">\- NATDETECT<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">\- RELAY<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">\- WITHINDLG<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  |<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  \- DLGURI<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  |<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  \- NATMANAGE<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  |<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  \- RELAY<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  |<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  \- PRESENCE<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  |  |<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  |  \- TOVOICEMAIL<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  |  |  |<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  |  |  \- RELAY<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  |<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|  \- RELAY<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">|<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">\- AUTH<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">[…]<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Cheers,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">-- <u></u>
<u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Henning Westerholt –
</span><span><a href="https://skalatan.de/blog/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://skalatan.de/blog/</span></a></span><span lang="EN-GB"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-GB">Kamailio services –
</span><span><a href="https://gilawa.com/" target="_blank"><span lang="EN-GB" style="color:rgb(5,99,193)">https://gilawa.com</span></a></span><span>
<span lang="EN-GB"><u></u><u></u></span></span></p></div></div><div lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"><div class="m_3520903897208413474WordSection1">
<p class="MsoNormal"><span lang="EN-GB"><u></u> <u></u></span></p>
<div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0cm 0cm;border-top-color:rgb(225,225,225)">
<p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>Brandon Armstead<br>
<b>Sent:</b> Saturday, November 7, 2020 2:36 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b> [SR-Users] Kamailio dump configuration and exit?<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Is there a similar hook to make kamailio dump its current configuration it is reading including ... included files, i.e. similar to nginx -T<u></u><u></u></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><u></u> <u></u></p>
</div>
<div>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">root@main:/home/brandon# nginx -h</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">nginx version: nginx/1.14.2</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g directives]</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p2" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;min-height:13px">
<span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u> <u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">Options:</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"> 
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">-?,-h
</span></span><span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">       
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">: this help</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"> 
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">-v</span></span><span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">           
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">: show version and exit</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"> 
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">-V</span></span><span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">           
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">: show version and configure options then exit</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"> 
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">-t</span></span><span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">           
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">: test configuration and exit</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"> 
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">-T</span></span><span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">           
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">: test configuration, dump it and exit</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"> 
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">-q</span></span><span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">           
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">: suppress non-error messages during configuration testing</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"> 
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">-s signal
</span></span><span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">   
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">: send signal to a master process: stop, quit, reopen, reload</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"> 
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">-p prefix
</span></span><span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">   
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">: set prefix path (default: /usr/share/nginx/)</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"> 
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">-c filename
</span></span><span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"> 
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">: set configuration file (default: /etc/nginx/nginx.conf)</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span class="m_3520903897208413474gmail-apple-converted-space"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"> 
</span></span><span class="m_3520903897208413474gmail-s1"><span style="font-size:8.5pt;font-family:Menlo,serif;color:black">-g directives : set global directives out of configuration file</span></span><span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u><u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u> <u style="font-family:Menlo,serif"></u></span></p>
<p class="m_3520903897208413474gmail-p1" style="margin-right:0cm;margin-bottom:0cm;margin-left:35.4pt;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal">
<span style="font-size:8.5pt;font-family:Menlo,serif;color:black"><u style="font-family:Menlo,serif"></u> <u style="font-family:Menlo,serif"></u></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">Thanks for your time in advance!<u></u><u></u></p>
</div>
</div>
</div>
</div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>