installation issue with PjSIP libraries

Getting the below error while download pjproject from github

git clone https://github.com/asterisk/pjproject
Initialized empty Git repository in /usr/src/pjproject/.git/
error: while accessing https://github.com/asterisk/pjproject/info/refs

fatal: HTTP request failed

Add Comment
2 Answer(s)
Best answer

Tried to reinstall as below steps and its working fine.

 

# yum update
# yum install -y epel-release dmidecode gcc-c++ ncurses-devel libxml2-devel make wget openssl-devel newt-devel kernel-devel sqlite-devel libuuid-devel gtk2-devel jansson-devel binutils-devel

# cd /usr/src

# wget http://www.pjsip.org/release/2.3/pjproject-2.3.tar.bz2

# tar -jxvf pjproject-2.3.tar.bz2

# cd pjproject-2.3

# ./configure CFLAGS="-DNDEBUG -DPJ_HAS_IPV6=1" --prefix=/usr --libdir=/usr/lib64 --enable-shared --disable-video --disable-sound --disable-opencore-amr
 
# make dep

# make

# make install

# ldconfig

# ldconfig -p | grep pj

 

on May 7, 2018.
Add Comment

You also need to install PJSIP, you can download the source here. Once the source directory is extracted:

  • Change to the pjproject source directory:
# cd pjproject
  • run:
# ./configure --prefix=/usr --enable-shared --disable-sound --disable-resample --disable-video --disable-opencore-amr CFLAGS='-O2 -DNDEBUG'
  • Build and install pjproject:
# make dep
# make
# make install
  • Update shared library links:
# ldconfig
  • Verify that pjproject is installed:
# ldconfig -p | grep pj
  • The result should be:
libpjsua.so (libc6,x86-64) => /usr/lib/libpjsua.so
libpjsip.so (libc6,x86-64) => /usr/lib/libpjsip.so
libpjsip-ua.so (libc6,x86-64) => /usr/lib/libpjsip-ua.so
libpjsip-simple.so (libc6,x86-64) => /usr/lib/libpjsip-simple.so
libpjnath.so (libc6,x86-64) => /usr/lib/libpjnath.so
libpjmedia.so (libc6,x86-64) => /usr/lib/libpjmedia.so
libpjmedia-videodev.so (libc6,x86-64) => /usr/lib/libpjmedia-videodev.so
libpjmedia-codec.so (libc6,x86-64) => /usr/lib/libpjmedia-codec.so
libpjmedia-audiodev.so (libc6,x86-64) => /usr/lib/libpjmedia-audiodev.so
libpjlib-util.so (libc6,x86-64) => /usr/lib/libpjlib-util.so
libpj.so (libc6,x86-64) => /usr/lib/libpj.so

 

Answered on January 3, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.