16 Sep
2017
16 Sep
'17
5:48 p.m.
a ho, mod_expr was not loaded, and that caused the drops when I called expr() On Sat, Sep 16, 2017 at 6:53 PM, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
I'm building a test for voice quality, and I need to randomize the silence preamble. At the same time, other sessions are recorded into a tmpfs file.
<action application="set" data="rand_val=${expr(randomize(&x);ceil(random(0,100,&x)))}"/>
I noticed that when I added this, the audio recordings started to have gaps of dropped audio 40ms long.
Are the randomize() and random() thread-safe at all? It seems like the whole FreeSWITCH process freezes when one of those functions gets executed.