Giter VIP home page Giter VIP logo

pjsua's Introduction

SIP user agent (cli) based on PJSUA

Purpose

PJSUA (project page) is an CLI and curses SIP softphone, part of the PJSIP stack. Within Linux, users could use it as a phone to dial numbers right from the command line, i.e. for click-to-call. This docker image support audio, if sound device will be mounted as a docker volume.

But the main goal of this docker image is to let users do manual testing.

Usage

Simply run it, there is few scripts:

  • SIP account register and await for calls and user operations:

    docker run -ti --rm andrius/pjsua register SIP-ACCOUNT
  • SIP user register and will auto-answer the call:

    docker run -ti --rm andrius/pjsua auto-answer SIP-ACCOUNT
  • SIP user register and making a call (SIP invite) to destination:

    docker run -ti --rm andrius/pjsua dial SIP-ACCOUNT DESTINATION

Configuration

It does accept environment variables, easiest way to configure is to use .env file. Following variables should be set:

  • SIP_SERVER_HOST - IP address or hostname (name of docker service in docker-compose of the SIP server. Default value is "asterisk");

  • SIP_SERVER_PORT - SIP port. Default value is "5060";

  • SIP_TRANSPORT - SIP transport: udp, tcp or tls. Default value is "udp";

  • SIP_PASSWORD - Password of the SIP account.

Remaining parameter, SIP username should be set as command-line argument of script (listed in the usage section)

pjsua's People

Contributors

andrius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pjsua's Issues

Setting Up a Virtual Sound Device to Accept Audio and Play Audio Back

Hi

I actually need some help in using this in my own setup.Basically what I am trying to do is to get Docker Containers running on top of a server which can accept incoming calls and play some audio msg to the user.

In my current setup,I am able to server only a single call since if i try to server multiple calls,the audio gets merged with different calls.

So I have the Dockerfile ready but I do not know how to setup the Virtual sound device for the same.

Appreciate if you could help me this.

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.