Skip to content

Instantly share code, notes, and snippets.

View seanbright's full-sized avatar
🏠
Working from home

Sean Bright seanbright

🏠
Working from home
View GitHub Profile
res_rtp_asterisk.c: Correct coefficient in MOS calculation.
Media Experience Score relies on incorrect pseudo_mos variable
calculation. According to forming an opinion section of the
documentation, calculation relies on ITU-T G.107 standard:
https://docs.asterisk.org/Deployment/Media-Experience-Score/#forming-an-opinion
ITU-T G.107 Annex B suggests to calculate MOS with a coefficient
"seven times ten to the power of negative six", 7 * 10^(-6). which
@seanbright
seanbright / gist:f8331df57aacdd06b6d391dfec2f59c6
Created March 28, 2023 13:53
0001-cdr_sqlite3_custom-Make-database-file-path-configura.patch
From ec76a68ff3eb8acf308608a907b23e6f5b593fb8 Mon Sep 17 00:00:00 2001
From: Sean Bright <sean@seanbright.com>
Date: Tue, 28 Mar 2023 08:58:51 -0400
Subject: [PATCH] cdr_sqlite3_custom: Make database file path configurable.
Change-Id: I85263ad6b2bd96cd0ee55b1940fe976e05d81b84
---
cdr/cdr_sqlite3_custom.c | 18 +++++++++++++++---
configs/samples/cdr_sqlite3_custom.conf.sample | 3 ++-
2 files changed, 17 insertions(+), 4 deletions(-)
16:45:25.416 [INFO] [aQute.maven.provider.MavenRepository] Release biz.aQute.bnd:biz.aQute.jpm.run:3.3.0 to MavenRepository [base=C:\Users\bjhargrave\.m2\repository, id=Local, release=[], snapshot=[], localOnly=true]
16:45:25.473 [DEBUG] [aQute.bnd.build.Project] Reported exception
java.nio.file.FileSystemException: C:\WindowsIsAwesome\bnd\cnf\local.mvn: The process cannot access the file because it is being used by another process.
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:376)
at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
at java.nio.file.Files.move(Files.java:1395)