add 'opus_application voip' to config if not already there
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user