I am a newbie to XMPP and using Ejabberd. Basically I have a C#.Net code from which I want to create a new Shared Roster Group in Ejabberd by executing a command.
After a bit of googling I came across the link below:
http://www.ejabberd.im/mod_ctlextra
I downloaded the src and complied the .erl file, generated the .beam file successfully, pasted it into the ebin folder(am running ejabberd on Windows), modified the config file to edit the Modules section and after doing everything am firing command to create Roster Group like this : "srg-create group1 myserver Group1Name Group1Description DisplayedGroupName"
I get an error in my response saying "srg-create" is unknown command.
I also tried : "ejabberdctl srg-create group1 myserver Group1Name Group1Description DisplayedGroupName"
Again it says "ejabberdctl" is unknown command.
My objective is to create a Shared Roster Group through a command and I would be firing the command using REST api, the REST service works just fine I am able to register/unregister roster items. I need all the Shared Roster related stuff, creating/deleting shared roster groups, setting the Display Group, adding a roster item to the group etc. from Command Line.
And yes am running ejabberd 2.1.1
Please help me am kind of stuck here.
Fixed it, After googling
Fixed it,
After googling around a bit I realized that I had to execute this command at Ejabberd:
"mod_admin_extra:start("myserver",[]).
I still did not understand why it did not work when I restarted Ejabberd. I have everything in place in the config file, but I wonder that will have to execute this command every time I start Ejabberd?
mod_admin_extra contains all
mod_admin_extra contains all from mod_ctlextra and more.
After compiled and installed, enable mod_admin_extra in the modules section of ejabberd.cfg as usual. Then start ejabberd.