<p></p>
<p>Hi <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/henningw/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/henningw">@henningw</a> , the issue got resolved on the way. Unsure what actually could've led to its correct working, however some possible guesses are</p>
<ol>
<li>Re-setting the labels for legs on BYE request on ksr_route_relay</li>
</ol>
<pre><code>        KSR.pv.sets("$avp(mos_A_label)", "Aleg_label");
        KSR.pv.sets("$avp(mos_B_label)", "Bleg_label");
</code></pre>
<ol start="2">
<li>using the query function before delete</li>
</ol>
<pre><code>        KSR.rtpengine.rtpengine_query0()
        KSR.rtpengine.rtpengine_delete0()
</code></pre>
<ol start="3">
<li>using the dialog end event to extract call leg media stats too</li>
</ol>
<pre><code>function ksr_dialog_event(evname)
    if (evname == "dialog:end") or (evname == "dialog:failed") then
 ....
 KSR.log("info", "mos_average_packetloss_A_pv" .. KSR.pv.get("$avp(mos_average_packetloss_A)"))
        KSR.log("info", "mos_average_jitter_A_pv" .. KSR.pv.get("$avp(mos_average_jitter_A)"))
...

</code></pre>
<p>In short, the labels are that Kamailio was looking for weren't available in problem earlier. But now it can find the labels it is looking for in RTP engine logs and possible parsing the correct value for mos scores from it.<br>
Closing the issue since it is resolved.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2340#issuecomment-706649596">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMLR3JIAXEU6FNQQDLSKE2LLANCNFSM4NNJ6F3Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZJ2BLTXJLPERHFRWXDSKE2LLA5CNFSM4NNJ6F32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFIPJ37A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2340#issuecomment-706649596",
"url": "https://github.com/kamailio/kamailio/issues/2340#issuecomment-706649596",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>