Questions tagged [ejabberd-api]

100 questions
1
vote
2 answers

Ejabberd - Run SQL Query for Custom Command

I'm trying to make a custom command in mod_admin_extra.erl. to fetch messages between 2 JIDs. My command will look like this:- ejabberdctl get_messages HOST FROM TO START_TIME END_TIME The SQL query will be like:- select * from archive where…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
1
vote
1 answer

ejabberd - Fetch the history messages mod_mam via API

I've activated mod_mam module in Ejabberd as follow:- mod_mam: db_type: sql assume_mam_usage: true default: always clear_archive_on_room_destroy: false How do I fetch messages over the APIs?
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
1
vote
1 answer

Add a virtual host dynamically in ejabberd

Is it possible to add a virtual host programmatically to ejabberd, without manually editing ejabberd.cfg and restart the server? I see there are many new features released in latest ejabberd 19.* Like rest APIs, is it plausible to dynamically add…
CCSA
  • 11
  • 1
1
vote
1 answer

how to run ejabberd tests and write new unit tests in erlang?

How do I run ejabberd tests in the test folder? I installed rebar and made sure to have a running ejabberd server and followed the steps here to: https://docs.ejabberd.im/developer/extending-ejabberd/testing/ to run the test suite. But I get the…
1
vote
2 answers

how can I add VCard details of an existing user in ejabberd database using php

I am trying to write a php script to add VCard details of an existing user, registered to our ejabberd server. In the vcard table, there is a field vcard. I understand it is populated by an XML-data. Could you please guide me as to how I should…
sonkhya
  • 17
  • 1
  • 6
1
vote
1 answer

ejabberd block communication from backend

I have a scenarios where users in rosters are communicating with each other but sometime we have to block communication from backend between two users. How to can I block communication in this way
For Guru
  • 1,197
  • 13
  • 23
1
vote
1 answer

Ejabberd api using subscribe room

In ejabberd api, i can fill user,nick,room, but how can i fill the nodes? Is there any example. Thank you. POST /api/subscribe_room { "user": "aaaaa", "nick": "bbbbb", "room": "ccccc", "nodes": "ddddd" } HTTP/1.1 200…
1
vote
1 answer

unable to acquire access token from ejabberd oauth

I am trying to configure oauth in ejabberd 16.01. I managed to get the "/oauth/authorize_token" page, but as I fill the data in the form and click on "Accept" button it reloads the page with error "This page isn't working. ERR_EMPTY_RESPONSE".…
Vikas Roy
  • 13
  • 2
  • 8
1
vote
1 answer

Accessing ejabberd ReST API through node js app

I have an ejabberd (16.01) server running on Ubuntu 16.04. I have another NodeJs application running on different server. Through NodeJs application, I wish to add users, add rosters, etc by using ReST API given at…
Ankit Gomkale
  • 704
  • 8
  • 16
1
vote
1 answer

How to paginate roster fetch call on ejabberd

I am running my chat service on ejabberd, but after 4-5 months of no downtime, I have come to use case where it's taking a lot of time in fetching rosters for the users whose roster list is too big. At many places it's mentioned that pagination…
1
vote
1 answer

when is a session created in ejabberd ? How does authentication work ?

Im trying to understand the data flow of ejabberd and having a hard time till now. First, these are the modules Im working on: ejabberd_c2s, ejabberd_auth, ejabberd_sm, ejabberd_sm_mnesia. I understand that ejabberd_c2s is a gen_fsm that is entry…
sad
  • 820
  • 1
  • 9
  • 16
1
vote
3 answers

How to get latest room subject from ejabberd/xmpp?

I changed 'Subject' of a chat room but I am not getting this latest subject name. I am using 'disco#info' to get the room info. In response, I am getting room title that was set initially while creating the room but not the latest room subject. …
akhileshnair
  • 1,437
  • 1
  • 12
  • 18
1
vote
2 answers

ejabberd mod_http_api rest request

I am trying to make some rest requests (without OAuth) but ejabberd response is always "HTTP/1.1 400 Bad Request" Here is the detail: ejabberd version: 16.02 ejabberd configuration port: 5280 ip: "::" module: ejabberd_http …
Luca
  • 770
  • 8
  • 25
0
votes
2 answers

Nodejs endpoint to get all users registered in Ejabberd server

I want to create a nodejs endpoint to get list of all users that are registered in the ejabberd server. Create a nodejs endpoint that list all users in the ejjaberd. please help me to provide a right pathway to get this endpoint
0
votes
1 answer

Message is being sent with "send_message" in ejabberd using postman but not received by client

I have configured and install ejabberd on the ubuntu 22.04 and I have successfully configured and create one user with administrator right and as well as create some users into it. I am using Version OS - ubuntu 22.04 LTS ejabberd 22.10 And also…