well, yeah I've seen them but maybe I dont understand how to use them. For an example lets take the load_balancer module.<br><br>To reload lb data from db I can use the lb_reload command. I know how to use it using the opensipsctl tool (opensipsctl fifo lb_reload).<br>
But I'm having trouble understanding how to use this...<br><br><pre class="programlisting"><font size="4"><b>:lb_reload:_reply_fifo_file_
_empty_line_</b></font></pre><br>Can you please explain how to use that ;)<br><br><div class="gmail_quote">On Thu, Jul 19, 2012 at 9:53 PM, Ali Pey <span dir="ltr"><<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dinusha,<div><br></div><div>Each module's documentation has it's exported MI functions at the end. All the commands for each module are listed there. That's why I send you two links, one for mi_xmlrpc module and one for the load_balancer module. </div>
<div><br></div><div>Does this make sense?</div><div><br></div><div>Regards,</div><div>Ali Pey<div><div class="h5"><br><br><div class="gmail_quote">On Thu, Jul 19, 2012 at 12:12 PM, Dinusha Kannangara <span dir="ltr"><<a href="mailto:dinusha.kannangara@gmail.com" target="_blank">dinusha.kannangara@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the reply mate ;)<br>It's nice to hear that this can be done and I assume the xmlprc request would have to be something like this,<br>
<br>POST /RPC2 HTTP/1.0<br>Host: 127.0.0.1<br>Connection: close<br>User-Agent: OpenSIPg XML_RPC Client<br>
Content-Type: text/xml<br>Content-Length: 1000<br><br><?xml version="1.0" ?><br><methodCall><br> <methodName>get_statistics</methodName><br> <params><br> <param><br>
<value><string>dialog:</string></value><br> </param><br> <param><br> <value><string>tm:</string></value><br> </param><br>
</params><br></methodCall><br><br>and it seem to be the one to execute get_statistics dialog MI command.<br><br><b>So, how am I supposed to find other xmlrpc requests to call other MI commands ?<br>Or is there a way to derive others from this ?</b><br>
<br>We have an existing contact center system which is based on C# language and opensips will be integrated to the system to improve it further. So, going for PHP or even using the OPC Tool is out of the question for me.<div>
<div><br>
<br><div class="gmail_quote">On Thu, Jul 19, 2012 at 6:31 PM, Ali Pey <span dir="ltr"><<a href="mailto:alipey@gmail.com" target="_blank">alipey@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Dunusha,<div><br></div><div>Yes, this can be done and I use it myself - not from windows though.</div><div><br></div><div>First you need to add the mi_xmlrpc module to your opensips server. Then you can execute any mi commands remotely:</div>
<div><br></div><div><a href="http://www.opensips.org/html/docs/modules/1.8.x/mi_xmlrpc.html" target="_blank">http://www.opensips.org/html/docs/modules/1.8.x/mi_xmlrpc.html</a> </div><div><br></div><div><a href="http://www.opensips.org/html/docs/modules/1.8.x/load_balancer.html" target="_blank">http://www.opensips.org/html/docs/modules/1.8.x/load_balancer.html</a></div>
<div><br></div><div>Or you can simply use opensips-cp. You can make changes and apply the changes all through that. It's all PHP and you can include them in your web interface. You can also simply remove the pages you don't need or use.</div>
<div><br></div><div>Regards,</div><div>Ali Pey</div><div><br></div><div><br><div class="gmail_quote"><div><div>On Thu, Jul 19, 2012 at 8:12 AM, Dinusha Kannangara <span dir="ltr"><<a href="mailto:dinusha.kannangara@gmail.com" target="_blank">dinusha.kannangara@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Hi all,<br><br>When a new entry is added to the load_balancer table, I want the newly added entries to be loaded to opensips without having to restart it.<br>
I know this can be achieved through the Exported MI Functions either by using opensipsctl tool or using the Opensips CP Tool.<br>
<br>I've heard that OCP Tool uses XML-RPC to execute these functions.<br>I want to call these MI functions from a client application developed on windows OS. Can this be done if I send a HTTP request using XML-RPC from my client app to opensips server ?<br>
<br>If this can be done, then what should I be sending in the request body to get this working ?<br><br>Thank You. :)<br><br>Regards<span><font color="#888888"><br>Dinusha<br>
</font></span><br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br>