Reputation: 699
I have installed ejabberd in one my server, let the server ip be = 0.0.0.001 and registerd two users using below command
ejabberdctl register kumar 0.0.0.001 kumar
ejabberdctl register rani 0.0.0.001 rani
Syntax for registering user is:
ejabberdctl register username host password
Now what i need is i want to make these users as friends by using ejabberdctl ..!!
What i tried :
ejabberdctl add_rosteritem kandan 0.0.0.001 rani
Note: I am using mysql as default database.
Could someone help me out and let me know the syntax for addrosteritem please..!!! Thanks in advance..!!!
Upvotes: 0
Views: 561
Reputation: 719
Syntax to add roster item:
Command Name: add_rosteritem
Arguments: localuser::binary
localserver::binary
user::binary
server::binary
nick::binary
group::binary
subs::binary
Hence, the command should be
ejabberdctl add_rosteritem kandan hostname rani hostname none none both
Upvotes: 4