Hello,

the module was developed with sip traffic in mind, so right now the commands to create rooms or add members to the room are taken from SIP message body.

There are only a few commands that can be sent via RPC (which can be jsonrpc over http):

  - https://www.kamailio.org/docs/modules/devel/modules/imc.html#idm1053822380

I expect to be rather easy to extend the c code to add rpc commands for the operations you need (create room and add members), so this would be my suggestion to do. Alternative is for server A to send sip message with the commands (it may use command line tools like sipp or sipsak).

Cheers,
Daniel

On 15.10.19 08:39, Péter Barabás wrote:

Hi,

 

I want to implement conference messaging functionality into a client. IMC module seems perfect. In our scenario, the rooms and members are managed in a different server bacause of other user management functionalities and the kamailio only uses the rooms to broadcast messages to members.

Is it possible anyway to create rooms and join members from a separate server like through http protocol with XHTTP module?

The idea is:

  1. Create a room on server A with adding members. Server A store the room data.
  2. Server A sends http message to kamailio with proper format, like POST .../createRoom with jsonBody { name: „room1” }
  3. Kamailio receives the http request and process it with creating a room ’room1’.
  4. Server A sends members of room like POST .../addMembers with json body { room: „room1”, members: [ username: „user1”, username: „user2” ] }
  5. Kamailio receives the https request and process it with joining memers into room

 

All commands should have the belonging http request.

Is it possible?

 

Regards,

Peter


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training, Oct 21-23, 2019, Berlin, Germany -- https://asipto.com/u/kat