Giter VIP home page Giter VIP logo

pjsua2-test's Introduction

pjsua2-test

This is a learning project of pjsua2.

install pjsua and python3 wrapper version

cd pjsua2-test
sudo ./install-pjsua.sh

build the pjsua2 environment

  • use it with container
    1. docker run -it --name pj-practice ghcr.io/efficacy38/pj-base python3
  • build the base image
    1. cd pjsua2-container
    2. docker build -t pj-base .
  • test the image
    1. docker run -it --rm pj-base python3
    2. at python terminal, run the >>> import pjsua2, it is ok if no error occur

Audio Simularity

  • use client
    • docker package: docker run -it -v ~/server.log:/server.log --network host ghcr.io/efficacy38/echo-server -u {YOUR_USERNAME} -p {YOUR_PASSWORD} -R sip:{YOUR_SIP_SERVER_IP}
    • standar usage
      • python3 client.py -u 1 -p test -R sip:kamailio -c "sip:2@kamailio" -t 1
    • get some help python3 client.py --help
  • use server
    • docker package: docker run -it efficacy38/pj-client -u {YOUR_USERNAME} -p {YOUR_PASSWORD} -R sip:{YOUR_SIP_SERVER_IP} -c {CALL_URI} -t {CALL_DURATION} -r {SEQUENTIALLY_REPECT_TIMES}
    • get some help python3 echo_server.py --help

pjsua2-test's People

Contributors

efficacy38 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.