RESTful API

From SIPfoundry sipx, The Open Source SIP PBX for Linux - Calivia

Jump to: navigation, search

Image:Ver3.8.png This is available in 3.8 only

[edit] Existing Service: Phonebook

Here is an example of how to print the content of a phonebook named sales to stdout in CSV format

curl --insecure --basic -u superadmin https://localhost:8443/sipxconfig/rest/phonebook/sales

[edit] Adding new Services

sipXconfig used the RESTlet API to add RESTful services

http://www.restlet.org

Adding new services is easy if you know java and a little bit about sipXconfig

[edit] Ideas for Future Services

  • New or rewrite existing services implemented on TestPage.java
  • Phonebook for end user (would require changing acegi security configuration)
  • User list
  • Device/Phone list
  • Device/Phone profiles
  • Enable logging w/o restarting (although maybe JMX is better suited for this)
Personal tools