Module: kamailio
Branch: master
Commit: 27a4fc543cb60636308e587523236b1ac4d56754
URL:
https://github.com/kamailio/kamailio/commit/27a4fc543cb60636308e587523236b1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-07-13T17:41:16+02:00
imc: docs for imc_room_member()
---
Modified: src/modules/imc/doc/imc_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/27a4fc543cb60636308e587523236b1…
Patch:
https://github.com/kamailio/kamailio/commit/27a4fc543cb60636308e587523236b1…
---
diff --git a/src/modules/imc/doc/imc_admin.xml b/src/modules/imc/doc/imc_admin.xml
index 1b485ac77ca..d77c3028b9b 100644
--- a/src/modules/imc/doc/imc_admin.xml
+++ b/src/modules/imc/doc/imc_admin.xml
@@ -332,6 +332,29 @@ if(is_method("MESSAGE)
...
}
...
+</programlisting>
+ </example>
+ </section>
+ <section>
+ <title id="imc.p.imc_room_member">
+ <function moreinfo="none">imc_room_member(room, user)</function>
+ </title>
+ <para>
+ 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.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
+ </para>
+ <example>
+ <title>Usage of <varname>imc_room_member()</varname>
function</title>
+ <programlisting format="linespecific">
+...
+ if(imc_room_member("sip:chat-sip@$fd", "sip:$rU@$rd")) {
+ ...
+ }
+...
</programlisting>
</example>
</section>