For sure Ovidiu. <div>Btw I'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="'courier new', monospace">#!/usr/bin/perl -w</font></div>
<div><font face="'courier new', monospace">use strict;</font></div><div><font face="'courier new', monospace">use warnings;</font></div><div><span style="font-family:'courier new',monospace">use Data::Dumper;</span></div>
<div><font face="'courier new', monospace">use XML::RPC;</font></div><div><span style="font-family:'courier new',monospace">my $xmlrpc = XML::RPC->new('<a href="http://192.168.2.137:8080/RPC'">http://192.168.2.137:8080/RPC'</a>);</span></div>
<div><span style="font-family:'courier new',monospace">my $result = $xmlrpc->call("lb_list", ());</span></div><div><span style="font-family:'courier new',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"><<a href="mailto:osas@voipembedded.com" target="_blank">osas@voipembedded.com</a>></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 <<a href="mailto:govoiper@gmail.com">govoiper@gmail.com</a>> wrote:<br>
> Thanks to both of you Elena and Ovidius - Since I'm not a php programmer so<br>
> I can't promise a patch at this stage, however, I am planning on spending<br>
> time on it and, like Elena said, can write somewhat dirty coding to dispatch<br>
> the MI commands to as many "remote" servers as defined and then the replies<br>
> be displayed in order received or something.<br>
><br>
> Ovidius I do know about these html,xml rpc modules but I'm kind of person<br>
> who needs some practical examples to understand how things work. I've kept<br>
> this module in memory and if I find any understandable example on<br>
> mailing-list or on internet I will definitely give this a try. Can you<br>
> redirect me to jump-start on this one! current sample code is not enough for<br>
> me to get going.<br>
><br>
> BR,<br>
> Sammy<br>
><br>
><br>
> On Mon, May 14, 2012 at 10:53 PM, Ovidiu Sas <<a href="mailto:osas@voipembedded.com">osas@voipembedded.com</a>> wrote:<br>
>><br>
>> For running mi commands on remote servers you could consider using the<br>
>> new xhttp_rpc module:<br>
>> <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>
>><br>
>> Regards,<br>
>> Ovidiu Sas<br>
>><br>
>> On Mon, May 14, 2012 at 1:45 PM, Elena-Ramona Modroiu <<a href="mailto:ramona@asipto.com">ramona@asipto.com</a>><br>
>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > current version of siremis does not support to send MI commands to<br>
>> > multiple<br>
>> > kamailio servers. One thing that has to be taken in consideration is<br>
>> > handling the MI replies. One option, they can be appended one after the<br>
>> > other and displayed in the text box of siremis page, separated by some<br>
>> > delimiter with details about the instance that replied (ip<br>
>> > address/port).<br>
>> ><br>
>> > If you submit the patch, it will be committed and released with the next<br>
>> > version. In case you plan more consistent contributions, once you have<br>
>> > them<br>
>> > developed, I can grant write access to <a href="http://sourceforge.net" target="_blank">sourceforge.net</a> git repository<br>
>> > for<br>
>> > siremis, so you will be able to commit yourself.<br>
>> ><br>
>> > Regards,<br>
>> > Ramona<br>
>> ><br>
>> ><br>
>> > On 5/14/12 8:33 AM, SamyGo wrote:<br>
>> ><br>
>> > Hello all,<br>
>> ><br>
>> > Following through the manual at<br>
>> > : <a href="http://kb.asipto.com/siremis:install32x:mi-commands" target="_blank">http://kb.asipto.com/siremis:install32x:mi-commands</a> I'm able to send<br>
>> > MI<br>
>> > commands on external/remote server But next hurdle is how can I define<br>
>> > multiple remote servers i.e<br>
>> ><br>
>> > <Remote name="remote0" address="127.0.0.1" port="8033"/><br>
>> > <Remote name="remote1" address="192.168.2.156" port="8033"/><br>
>> > <Remote name="remote2" address=" 192.168.2.150" port="8033"/><br>
>> ><br>
>> > Is there any already working configuration else I think I may need to<br>
>> > start<br>
>> > a surgery on siremisMICommands.php file and make it loop over the remote<br>
>> > tag<br>
>> > and disptach commands until loop ends.<br>
>> > is there any "MI-proxy" sort of thing available !!?<br>
>> ><br>
>> > Regards,<br>
>> > Sammy.<br>
>> ><br>
>> ><br>
>> ><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>
>> ><br>
>> ><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>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> VoIP Embedded, Inc.<br>
>> <a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a><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>
><br>
><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>
><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>