Open hamsterksu opened 8 years ago
@hrosa
i think we should use/create some "smart" tool to edit xml files instead of sed
this tool should provide ability to edit xml document by xpath
sure we can create some python script and use it for this purpose.
it should be like
xml value controller/address new_value
xml attr resources/localConnection poolSize new_value
xml attr endpoints/endpoint[@name="mobicents/bridge/"] poolSize new_value
WDYT?
@hamsterksu this is something we've been discussing for some time, but unfortunately we never had the opportunity to actually do it.
Makes perfect sense to move to a proper xml editing tool, especially since the configuration files of RestComm platform grew quite complex.
@hamsterksu are you available to lead this effort?
@croufay can you please review work done by @hamsterksu on media server configuration script and sync with him? I know you're also doing some work related to this.
Here is the auto-config script used by ms-docker image.
@croufay any news here ? @leftyb can you also have a look at that ?
@hamsterksu @deruelle
We have implemented the configuration using xpath. Here is an example
Regards
Charles
@deruelle, @leftyb seems docker container doesn't contains the latest changes. last commit - 18 days ago docker image - 24 days ago https://hub.docker.com/r/restcomm/mediaserver-docker/tags/
thanks,
@hamsterksu mmm strange, just triggered a new build
new format - https://github.com/RestComm/Restcomm-Connect/issues/1020 https://github.com/RestComm/mediaserver/blob/issue70/bootstrap/src/main/config/mediaserver.xml