On Wed, Feb 1, 2012 at 10:51 PM, Kyle Haefner <[email protected]> wrote: > Hi All, > > I would like to build a rest service for get/set of user speed dials. > I was hoping to write it was a plugin similar to the CdrLogRestlet > plugin. >
Hi Kyle, for speed dials as they are managed by config you need to write a REST service within that project. > I have a couple of questions: > > 1. Can/Should this be done as a plugin or as another resource under > org.sipfoundry.sipxconfig.rest? You can do it both, if you plan to contribute it back to open source project it would make more sense to put it directly there (another resource under org.sipfoundry.sipxconfig.rest). Otherwise you can add it on your own .jar file > > 2. Can I write restlet plugins that a user with admin privileges can access? > if I run this: curl -k --digest -X GET --insecure -u > superadmin:password > https://example.pbx.com:6666/cdr/awesomeuser?limit=50 > > I always get pin mismatch. If you put it in config then make sure you don't map URL with /my (check how PhonesResource is implemented) - all that rest services are accessible by admin users only > > > Thanks! > > -- > Kyle Haefner, M.S. > Communication Systems Programmer > Colorado State University > Fort Collins, CO > Phone: 970-491-1012 > Email: [email protected] > _______________________________________________ > sipx-dev mailing list > [email protected] > List Archive: http://list.sipfoundry.org/archive/sipx-dev/ -- George ---------- Come meet us at CoLab @ CSU in March (5th & 6th) http://www.sipfoundry.org/sipx-colab http://wiki.sipfoundry.org/display/sipXecs/2012+sipX-CoLab+Hackfest _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev/
