<div dir="ltr">But wait, why are you using jsonrpc_exec for this? What you are talking about is a kamailio configuration parameter, not a system wide variable...<div><br></div><div>I don't know how you can change the value during runtime.</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 25, 2018 at 12:25 PM Joel Serrano <<a href="mailto:joel@textplus.com">joel@textplus.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Nicolas, <div><br></div><div>I don't think the format of your jsonrpc_exec is correct.</div><div><br></div><div>Try adding an 'id' and the 'params' to your jsonrpc_exec line:</div><div><br></div><div>jsonrpc_exec('{"jsonrpc": "2.0","method": "cfg.set","params": ["system.shutdownmode=1"],"id": 1}');<br></div><div><br></div><div><div>Haven't tried it myself.</div></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 25, 2018 at 11:53 AM Nicolas Breuer <<a href="mailto:Nicolas.Breuer@belcenter.biz" target="_blank">Nicolas.Breuer@belcenter.biz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div dir="auto">
<div dir="ltr"></div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Nobody can helps ???<br>
<br>
<br>
Début du message transféré :<br>
<br>
</div>
<blockquote type="cite">
<div dir="ltr"><b>Expéditeur:</b> Nicolas Breuer <<a href="mailto:Nicolas.Breuer@belcenter.biz" target="_blank">Nicolas.Breuer@belcenter.biz</a>><br>
<b>Date:</b> 22 octobre 2018 à 22:15:10 UTC+2<br>
<b>Destinataire:</b> "Kamailio (SER) - Users Mailing List" <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Objet:</b> <b>Rép :⁨ [SR-Users] Set a system variable in the request route⁩</b><br>
<br>
</div>
</blockquote>
<blockquote type="cite">
<div dir="ltr"><span>Hello,</span><br>
<span></span><br>
<span>I tried this but seems not working 😊</span><br>
<span></span><br>
<span>jsonrpc_exec('{"jsonrpc": "2.0", "method": "cfg.set", "system.shutdownmode": 1}');</span><br>
<span></span><br>
<span></span><br>
<span></span><br>
<span>-----Message d'origine-----</span><br>
<span>De : Nicolas Breuer </span><br>
<span>Envoyé : samedi 20 octobre 2018 16:08</span><br>
<span>À : Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>></span><br>
<span>Objet : RE: [SR-Users] Set a system variable in the request route</span><br>
<span></span><br>
<span>I set this line into my Kamailio.cfg </span><br>
<span></span><br>
<span>system.shutdownmode = "0"</span><br>
<span></span><br>
<span>I would like to change the value into the route.</span><br>
<span></span><br>
<span></span><br>
<span>-----Message d'origine-----</span><br>
<span>De : sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>> De la part de Alex Balashov Envoyé : vendredi 19 octobre 2018 18:29 À : Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>>
 Objet : Re: [SR-Users] Set a system variable in the request route</span><br>
<span></span><br>
<span>On Fri, Oct 19, 2018 at 03:26:11PM +0000, Nicolas Breuer wrote:</span><br>
<span></span><br>
<blockquote type="cite"><span>How can I change a system variable within the route ?</span><br>
</blockquote>
<span></span><br>
<span>What do you mean by "system variable"?</span><br>
<span></span><br>
<span>--</span><br>
<span>Alex Balashov | Principal | Evariste Systems LLC</span><br>
<span></span><br>
<span>Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)</span><br>
<span>Web: <a href="http://www.evaristesys.com/" target="_blank">http://www.evaristesys.com/</a>,
<a href="http://www.csrpswitch.com/" target="_blank">http://www.csrpswitch.com/</a></span><br>
<span></span><br>
<span>_______________________________________________</span><br>
<span>Kamailio (SER) - Users Mailing List</span><br>
<span><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a></span><br>
<span><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a></span><br>
</div>
</blockquote>
</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>
</blockquote></div>