[OpenSIPS-Devel] Package dependencies

Dan Pascu dan at ag-projects.com
Fri Mar 29 09:12:49 EDT 2019

On 29 Mar 2019, at 14:23, Răzvan Crainea wrote:

> Hi, Dan!
> opensipsctl will soon be dropped in favor of the new opensips-cli :).

While I agree with the sentiment and I'm all in favor of providing better tools written in better languages than bash scripting, while opensipsctl is still there it should be functional.

> That's why there was no time invested to support opensipsclt any longer, the json_pp was only a temporary hack to run some tests for the new MI interface.
> If you do want to make this change, then I do agree the python version is better.
> Cheers,
> Răzvan
> On 3/29/19 2:12 PM, Dan Pascu wrote:
>> Since migrating to the json format for MI, opensipsctl now uses json_pp which is part of perl. This would need ${perl:Depends} to be added to Depends (or at least Recommends) for opensips in debian/control.
>> Alternatively, since opensips already depends on python, json_pp can be replaced with:
>> python -c "import json,sys; print(json.dumps(json.loads(sys.stdin.read()), indent=3))"
>> which yields the same result. The advantage of the python version (besides avoiding an extra dependency) is that the order of the items in the output is always consistent (json_pp outputs items in a random order that differs from run to run).
>> Personally I prefer the python version since it offers 2 advantages while json_pp offers none. What do you think?
>> --
>> Dan
>> _______________________________________________
>> Devel mailing list
>> Devel at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
> -- 
> Răzvan Crainea
> OpenSIPS Core Developer
>  http://www.opensips-solutions.com
> Meet the OpenSIPS team at the next OpenSIPS Summit:
>  https://www.opensips.org/events
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel


More information about the Devel mailing list