[Freeswitch-users] mod_expr random not thread safe?
Stanislav Sinyagin
ssinyagin at gmail.com
Sat Sep 16 17:48:55 UTC 2017
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 at 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.
More information about the FreeSWITCH-users
mailing list