Coder Social home page Coder Social logo

rbegamer / ciscophonebookserver Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 1.0 8.46 MB

A xml service for cisco ip phones to provide a dynamic phonebook from a vcf file

License: Apache License 2.0

Dockerfile 5.13% Shell 1.04% JavaScript 33.72% HTML 60.11%
cisco phone voip service book contact

ciscophonebookserver's Introduction

Gopher image A xml service for cisco ip phone to provide a dynamic phonebook from a vcf file

FEATURES

This service generates a direcotry.xml file used for cisco phone to show a phonebook. If you want to use the cisco phone with the SIP firmaware and with your own sip gateway like a Fritz!Box. There is no build in way to access a phonebook on the phone. The idea was to generate such XML from a normal VCF File which can exported from iCloud for example and provide these contacts to your cisco phones

SERVER SETUP

Set on your host to static ip and modify the server.js file line 3.

VCF

Place a vfc file named contact_export.vcf in the /src/phbook/contact_export.vfc before starting the service or building the Docker-Image.

CONFIGURE YOUR CISCO PHONE

To provide configuration data for your phone, you have to setup an TFTP-Server. The docker image already contains a TFTP-Server which is already setup. Setup the TFTP-Server URL in the phones newtwork settings.

One configuration file per phone with a specific name: SEP followed by the Mac-Adress from the phone in uppercase .cnf.xml. An example file can be found in the /src/pbook/tftpboot/ directoy ('/src/phbook/tftpboot/SEP_MACADDROFPHONE.cnf.xml'). All files present in thits directory will be served by the Docker-Image TFTP-Server. So simply edit them.

After you setup the config file to your needs, you have to edit the line:

<directoryURL>http://URL_TO_SERVICE:3012/cisco/menu.xml</directoryURL>

This says the phone where it can found this phonebook service.

You can also setup a shortcut button to open the phonebook by using:

   <line button="2"> 
     	<featureID>20</featureID> 
     	<featureLabel>Telefonbuch</featureLabel> 
     	<serviceURI>http://URL_TO_SERVICE:3012/cisco/menu.xml</serviceURI> 
  	</line> 

REPLACE URL_TO_SERVICE with the external IP of your docker container

BUILDING THE DOCKER IMAGE

To build the docker-image named ciscophonebookgenerator you can use the script /src/phbook/build_image.sh.

Run the Docker-Image by using:

$ docker run -itd -p 3012:3012 -p 69:69 --name ciscophonebookgenerator ciscophonebookgenerator

TODO

  • adding api for updating contacts
  • carddav integration
  • configuration page
  • autogenerate .cnf.xml file with external ip

ciscophonebookserver's People

Contributors

dependabot[bot] avatar rbegamer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

pozgo

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.