And the ones in “/usr/lib/x86_64-linux-gnu/”?
libasteriskpj.so and libasteriskpj.so.2 should NOT be in /usr/lib/x86_64-linux-gnu when installing from source. I suspect that you installed asterisk from distro packages at one point but either didn’t uninstall or maybe the uninstall didn’t clean up correctly. Stop asterisk, delete those 2 files in /usr/lib/x86_64-linux-gnu/, run sudo ldconfig, then restart asterisk and see if that helps.
# ll /usr/lib/x86_64-linux-gnu/*pj*
lrwxrwxrwx 1 root root 18 Apr 14 2024 /usr/lib/x86_64-linux-gnu/libasteriskpj.so -> libasteriskpj.so.2
-rw-r--r-- 1 root root 1575664 Apr 14 2024 /usr/lib/x86_64-linux-gnu/libasteriskpj.so.2
I agree with @gjoseph .
In my environment, there are no files in /usr/lib/x86_64-linux-gnu/ .
How did you install pjproject?
Also check if you have a /usr/lib/x86_64-linux-gnu/asterisk directory. If you do, delete that as well. That’s another indication that asterisk was installed from packages at some point. In fact, you should also do a sudo apt remove asterisk* to ensure all asterisk packages are cleaned up. Make sure you save anything in /etc/asterisk, /var/lib/asterisk, /var/spool/asterisk and /var/log/asterisk you want to keep first.
I just saw this but you should NOT use those parameters. /usr/lib64 should only be used on Redhat based systems (Fedora, CentOS, Rocky Linux, Redhat Enterprise Linux, etc).
On a Debian based system (Ubuntu, Debian, etc) the proper configure command for a normal install is…
./configure --prefix=/usr --with-jansson-bundled --with-pjproject-bundled
--with-ssl, --with-crypto and --with-srtp have been the defaults for many years and don’t need to be specified. Actually --with-pjproject-bundled is also the default since Asterisk 16 but adding it ensures you’re using the correct version of pjproject in case you also have a system installation of pjproject. The only other thing you might want to add is --with-libjwt-bundled if you need STIR/SHAKEN support.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.