For sure Ovidiu. <div>Btw I&#39;ve found a perl script from my seniors which is an excellent working example for me to implement in minutes.</div><div><br></div><div><div><font face="&#39;courier new&#39;, monospace">#!/usr/bin/perl -w</font></div>
<div><font face="&#39;courier new&#39;, monospace">use strict;</font></div><div><font face="&#39;courier new&#39;, monospace">use warnings;</font></div><div><span style="font-family:&#39;courier new&#39;,monospace">use Data::Dumper;</span></div>
<div><font face="&#39;courier new&#39;, monospace">use XML::RPC;</font></div><div><span style="font-family:&#39;courier new&#39;,monospace">my $xmlrpc = XML::RPC-&gt;new(&#39;<a href="http://192.168.2.137:8080/RPC&#39;">http://192.168.2.137:8080/RPC&#39;</a>);</span></div>
<div><span style="font-family:&#39;courier new&#39;,monospace">my $result = $xmlrpc-&gt;call(&quot;lb_list&quot;, ());</span></div><div><span style="font-family:&#39;courier new&#39;,monospace">print $result;</span></div>
<div><br></div><div>Though this works with OpenSIPS at the moment but I can definitely make it work for kamailio.!! what do you think. </div><div><br></div><div>All I need to do is parse the siremisXMLcommands.xml find out the number of remote servers defined and create new RPC sockets for each and dispatch my command , and return replies be printed accordingly.</div>
<div><br></div><div>I will be integrating this short perl script in the siremis button and viola !!</div><div><br></div><div>Thanks,</div><div>BR</div><div>Sammy.</div><div><br></div><div> </div><br><div class="gmail_quote">
On Tue, May 15, 2012 at 5:10 PM, Ovidiu Sas <span dir="ltr">&lt;<a href="mailto:osas@voipembedded.com" target="_blank">osas@voipembedded.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The example that is provided in the README file is all you need to get<br>
the web management interface up and running.<br>
After that, you can access through the web interface all available rpc<br>
commands.  The syntax is similar with sercmd or kamctl.<br>
If you experience any issues, please report them on the mailing list.<br>
<br>
Regards,<br>
Ovidiu Sas<br>
<div class="im HOEnZb"><br>
--<br>
VoIP Embedded, Inc.<br>
<a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">On Tue, May 15, 2012 at 12:49 AM, SamyGo &lt;<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>&gt; wrote:<br>
&gt; Thanks to both of you Elena and  Ovidius - Since I&#39;m not a php programmer so<br>
&gt; I can&#39;t promise a patch at this stage, however, I am planning on spending<br>
&gt; time on it and, like Elena said, can write somewhat dirty coding to dispatch<br>
&gt; the MI commands to as many &quot;remote&quot; servers as defined and then the replies<br>
&gt; be displayed in order received or something.<br>
&gt;<br>
&gt; Ovidius I do know about these html,xml rpc modules but I&#39;m kind of person<br>
&gt; who needs some practical examples to understand how things work. I&#39;ve kept<br>
&gt; this module in memory and if I find any understandable example on<br>
&gt; mailing-list or on internet I will definitely give this a try. Can you<br>
&gt; redirect me to jump-start on this one! current sample code is not enough for<br>
&gt; me to get going.<br>
&gt;<br>
&gt; BR,<br>
&gt; Sammy<br>
&gt;<br>
&gt;<br>
&gt; On Mon, May 14, 2012 at 10:53 PM, Ovidiu Sas &lt;<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; For running mi commands on remote servers you could consider using the<br>
&gt;&gt; new xhttp_rpc module:<br>
&gt;&gt; <a href="http://kamailio.org/docs/modules/devel/modules/xhttp_rpc.html" target="_blank">http://kamailio.org/docs/modules/devel/modules/xhttp_rpc.html</a><br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Ovidiu Sas<br>
&gt;&gt;<br>
&gt;&gt; On Mon, May 14, 2012 at 1:45 PM, Elena-Ramona Modroiu &lt;<a href="mailto:ramona@asipto.com">ramona@asipto.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt; Hi,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; current version of siremis does not support to send MI commands to<br>
&gt;&gt; &gt; multiple<br>
&gt;&gt; &gt; kamailio servers. One thing that has to be taken in consideration is<br>
&gt;&gt; &gt; handling the MI replies. One option, they can be appended one after the<br>
&gt;&gt; &gt; other and displayed in the text box of siremis page, separated by some<br>
&gt;&gt; &gt; delimiter with details about the instance that replied (ip<br>
&gt;&gt; &gt; address/port).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; If you submit the patch, it will be committed and released with the next<br>
&gt;&gt; &gt; version. In case you plan more consistent contributions, once you have<br>
&gt;&gt; &gt; them<br>
&gt;&gt; &gt; developed, I can grant write access to <a href="http://sourceforge.net" target="_blank">sourceforge.net</a> git repository<br>
&gt;&gt; &gt; for<br>
&gt;&gt; &gt; siremis, so you will be able to commit yourself.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Regards,<br>
&gt;&gt; &gt; Ramona<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On 5/14/12 8:33 AM, SamyGo wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Hello all,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Following through the manual at<br>
&gt;&gt; &gt; : <a href="http://kb.asipto.com/siremis:install32x:mi-commands" target="_blank">http://kb.asipto.com/siremis:install32x:mi-commands</a>  I&#39;m able to send<br>
&gt;&gt; &gt; MI<br>
&gt;&gt; &gt; commands on external/remote server But next hurdle is how can I define<br>
&gt;&gt; &gt; multiple remote servers i.e<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &lt;Remote name=&quot;remote0&quot; address=&quot;127.0.0.1&quot; port=&quot;8033&quot;/&gt;<br>
&gt;&gt; &gt; &lt;Remote name=&quot;remote1&quot; address=&quot;192.168.2.156&quot; port=&quot;8033&quot;/&gt;<br>
&gt;&gt; &gt; &lt;Remote name=&quot;remote2&quot; address=&quot; 192.168.2.150&quot; port=&quot;8033&quot;/&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Is there any already working configuration else I think I may need to<br>
&gt;&gt; &gt; start<br>
&gt;&gt; &gt; a surgery on siremisMICommands.php file and make it loop over the remote<br>
&gt;&gt; &gt; tag<br>
&gt;&gt; &gt; and disptach commands until loop ends.<br>
&gt;&gt; &gt; is there any &quot;MI-proxy&quot; sort of thing available !!?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Regards,<br>
&gt;&gt; &gt; Sammy.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt; &gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt; &gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; VoIP Embedded, Inc.<br>
&gt;&gt; <a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>