Skip to content

Commit

Permalink
registrar: updated the docs for registered(...) function
Browse files Browse the repository at this point in the history
(cherry picked from commit b0a776b)
  • Loading branch information
miconda committed Sep 8, 2015
1 parent 0b04d15 commit c2595a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
15 changes: 8 additions & 7 deletions modules/registrar/README
Expand Up @@ -891,15 +891,16 @@ lookup_branches("location");

4.4. registered(domain [, uri [, match_option [, match_action]]])

The function returns true if the AOR in the Request-URI is registered,
false otherwise. The function does not modify the message being
process, it neither rewrites the Request-URI if a contact is found nor
append branches.
The function returns true if the AOR in the URI is registered, false
otherwise. The function does not modify the message being process, it
neither rewrites the Request-URI if a contact is found nor append
branches. If uri parameter is not provided, then it considered to be
the Request-URI for SIP requests and To-URI for SIP replies.

Meaning of the parameters is as follows:
* domain - Name of table that should be used for the lookup.
* uri (optional) - SIP URI to do be used instead of R-URI. It can be
a dynamic string with pseudo-variables.
* uri (optional) - SIP URI to do be used instead of Request/To-URI.
It can be a dynamic string with pseudo-variables.
* match_option (optional) - flag parameter to restrict contact
search. use reg_xavp_cfg to set the values to compare to.
flag values is as follows:
Expand All @@ -911,7 +912,7 @@ lookup_branches("location");
flag values is as follows:
+ 1 - set xavp_rcd with value from matched contact

This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
This function can be used from ANY_ROUTE.

Example 1.31. registered usage
...
Expand Down
10 changes: 6 additions & 4 deletions modules/registrar/doc/registrar_admin.xml
Expand Up @@ -1110,10 +1110,12 @@ lookup_branches("location");
<function moreinfo="none">registered(domain [, uri [, match_option [, match_action]]])</function>
</title>
<para>
The function returns true if the AOR in the Request-URI is
The function returns true if the AOR in the URI is
registered, false otherwise. The function does not modify the
message being process, it neither rewrites the Request-URI if a
contact is found nor append branches.
contact is found nor append branches. If uri parameter is not
provided, then it considered to be the Request-URI for SIP requests
and To-URI for SIP replies.
</para>
<para>Meaning of the parameters is as follows:</para>
<itemizedlist>
Expand All @@ -1126,7 +1128,7 @@ lookup_branches("location");
<listitem>
<para>
<emphasis>uri</emphasis> (optional) - SIP URI to do be used instead
of R-URI. It can be a dynamic string with pseudo-variables.
of Request/To-URI. It can be a dynamic string with pseudo-variables.
</para>
</listitem>
<listitem>
Expand Down Expand Up @@ -1160,7 +1162,7 @@ lookup_branches("location");
</listitem>
</itemizedlist>
<para>
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE.
This function can be used from ANY_ROUTE.
</para>
<example>
<title><function>registered</function> usage</title>
Expand Down

0 comments on commit c2595a2

Please sign in to comment.