add 'opus_application voip' to config if not already there

This commit is contained in:
Juha Heinanen
2018-12-02 08:18:49 +02:00
parent 916dabdddf
commit d535126d65
@@ -147,6 +147,10 @@ class BaresipService: Service() {
"module_app mwi.so") "module_app mwi.so")
write = true write = true
} }
if (!contents.contains("opus_application")) {
contents = "${contents}opus_application voip\n"
write = true
}
if (write) { if (write) {
Log.d(LOG_TAG, "Writing $contents") Log.d(LOG_TAG, "Writing $contents")
Utils.putFileContents(file, contents) Utils.putFileContents(file, contents)