[SR-Users] CTL module and alternatives for remote execution mi commands.

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 7 14:51:25 CET 2012


Hello,

what version are you using? There was an enhancement to the ctl module 
to cope better with large data:

http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3d195f2675569954a1f74128508db07cbc604ed9

An alternative will be to fetch the data from database and send via 
mi/rpc only the command to end the dialog.

Cheers,
Daniel

On 12/7/12 2:21 PM, Pavel Zalunin wrote:
> Hi.
>
> In our project we need to query current users, dialogs and ability to 
> end dialog using some rpc. Requirements are - do this remotely. I 
> already tried to use xmlrpc module. When we had 42 users online it 
> returned 17kb broken xml file. Then I tried to use binrpc protocol 
> from CTL module. Usage ends with returning broken message too (in 
> case, when message is biger than 21kb).
> Are there any other more stable solutions to query mi information 
> using some tcp protocol?
>
> P.S. When I discovered sources of CTL module I found usage of writev - 
> here is the problem about partial packets, when buffer is longer, than 
> 21kb it don't pushes all vector buffers into socket. And in general, 
> this module is using async sockets, AFAIK writev don't gives any 
> guarantees, that it will write all vectors in async sockets.
>
> P.P.S. Of couse, last resort solution will be writing proxy for using 
> mi_fifo on kamailio side to forward all records to other servers, but 
> if there are more pretty solutions, please give me know:)
>
> Thanks.
> Pavel.
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20121207/8f01b7af/attachment.htm>


More information about the sr-users mailing list