Module: kamailio Branch: master Commit: 4d0459545ada92786d3d7ee1f9aeefd82c8527e7 URL: https://github.com/kamailio/kamailio/commit/4d0459545ada92786d3d7ee1f9aeefd8...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2023-07-12T09:06:49+02:00
imc: docs for imc_room_active() function
---
Modified: src/modules/imc/doc/imc_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/4d0459545ada92786d3d7ee1f9aeefd8... Patch: https://github.com/kamailio/kamailio/commit/4d0459545ada92786d3d7ee1f9aeefd8...
---
diff --git a/src/modules/imc/doc/imc_admin.xml b/src/modules/imc/doc/imc_admin.xml index 853176eaa6d..1b485ac77ca 100644 --- a/src/modules/imc/doc/imc_admin.xml +++ b/src/modules/imc/doc/imc_admin.xml @@ -309,6 +309,29 @@ if(is_method("MESSAGE) exit; } ... +</programlisting> + </example> + </section> + <section> + <title id="imc.p.imc_room_active"> + <function moreinfo="none">imc_room_active(room)</function> + </title> + <para> + Return 1 (true) if the room is active, -1 (false) if the room is not + found. The parameter is the SIP URI to identify the room, it can contain + variables. + </para> + <para> + This function can be used from ANY_ROUTE. + </para> + <example> + <title>Usage of <varname>imc_room_active()</varname> function</title> + <programlisting format="linespecific"> +... + if(imc_room_active("sip:chat-sip@$fd")) { + ... + } +... </programlisting> </example> </section>