0
votes

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

1
You are on right track. But can u share the error u r getting in logs?Hare Kumar
Actually there is no error log. When I even add the add_rosteritem command to commands section in mod_rest configuration (ejabberd.yml). I cannot even start the ejabberd servertolgatanriverdi
y do u even add to mod_rest configuration? Did u even tried running the command from ejabberdctl?Hare Kumar
yes. When I run the command ejabberdctl add_rosteritem it workstolgatanriverdi
but mod_rest still doesnt accept add_rosteritem commandtolgatanriverdi

1 Answers

0
votes

I've found the solution in mod_rest configuration under access_commands:

add

commands: all

And that works