Module: kamailio
Branch: master
Commit: 51c9e2535fe9c69ec17a9de0f99afdaa09ca823c
URL: 
https://github.com/kamailio/kamailio/commit/51c9e2535fe9c69ec17a9de0f99afdaa09ca823c

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-06-11T09:39:23+02:00

siprepo: docs for sr_msg_match(mode)

---

Modified: src/modules/siprepo/doc/siprepo_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/51c9e2535fe9c69ec17a9de0f99afdaa09ca823c.diff
Patch: 
https://github.com/kamailio/kamailio/commit/51c9e2535fe9c69ec17a9de0f99afdaa09ca823c.patch

---

diff --git a/src/modules/siprepo/doc/siprepo_admin.xml 
b/src/modules/siprepo/doc/siprepo_admin.xml
index 0460df48d5c..2f90ccbee81 100644
--- a/src/modules/siprepo/doc/siprepo_admin.xml
+++ b/src/modules/siprepo/doc/siprepo_admin.xml
@@ -244,7 +244,7 @@ request_route {
                <function moreinfo="none">sr_msg_check()</function>
                </title>
                <para>
-                       Check if the message is stored.
+                       Check if the message is stored by matching the Call-Id.
                </para>
                <para>
                This function can be used from ANY_ROUTE.
@@ -260,6 +260,36 @@ request_route {
     ...
 }
 ...
+</programlisting>
+               </example>
+       </section>
+       <section id="siprepo.f.sr_msg_match">
+               <title>
+               <function moreinfo="none">sr_msg_match(mode)</function>
+               </title>
+               <para>
+                       Check if the message is stored by matching first the 
Call-Id and
+                       then match first Via branch parameter if mode is 1 (if 
no Via branch
+                       was stored, then matching on Call-Id only returns 
success).
+               </para>
+               <para>
+                       Return: negative (false) on error or not found; 
positive (true) on
+                       found (1 - matched on Call-Id; 2 - Matched on Call-Id 
and Via-branch).
+               </para>
+               <para>
+               This function can be used from ANY_ROUTE.
+               </para>
+               <example>
+               <title><function>sr_msg_match()</function> usage</title>
+               <programlisting format="linespecific">
+...
+request_route {
+    ...
+    if(sr_msg_match("1")) {
+    }
+    ...
+}
+...
 </programlisting>
                </example>
        </section>

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to