Getting zero values on MOS score

266 views
Skip to first unread message

Giovanni Jose

unread,
Dec 19, 2023, 2:17:50 PM12/19/23
to rtpengine


Hello sipwise

We are trying to obtain the MOS score with measure-rtp mos=LQ and set generqte-RTCP in the kamailio flags enabled, but we are not receiving any values.

I am executing the rtpengine like this:
/usr/local/bin/rtpengine --config-file=none --log-stderr --measure-rtp --no-fallback --foreground --port-min=35000 --port-max=45000 --log-level=7 --interface=xxx.xx.4.30 --listen-ng=xxx.xx.4.30:5050 --mos=LQ --mqtt-port=1883 --mqtt-host=xxx.xx.4.20 --mqtt-publish-scope=global --mqtt-publish-topic=rtpenginevoip --mqtt-publish-qos=1

Richard Fuchs

unread,
Dec 21, 2023, 10:22:44 AM12/21/23
to rtpe...@googlegroups.com

How to reproduce? Because it Works For Me™

Dec 21 16:18:00.612833 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] Final packet stats:
Dec 21 16:18:00.612856 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] --- Tag '«a478edf7fb3b9490»' (label 'caller'), created 1:24 ago for branch '«»'
Dec 21 16:18:00.612864 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] ------ Media #1 (audio over RTP/AVP) using PCMA/8000
Dec 21 16:18:00.612874 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] --------- Port   192.168.1.167:39236 <> «   192.168.1.66:14610», SSRC «3f7acfd7», in 2743 p, 471796 b, 0 e, 29 ts, out 1796 p, 307918 b, 0 e
Dec 21 16:18:00.612883 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] --------- Port   192.168.1.167:39237 <> «   192.168.1.66:14611» (RTCP), SSRC «0», in 0 p, 0 b, 0 e, 84 ts, out 0 p, 0 b, 0 e
Dec 21 16:18:00.612892 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] --- SSRC «3f7acfd7»
Dec 21 16:18:00.612900 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] ------ Average MOS 4.4, lowest MOS 4.4 (at 0:16), highest MOS 4.4 (at 0:16) lost:0
Dec 21 16:18:00.612909 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] ------ respective (avg/min/max) jitter 0/0/0 ms, RTT-e2e 0.0/0.0/0.0 ms, RTT-dsct 0.0/0.0/0.0 ms, packet loss 0/0/0%
Dec 21 16:18:00.612918 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] --- Tag '«7d1c152b-b223-462f-b77c-7005cbcbbc32»' (label 'callee'), created 1:24 ago for branch '«z9hG4bK80c6.3c6294283176c0bace6179ddcd7cbcb2.0»'
Dec 21 16:18:00.612960 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] ------ Media #1 (audio over RTP/AVP) using PCMA/8000
Dec 21 16:18:00.612969 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] --------- Port       127.0.0.1:37572 <> «      127.0.0.1:11668», SSRC «7d8bda66», in 1796 p, 307918 b, 0 e, 29 ts, out 2743 p, 471796 b, 0 e
Dec 21 16:18:00.612986 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] --------- Port       127.0.0.1:37573 <> «      127.0.0.1:11669» (RTCP), SSRC «0», in 0 p, 0 b, 0 e, 84 ts, out 0 p, 0 b, 0 e
Dec 21 16:18:00.612994 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] --- SSRC «7d8bda66»
Dec 21 16:18:00.613003 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] ------ Average MOS 4.4, lowest MOS 4.4 (at 0:05), highest MOS 4.4 (at 0:05) lost:0
Dec 21 16:18:00.613011 spce rtpengine[31506]: INFO: [«ff3ee1c825b436e7»]: [core] ------ respective (avg/min/max) jitter 1/2/2 ms, RTT-e2e 0.0/0.0/0.0 ms, RTT-dsct 0.0/0.0/0.0 ms, packet loss 0/0/0%

Giovanni Jose

unread,
Jan 3, 2024, 2:16:13 PM1/3/24
to rtpengine
Hello Richard, 
Thanks so much for the response, I really appreciate that.

Which version on RTPengine an kamalio are you using? Also can you send me how are you executing the application and which configuration are you using??

In my case I am using:
rtpengine version: mr12.0.1.1
Kamailio Config:
# ----------------- setting module-specific parameters --------------- modparamx("rtpengine", "rtpengine_sock", "udp:$def(RTPENGINE):5050")


Kamailio route:
if ( is_method("INVITE") ) { if (has_body("application/sdp")) { rtpengine_manage("generate-RTCP"); xinfo("Request has sdp send rtp to " " rtp engine RURI: [$ru], From: [$fu], To: [$tu]\n"); } setflag(FLT_ACC); # do accounting }

Richard Fuchs

unread,
Jan 4, 2024, 1:26:13 PM1/4/24
to rtpe...@googlegroups.com
On 03/01/2024 14.16, [EXT] Giovanni Jose wrote:
> Hello Richard,
> Thanks so much for the response, I really appreciate that.
>
> Which version on RTPengine an kamalio are you using? Also can you send
> me how are you executing the application and which configuration are
> you using??

Pretty much exactly what you posted except that I used current master.
`generate-RTCP` was set for both offers and answers, with the full
config file (including all irrelevant options):

[rtpengine]

listen-ng = 127.0.0.1:2223;[::1]:2223
listen-cli = 127.0.0.1:2224
listen-http = 127.0.0.1:2225
janus-secret = ...
interface = ext/192.168.1.169;int/127.0.0.1;int/::1
timeout = 60
silent-timeout = 3600
foreground = true
tos = 184
port-min = 30000
port-max = 44999
b2b-url = http://%%:8090/
no-fallback = false
log-level = 6
log-level-codec = 7
log-level-control = 7
log-level-crypto = 7
log-level-ice = 7
log-level-http = 6
log-level-srtp = 6
log-level-transcoding = 6
log-level-internals = -1
split-logs = 1
max-log-line-length = 4000
recording-dir = /var/spool/rtpengine
recording-method = proc
table = 0
nftables-chain = rtpengine
nftables-base-chain = INPUT
iptables-chain =
delete-delay = 30
max-sessions = -1
max-load = 0
max-cpu = 0
max-bandwidth = 0
scheduling = default
priority = 0
idle-scheduling = default
idle-priority = 0
mysql-host = localhost
mysql-port = 3306
mysql-user = rtpengine
mysql-pass = ...
mysql-query = select data from provisioning.voip_sound_files where id = %llu
log-mark-prefix = «
log-mark-suffix = »
endpoint-learning = heuristic
dtls-rsa-key-size = 2048
dtls-ciphers =
DEFAULT:!NULL:!aNULL:!SHA256:!SHA384:!aECDH:!AESGCM+AES256:!aPSK
dtls-signature = SHA-256
dtx-delay = 0
max-dtx = 0
dtx-buffer = 10
dtx-lag = 100
dtx-shift = 5
amr-dtx = native
dtx-cn-params = 35
silence-detect = 0.0
cn-payload = 32
measure-rtp = true
mos = LQ
audio-buffer-length = 500
audio-buffer-delay = 5
audio-player = on demand
record-egress = false

Giovanni Jose

unread,
Jan 10, 2024, 2:04:23 PM1/10/24
to rtpengine
Awesome, thanks Richard, I just need to configure something on kamailio because the routing is not correct but I am getting the values now :) I will let you know when everything is working.
Thanks!

Reply all
Reply to author
Forward
0 new messages