Coder Social home page Coder Social logo

gxpgen's Introduction

INSTRUCTIONS

  1. Modify the template .conf files in templates/ for your usage, or create a new one for your specific phone. Bear in mind the following replacements can be pasted into the config anywhere to insert a phone-specific value:

    • %(phone_name)s
    • %(sip_name)s
    • %(sip_server)s
    • %(config_server)s
    • %(firmware_server)s
    • %(sip_auth)s
    • %(sip_pass)s
    • %(auth_prepend)s
    • %(auth_append)s
    • %(xml_path)s

    It is also possible to add vars to the equipment and phones sections of the gxpgen.conf file, and these will be combined together for each phone (e.g. each phone has access to the contents of the 'equipment' section and the specific 'phones' section that matches its' MAC.

    e.g. It would be possible to add sip_port: 5061 to gxpgen.conf, and then refer to it in a template using %(sip_port)s.

  2. Modify the gxpgen.conf file to contain the correct values for your setup ('equipment' section settings apply for all phones, and each specific phone takes extra values from the 'phones' section based on its' MAC address. Phone specific settings are things like sip_auth and sip_pass, whereas equipment settings would be suitable for setting dns_server or the like.

  3. Execute ./gxpgen.py and check output.

  4. Serve the newly created cfg directory via HTTP, and tell your phones to use that address as their configuration server.

LICENSE

Copyright © 2011-2012, Ben Agricola. See the COPYING file for license rights and limitations (MIT).

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.