>
> So it appears that it is failing this conditon in RestServiceFinder
>
> Class< ? > clazz = Class.forName(className);
> if (Plugin.class.isAssignableFrom(clazz)) {
> ...
> }
Make sure that your plugin jar is deployed
under <your_install_dir>share/java/sipXecs/sipXrest/plugins
plugin jar structure:
-java package
-plugin.xml
uri-prefix and plugin-class are mandatory for a plugin to be found as in
the example below
<rest-service>
<plugin-class>org.sipfoundry.sipxrest.cdrlog.CdrLogPlugin</plugin-class>
<security-level>LOCAL-AND-REMOTE</security-level>
<uri-prefix>/cdr</uri-prefix>
-
<service-description>
This is a rest plugin for querying call logs for a particular user. You
can
invoke it using the URI cdr/{user}?limit=maxrecs&fromdate=yyyymmdd where
user is a valid user in your user database, maxrecs is the maximum number
of records that can be returned and yyyymmdd is the year/month/day to use
as a starting point for the call logs to obtain.
</service-description>
<remote-authentication-method>HTTP-DIGEST</remote-authentication-method>
</rest-service>
Also your plugin class must extend org.sipfoundry.sipxrest.Plugin
Mircea
----------
Come and see us at CoLab @ CSU in March (5th & 6th)
http://www.sipfoundry.org/sipx-colab
http://wiki.sipfoundry.org/display/sipXecs/2012+sipX-CoLab+Hackfest
>
>
>
> --
> 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/
>
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/