Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added instructions to install PJSUA Python bindings

...

  1. Enter the following:
    Code Block
    bash
    bash
    $ svn co http://svn.pjsip.org/repos/pjproject/trunk pjproject
    $ cd pjproject
    $ ./configure CFLAGS=-fPIC
    $ cp pjlib/include/pj/config_site_sample.h pjlib/include/pj/config_site.h
    $ vim pjlib/include/pj/config_site.h
    
  2. in the vim console, hit i and insert the following:
    Code Block
    c
    c
    #define PJ_HAS_IPV6 1
    
  3. Hit Esc, then type :wq to save and exit vim
  4. Continue the pjsip build process:
    Code Block
    bash
    bash
    $ make dep
    $ make
    
  5. Copy the pjsua executable:
    Code Block
    bash
    bash
    $ sudo cp pjsip-apps/bin/pjsua-x86_64-unknown-linux-gnu /usr/sbin/pjsua
    
  6. Verify that pjsua executes:
    Code Block
    bash
    bash
    $ pjsua
    ...
    You have 0 active call
    >>>
    
  7. Enter q to exit
  8. Install pjsua Python bindings
    Code Block
    bash
    bash
    
    sudo make -C pjsip-apps/src/python install
    
  9. Return to the testsuite directory:
    Code Block
    bash
    bash
    $ cd ~/asterisk_trunk/testsuite
    

...