I'm using ejabberd as a chat server for my mobile application. And in my application we are sending contact list of mobile user to our web server than add all contacts to mobile user's roster list. To adding all the contacts to roster I wanted to use mod_rest and trigger add_rosteritem command on from our webserver. However when I add the add_rosteritem to allowed_commands ejabberd doesnt work. I couldnt find any other solution
P.S: I dont want the mobile user to add contact list to user's rosters, I want our webserver to add contacts to user's roster without getting permission from the users
Do you know any solution to this problem?
Thanks
I've found the solution in mod_rest configuration under access_commands:
add
commands: all
And that works