[SR-Users] IMC through HTTP

Péter Barabás peter.barabas at arenim.com
Tue Oct 15 08:39:21 CEST 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191015/82e8c56c/attachment.html>


More information about the sr-users mailing list