I just wrote a script that calls a project I got from github that calls a normal telephone number and during development I ran the script without a problem. But deploying it on my server and testing it there I get the following error message
Starting sipcmd
in debug mode
Manager
Init
initialising SIP endpoint...
TestChanAudio
TestChanAudio
Listening for SIP signalling on 0.0.0.0:5060
assert.cxx(112) PWLib Assertion fail: Function pthread_setschedparam failed, file ptlib/unix/tlibthrd.cxx, line 745, Error=1
Assertion fail: Function pthread_setschedparam failed, file ptlib/unix/tlibthrd.cxx, line 745, Error=1
<A>bort, <C>ore dump, <T>hrow exception, <I>gnore?
Both machines are running linux and every single library is perfectly installed. Does someone know how to fix this?
The error code is
EPERM
so according to the documentation the user running your application doesn't have permission to set the specified policy.The policy only allows setting the scheduler priority so I guess the application is asking for a priority higher than the user is allowed to use? This question may hold some clues on how to fix this: Why does pthread_setschedparam() produce EPERM on opensuse 11.4