Module: kamailio
Branch: master
Commit: 1335e93a76d051cb724bc696ac857aa7c3a3f43e
URL: 
https://github.com/kamailio/kamailio/commit/1335e93a76d051cb724bc696ac857aa7c3a3f43e

Author: Kamailio Dev <[email protected]>
Committer: Kamailio Dev <[email protected]>
Date: 2023-07-13T17:46:27+02:00

modules: readme files regenerated - imc ... [skip ci]

---

Modified: src/modules/imc/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/1335e93a76d051cb724bc696ac857aa7c3a3f43e.diff
Patch: 
https://github.com/kamailio/kamailio/commit/1335e93a76d051cb724bc696ac857aa7c3a3f43e.patch

---

diff --git a/src/modules/imc/README b/src/modules/imc/README
index 6fa83d72aa6..a62f56d429f 100644
--- a/src/modules/imc/README
+++ b/src/modules/imc/README
@@ -46,6 +46,7 @@ Joey Golan
 
               4.1. imc_manager()
               4.2. imc_room_active(room)
+              4.3. imc_room_member(room, user)
 
         5. RPC Commands
 
@@ -73,7 +74,8 @@ Joey Golan
    1.10. Set check_on_create parameter
    1.11. Usage of imc_manager() function
    1.12. Usage of imc_room_active() function
-   1.13. List of commands
+   1.13. Usage of imc_room_member() function
+   1.14. List of commands
 
 Chapter 1. Admin Guide
 
@@ -102,6 +104,7 @@ Chapter 1. Admin Guide
 
         4.1. imc_manager()
         4.2. imc_room_active(room)
+        4.3. imc_room_member(room, user)
 
    5. RPC Commands
 
@@ -289,6 +292,7 @@ modparam("imc", "check_on_create", 1)
 
    4.1. imc_manager()
    4.2. imc_room_active(room)
+   4.3. imc_room_member(room, user)
 
 4.1.  imc_manager()
 
@@ -329,6 +333,21 @@ if(is_method("MESSAGE)
     }
 ...
 
+4.3.  imc_room_member(room, user)
+
+   Return 1 (true) if the user is member of the room, -1 (false) if the
+   user is not member of the room. The parameters are the SIP URIs to
+   identify the room and the user, they can contain variables.
+
+   This function can be used from ANY_ROUTE.
+
+   Example 1.13. Usage of imc_room_member() function
+...
+    if(imc_room_member("sip:chat-sip@$fd", "sip:$rU@$rd")) {
+        ...
+    }
+...
+
 5. RPC Commands
 
    5.1. imc.list_rooms
@@ -377,7 +396,7 @@ kamcmd imc_list_members _room_
 
    Next picture presents the list of commands and their parameters.
 
-   Example 1.13. List of commands
+   Example 1.14. List of commands
 ...
 
 1.create

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to [email protected]

Reply via email to