I had a similar issue with my config rewriting on its own for supporting a PRI of less than 24 channels. A temporary workaround that was given to me was once the gateway is up and registered remove the "ccm-manager config" command once you reconfig ...