To Siremis Admin,<div><br></div><div>I&#39;m a bit of a php rookie, and even more of a noob with openbiz cubi, but I&#39;ve burnt a day and a half trying to implement a new button on the SER Menu &gt; Server Services &gt; Dialplan List page, and curious if you could give some words of advice concerning my plight.</div>
<div><br></div><div>Ideally, I would like dialplan to auto update the Kamailio mySQL database with the dp_reload feature; I am simply sick of bouncing Kamailio with a &quot;kamctl restart&quot; from the command line each time I implement a change to the dialplan in Siremis.</div>
<div><br></div><div>I have successfully enabled this feature on the drop-down menu in SER Menu &gt; Command Services &gt; MI Commands, however, I don&#39;t want to have to navigate to the MI Commands page each time I wish to refresh dialplan. In siremisMICommands.xml, I was able to activate dp_reload with the following code:</div>
<div><br></div><div>(taken from siremisMICommands.xml)</div><div><br></div><div><div>&lt;?xml version=&quot;1.0&quot; standalone=&quot;no&quot;?&gt;</div><div>&lt;PluginService Name=&quot;siremisMICommands&quot; Package=&quot;asipto&quot; Class=&quot;siremisMICommands&quot;&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;MIConfig name=&quot;MIConfig&quot; type=&quot;udp&quot; mode=&quot;rich&quot;&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;Local name=&quot;local&quot; address=&quot;127.0.0.1&quot; port=&quot;8044&quot; timeout=&quot;3.0&quot;/&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;Remote name=&quot;remote&quot; address=&quot;127.0.0.1&quot; port=&quot;8033&quot;/&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;MICommands&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;cmd name=&quot;ps&quot; title=&quot;List Processes&quot; command=&quot;ps&quot;/&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;cmd name=&quot;uptime&quot; title=&quot;Show Uptime&quot; command=&quot;uptime&quot;/&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;cmd name=&quot;getstatsall&quot; title=&quot;Get All Statistics&quot; command=&quot;get_statistics all&quot;/&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>&lt;cmd name=&quot;which&quot; title=&quot;Get All MI Commands&quot; command=&quot;which&quot;/&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span><span class="Apple-style-span" style="background-color: rgb(255, 255, 0);">&lt;cmd name=&quot;dp_reload&quot; title=&quot;Reload Dailplan&quot; command=&quot;dp_reload&quot;/&gt;        &lt;------ Code I added, WORKS!</span></div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>&lt;/MICommands&gt;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;/MIConfig&gt;</div><div>&lt;/PluginService&gt;</div><div><br>
</div><div><br></div><div>Here&#39;s where I&#39;m stuck: I can&#39;t seem to get a new button to implement dp_reload in the DialplanListForm.xml. I&#39;m not sure if I need to write a function to call dp_reload, or if I can simply activate dp_reload from the DialplanListForm.xml. The code I have written creates a button on the  SER Menu &gt; Server Services &gt; Dialplan List page, but thats as far as I&#39;ve gotten. My code currently looks like this:</div>
<div><br></div><div>(taken from DialplanListForm.xml)</div><div><br></div><div><div>&lt;Element Name=&quot;btn_refresh&quot; Class=&quot;Button&quot; Text=&quot;Activate&quot; CssClass=&quot;button_gray_m&quot; Description=&quot;Refresh dialplan in Kamailio without restarting Kamailio&quot;&gt;</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>    &lt;EventHandler Name=&quot;dp_reload&quot; Event=&quot;onclick&quot; EventLogMsg=&quot;&quot; Function=&quot;&quot; ContextMenu=&quot;Activate&quot;/&gt;</div>
<div>&lt;/Element&gt;</div></div><div><br></div><div>Anything you can say would be most helpful, as this is a feature I&#39;m sure many using Siremis would appreciate having.</div><div><br></div><div>Best, </div>-- <br>R. Z. Feeser<br>
717.460.8095<br><a href="http://www.RZFeeser.com">www.RZFeeser.com</a><br><a href="http://www.NaturaGardens.com">www.NaturaGardens.com</a><br>
</div>