[OpenSIPS-Devel] Package dependencies

Răzvan Crainea razvan at opensips.org
Fri Mar 29 08:23:30 EDT 2019

Hi, Dan!

opensipsctl will soon be dropped in favor of the new opensips-cli :). 
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 
If you do want to make this change, then I do agree the python version 
is better.


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
Meet the OpenSIPS team at the next OpenSIPS Summit:

More information about the Devel mailing list