Skip to content

Commit

Permalink
Fix documentation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-iancu committed Oct 12, 2016
1 parent 34bbe68 commit b7ff6b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
16 changes: 7 additions & 9 deletions modules/registrar/README
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ Edited by

Jan Janak

Edited by

Bogdan-Andrei Iancu

Copyright © 2003 FhG FOKUS
Expand Down Expand Up @@ -98,8 +96,8 @@ Bogdan-Andrei Iancu
1.20. registered usage
1.21. is_other_contact usage
1.22. is_registered usage
1.23. is_registered usage
1.24. is_registered usage
1.23. is_contact_registered usage
1.24. is_ip_registered usage
1.25. add_sock_hdr usage

Chapter 1. Admin Guide
Expand Down Expand Up @@ -389,7 +387,7 @@ modparam("registrar", "mcontact_avp", "$avp(register)")
AVP to store specific additional information for each
registration. This information is read from the AVP and stored
(in memory, db or both) at every registrar 'save'. When a
registrar 'lookup' or 'registered' function is called, the
registrar 'lookup' or 'is_registered' function is called, the
attr_avp is populated with the value saved at [re]registration.

When doing call forking, the avp will hold multiple values. The
Expand Down Expand Up @@ -668,8 +666,8 @@ switch ($retcode) {
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE, ONREPLY_ROUTE, LOCAL_ROUTE.

WARNING: THIS FUNCTION IS DEPRECATED! USE
is_contact_registered() INSTEAD.
WARNING: THIS FUNCTION IS DEPRECATED! USE is_registered()
INSTEAD.

Example 1.20. registered usage
...
Expand Down Expand Up @@ -763,7 +761,7 @@ if (is_registered("location","$fu")) {
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE, ONREPLY_ROUTE, LOCAL_ROUTE.

Example 1.23. is_registered usage
Example 1.23. is_contact_registered usage
...
/*let's say you want to block users that are not registered*/
if (is_method("INVITE")) {
Expand Down Expand Up @@ -798,7 +796,7 @@ if(is_method("INVITE")) {
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE, ONREPLY_ROUTE, LOCAL_ROUTE.

Example 1.24. is_registered usage
Example 1.24. is_ip_registered usage
...
/* check the source ip whether it is already registered */
if (is_method("REGISTER")) {
Expand Down
8 changes: 4 additions & 4 deletions modules/registrar/doc/registrar_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ modparam("registrar", "mcontact_avp", "$avp(register)")
<para>
AVP to store specific additional information for each registration.
This information is read from the AVP and stored (in memory, db or both)
at every registrar 'save'. When a registrar 'lookup' or 'registered'
at every registrar 'save'. When a registrar 'lookup' or 'is_registered'
function is called, the <emphasis>attr_avp</emphasis> is populated with
the value saved at [re]registration.
</para>
Expand Down Expand Up @@ -948,7 +948,7 @@ switch ($retcode) {
</para>
<para>
WARNING: THIS FUNCTION IS DEPRECATED! USE
<emphasis>is_contact_registered()</emphasis> INSTEAD.
<emphasis>is_registered()</emphasis> INSTEAD.
</para>
<example>
<title><function>registered</function> usage</title>
Expand Down Expand Up @@ -1108,7 +1108,7 @@ if (is_registered("location","$fu")) {
BRANCH_ROUTE, ONREPLY_ROUTE, LOCAL_ROUTE.
</para>
<example>
<title><function>is_registered</function> usage</title>
<title><function>is_contact_registered</function> usage</title>
<programlisting format="linespecific">
...
/*let's say you want to block users that are not registered*/
Expand Down Expand Up @@ -1166,7 +1166,7 @@ if(is_method("INVITE")) {
BRANCH_ROUTE, ONREPLY_ROUTE, LOCAL_ROUTE.
</para>
<example>
<title><function>is_registered</function> usage</title>
<title><function>is_ip_registered</function> usage</title>
<programlisting format="linespecific">
...
/* check the source ip whether it is already registered */
Expand Down

0 comments on commit b7ff6b3

Please sign in to comment.