Skip to end of metadata
Go to start of metadata

 

The Asterisk Test Suite has been moved to a Python 3 version with simplified installation. Instructions for this can be found here.

  • No labels

16 Comments

  1. When installing on CentOS 6, I had to install these additional packages:

    1. libpcap-devel
    2. gcc-objc
    3. python-devel
    4. python-twisted
  2. Most of those make sense, but gcc-objc? Where did that come from?

    1. When making pjproject for pjsua, it barfed on not having a cc1obj.  A quick yum whatprovides told me it was in gcc-objc, which I installed, then it was happy.

       

  3. I had to go into pjsip-apps/build to make the pjsua app.

    make -C pjsip-apps/build pjsua

    (Both for the svn checkout as mentioned above and the asterisk-git version from Installing pjproject.)

    (P.S. Copying to /usr/sbin seems wrong, no need for the s.)

  4. I had to install python-setuptools and python-requests for Fedora

    Also needed autobahn installed via pip.  There's no Fedora package.

     

  5. On Ubuntu server 12.04, using apt-get to install python-requests installs a really old version of the library (0.8.3) that leads to test failures for some tests. Use easy_install to install it instead.

  6. There are now tests that require sipp 3.4.1

  7. git should be added to the list of prerequisites.

    1. Yes. I added it to the list. I also inserted a caveat for the SVN prerequisite in that SVN is only needed to complete the PJSUA Installation steps (as documented on this page). It is worth noting that it is possible to obtain the PJSIP source code without using SVN.

  8. Shouldn't the git clone commands pull from the anonymous gerrit URLs ( https://gerrit.asterisk.org/asterisk and https://gerrit.asterisk.org/testsuite)? It should be possible to run the testsuite without having a gerrit login.

    1. Good point. I updated the text to reflect this.

  9. On CentOS 6, after the initial prereq install, I found that doing a "yum install epel-release" made a large number of packages installable.

    I had to hand install sqlite-devel and gmime-devel.

    I had to yum install python-requests... and autobahn... although that didn't help run that last command,

    sudo make -C pjsip-apps/src/python install
    wherein during the compile of _pjsua.c, I see complaints about Python.h  and  structmember.h not being found, and the rest swiftly goes south after that.
    Any suggestions?
    1. Aaarggg! Got it. I needed to do a "yum install python-devel" !

      After that install, I was able to run the make successfully; but runtests.py -l says: "No handlers could be found for logger "asterisk.version"".. which I guess is ignorable.

      Many thanks!

       

       

  10. The instruction not ever working for all cases

    $ sudo cp pjsip-apps/bin/pjsua-x86_64-unknown-linux-gnu /usr/sbin/pjsua

     

    maybe, can try with

    $ sudo cp pjsip-apps/bin/pjsua-$(grep "export TARGET_NAME" ./build.mak | cut -f 2 --delimiter="="|xargs) /usr/sbin/pjsua

    is not a clean command but its works

  11. Centos 6, 32-bit, I had to install:

    python-setuptools PyYAML

    Additionally, I had to `make samples` in the asterisk directory, even though the Verify the Test Suite section says clearly not to do that.

  12. libsrtp is now on github: https://github.com/cisco/libsrtp.git

        wget https://github.com/cisco/libsrtp/archive/v1.6.0.tar.gz

        cd libsrtp-1.6.0

        ./configure CFLAGS=-fPIC --prefix=/usr

        make

        make runtest

        sudo make install