Giter Site home page Giter Site logo

musachowdhury / pjsip-based-python3-bulk-calling-script Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 5 KB

The bulk calling script is written in python3 which uses the pjsip library (pjsua).

License: MIT License

Python 100.00%
audio bulk-operation pjsip pjsua python3

pjsip-based-python3-bulk-calling-script's Introduction

About

Pyhton3 script uses the pjsip library to call and play recorded audio to given numbers (CSV format).

Use Case

The script can initiate calls to multiple numbers and play a predefined recording after the call is received.
This type of application can be useful for businesses that want to announce information to their customers.

Features

  • Filter unique numbers.

  • Try to call a number "N" times ( "N" can be set by the user) before ignoring the number.

  • After execution, the script gives a detailed report about "Answered Calls" and "Unanswered Calls".


Steps To Use

Considering the script will be used on linux (ubuntu).

  • Follow this repository to set up pjsip/pjsua for python3.

  • Check if "pjsua" installed correctly.

  • Create "call_list.csv" to a folder. Use delimiter "\n" while adding numbers(the numbers you want to call) to the csv file.

  • Change the audio file (must be wav format) name to "play.wav". "play.wav" will be played to numbers when call is received.

  • Copy "script.py" script to the working folder (working folder refers to where "play.wav" & "call_list.csv" files exist).

  • Update username, user password, sip server address inside the script before execution (variables are named relatively).

  • Open a terminal inside the folder. Run "python3 script.py" to execute the script.


Note

  • While installing PJSIP carefully follow the steps. For first time it is better to use virtual machine.

  • Tested the script on Ubuntu Lts 20.04 ( Pjsip 2.10 & Python 3.8).

  • Tested with virtual numbers ( here virtual number referring such number which uses sip protocol).


pjsip-based-python3-bulk-calling-script's People

Contributors

musachowdhury avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

fahim8401

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.