Skip to content

Commit

Permalink
registrar: Document "ownership_tag"
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu committed Jan 17, 2019
1 parent 8c763ad commit 1e2caeb
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions modules/registrar/doc/registrar_admin.xml
Expand Up @@ -577,7 +577,7 @@ modparam("registrar", "disable_gruu", 0)
<title>Exported Functions</title>
<section id="func_save" xreflabel="save()">
<title>
<function moreinfo="none">save(domain [,flags ,[aor]])</function>
<function moreinfo="none">save(domain[, flags[, aor[, ownership_tag]]])</function>
</title>
<para>
The function processes a REGISTER message. It can add, remove or
Expand Down Expand Up @@ -694,11 +694,24 @@ modparam("registrar", "disable_gruu", 0)
</listitem>
<listitem>
<para>
<emphasis>aor</emphasis> (optional) - Variable contain a custom
<emphasis>aor</emphasis> (optional) - Variable containing a custom
AOR; if missing, the AOR will be taken from the default place -
the TO header URI.
</para>
</listitem>
<listitem>
<para>
<emphasis>ownership_tag</emphasis> (optional) - a cluster-shared
tag (see the clusterer module documentation for more details) which
will be attached to each contact saved from the current request.
This tag is only relevant in clustered user location scenarios and
helps determine the current logical owner node of a contact. This,
in turn, is useful in order to restrict nodes which are not
currently responsible for this contact from performing certain
actions (for example: incorrectly originating pings from a
non-owned virtual IP address in highly-available setups).
</para>
</listitem>
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE and ONREPLY_ROUTE.
Expand All @@ -721,9 +734,13 @@ save("location","mc5");
# save into 'location', no flags, use as AOR the FROM URI
save("location","","$fu");
...
# save into 'location',no DB update, no reply to send, take AOR from AVP
# save into 'location', no DB update, force registration, take AOR from AVP
save("location","mr", "$avp(aor)");
...
# save into 'location', mark the contacts with the "vip" ownership tag and
# replicate these contacts to the backup node, which does not currently own "vip"
save("location", , , "vip");
...
</programlisting>
</example>
</section>
Expand Down

0 comments on commit 1e2caeb

Please sign in to comment.