From 5b8311cdae91f07e12eb430eef832944219cab40 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 10 Jul 2019 09:05:17 +0200 Subject: [PATCH] registrar: docs for reg_send_reply() --- src/modules/registrar/doc/registrar_admin.xml | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/modules/registrar/doc/registrar_admin.xml b/src/modules/registrar/doc/registrar_admin.xml index 4ce4a6b9955..32752eac899 100644 --- a/src/modules/registrar/doc/registrar_admin.xml +++ b/src/modules/registrar/doc/registrar_admin.xml @@ -10,9 +10,9 @@ - + &adminguide; - +
Overview The module contains REGISTER processing logic. The actual location @@ -1510,6 +1510,30 @@ reg_fetch_contacts("location", "sip:user@kamailio.org", "caller"); ... reg_free_contacts("callee"); ... + + +
+
+ + <function moreinfo="none">reg_send_reply()</function> + + + The function sends the SIP reply that is normally sent by + save(...), but that was skipped due to flag 0x2. It must be used + after save(..., "0x2"). Practically it allows saving registration + to location table, do other operations and then send the reply. + + + This function can be used from REQUEST_ROUTE, FAILURE_ROUTE. + + + <function>reg_send_reply</function> usage + +... +save("location", "0x2"); +... +reg_send_reply(); +...