Hello,

On 30.10.19 19:00, Alex Balashov wrote:
> On Wed, Oct 30, 2019 at 01:46:21PM -0400, Alex Balashov wrote:
>
>> On Wed, Oct 30, 2019 at 09:05:46AM +0100, Daniel-Constantin Mierla wrote:
>>
>>> The ctl module uses system malloc by default for its internal buffers
>>> related to rpc response, so it doesn't impact the allocated pkg memory.
>>>
>>> It might be better to switch to jsonrpcs, which does dynamic allocation
>>> for building rpc response (also using system malloc).
>> That's an interesting thought I hadn't considered. Kamcmd does support
>> JSONRPC as an underlying transport in place of the binrpc protocol used
>> by CTL, right?
> Oh, I see. kamcmd is binrpc-only... the main reason I used 'ctl' is
> because I became so accustomed to it, but really, interacting with
> JSONRPCS over FIFO is no worse, and yields actual JSON in the response.
> Thanks for the suggestion.

indeed the ctl is binrpc only.

The kamctl (bash script) or kamcli (python app) can be used with
jsonrpcs module.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - April 27-29, 2020, in Berlin -- 
www.kamailioworld.com


_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to