Coder Social home page Coder Social logo

provision's Introduction

Autoprovision for SNR VoIP Phones

with a little help from Asterisk

This script helps to generate configuration files for SNR VoIP Phones.

Central provisioning is good and all, but sometimes you need to have some specific settings for certain phones. This script allows you to have such custom settings in config file. Script allows you to customize settings for SIP accounts that bind to a phone via "description" field in sip.conf.

Parameters go in sip.conf. Line with parameters must start with ";;; ". You can check for all available config options in templates/<model>.template. You must specify MAC-address for all managed SIP-accounts in the "description" field along with the template that is used by phone binded to this SIP-account, for example ";;; Template=SNR-VP-7030"), without file name extension.

Examples

Example of minimal working configuration:

[512](office)
;;; Template=SNR-VP-7030
    description=4c3b7400a9c2
    secret=secret
    callerid="512"

Example of two SIP-accounts, each of which with a custom ringtone:

[587](office)
;;; Template=SNR-VP-7030
;;; Ring_Type=8
    description=4c3b7400ecae
    secret=secret
    callerid="587"

[618](office)
;;; Template=SNR-VP-7030
;;; Ring_Type=9
    description=4c3b7400ecac
    secret=secret
    callerid="618"

After filling all of the required fields in sip.conf you can generate config file by running provision --sip <your_sip> --verbose. Generated config file will be placed in output_dir from provision.conf. Please check provision.conf for more options before running the script.

You will want to use your own templates for ones that have _default in their names. You can export them from SNR phone via Web-interface.

provision's People

Contributors

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