[OpenSIPS-Users] Calling Exported MI Functions

Ali Pey alipey at gmail.com
Thu Jul 19 18:23:43 CEST 2012


Dinusha,

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.

Does this make sense?

Regards,
Ali Pey

On Thu, Jul 19, 2012 at 12:12 PM, Dinusha Kannangara <
dinusha.kannangara at gmail.com> wrote:

> 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
>>
>>
>
> _______________________________________________
> 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/09b095fa/attachment-0001.htm>


More information about the Users mailing list