Coder Social home page Coder Social logo

fetristan / webrtc-sip-phone Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 203 KB

Dive into real-time communication with this WebRTC-based SIP phone! Designed for developers and testers, this intuitive application offers a seamless way to test the robustness of your VOIP services, experiment with SIP signaling, and ensure compatibility with WebRTC.

HTML 10.77% CSS 9.27% TypeScript 79.97%

webrtc-sip-phone's Introduction

WebRTC SIP Phone Tester

image

Features

  • Make and receive calls via SIP
  • Use Turn server for NAT traversal
  • Hang up and answer calls
  • DTMF support
  • Display call status

Requirements

To run this project, you will need:

  • A WebRTC-compatible SIP server
  • Credentials for the SIP server
  • NodeJs and npm installed on your machine

Installation

Clone the repository:
  git clone https://github.com/fetristan/webrtc-sip-phone.git
Navigate to the project directory:
  cd webrtc-sip-phone 
Install dependencies:
  npm install 
Copy the .env_example file to a new file named .env:
  cp .env_example .env 
Fill in the .env file with your SIP server and credentials.

Usage

To start the application, run:

npm start

The application will be available at http://localhost:3000.

Configuration

Set up your SIP server and credentials in the .env file:

  REACT_APP_SERVER=wss://your-sip-server.com:7443
  REACT_APP_URI_STRING=sip:[email protected]
  REACT_APP_AUTHORIZATION_PASSWORD=your-password
  REACT_APP_AUTHORIZATION_USERNAME=your-username
  REACT_APP_TARGET_URI_STRING=sip:[email protected]:5080
  REACT_APP_TURN_SERVER=turn:your-turn-server.com:3478
  REACT_APP_TURN_SERVER_NAME=your-turn-server.com
  REACT_APP_TURN_AUTH_SECRET=your-turn-auth-secret
  REACT_APP_TURN_AUTH_EXPIRY=3600

Replace the placeholders with your actual server details.

Testing Calls

To make a call to the target, press the '+' button.

To answer an incoming call, press the 'Answer' button when you see an incoming call notification.

To hang up an active call, press the 'Hangup' button.

To use DTMF, press the buttons on the dial pad.

Contributing

Contributions are welcome! Please feel free to submit a pull request or create an issue for bugs, questions, or new features.

webrtc-sip-phone's People

Contributors

fetristan 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.