[OpenSIPS-Users] Calling Exported MI Functions
Dinusha Kannangara
dinusha.kannangara at gmail.com
Thu Jul 19 18:12:32 CEST 2012
Thanks for the reply mate ;)
It's nice to hear that this can be done and I assume the xmlprc request
would have to be something like this,
POST /RPC2 HTTP/1.0
Host: 127.0.0.1
Connection: close
User-Agent: OpenSIPg XML_RPC Client
Content-Type: text/xml
Content-Length: 1000
<?xml version="1.0" ?>
<methodCall>
<methodName>get_statistics</methodName>
<params>
<param>
<value><string>dialog:</string></value>
</param>
<param>
<value><string>tm:</string></value>
</param>
</params>
</methodCall>
and it seem to be the one to execute get_statistics dialog MI command.
*So, how am I supposed to find other xmlrpc requests to call other MI
commands ?
Or is there a way to derive others from this ?*
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.
On Thu, Jul 19, 2012 at 6:31 PM, Ali Pey <alipey at gmail.com> wrote:
> Hi Dunusha,
>
> Yes, this can be done and I use it myself - not from windows though.
>
> First you need to add the mi_xmlrpc module to your opensips server. Then
> you can execute any mi commands remotely:
>
> http://www.opensips.org/html/docs/modules/1.8.x/mi_xmlrpc.html
>
> http://www.opensips.org/html/docs/modules/1.8.x/load_balancer.html
>
> 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.
>
> Regards,
> Ali Pey
>
>
> On Thu, Jul 19, 2012 at 8:12 AM, Dinusha Kannangara <
> dinusha.kannangara at gmail.com> wrote:
>
>> Hi all,
>>
>> 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.
>> I know this can be achieved through the Exported MI Functions either by
>> using opensipsctl tool or using the Opensips CP Tool.
>>
>> I've heard that OCP Tool uses XML-RPC to execute these functions.
>> 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 ?
>>
>> If this can be done, then what should I be sending in the request body to
>> get this working ?
>>
>> Thank You. :)
>>
>> Regards
>> Dinusha
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120719/90741fd9/attachment.htm>
More information about the Users
mailing list