Module: sip-router Branch: master Commit: 53319656247a2aa685f4d9b6f667192f945bc62a URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=53319656...
Author: Torrey Searle tsearle@gmail.com Committer: Torrey Searle tsearle@gmail.com Date: Tue Apr 23 14:04:39 2013 +0200
modules/sipt add value tables to docs, add section ids to pvars
---
modules/sipt/README | 34 ++++++++++++++++++++++ modules/sipt/doc/sipt_admin.xml | 59 +++++++++++++++++++++++++++++++++++---- 2 files changed, 87 insertions(+), 6 deletions(-)
diff --git a/modules/sipt/README b/modules/sipt/README index 3a93928..f9d9792 100644 --- a/modules/sipt/README +++ b/modules/sipt/README @@ -28,6 +28,13 @@ Torrey Searle 4.5. $sipt_calling_party_nai 4.6. $sipt_called_party_nai
+ List of Tables + + 1.1. Address Presentation Restricted Indicator Values + 1.2. Screening Indicator Values + 1.3. Calling Nature of Address Values + 1.4. Called Nature of Address Values + List of Examples
1.1. sipt_destination(destination, hops, nai) usage @@ -122,6 +129,12 @@ sipt_set_calling($fU, 4, 0, 3); contained in the Calling Party Number header of the IAM message if it exists. Returns -1 if there isn't a Calling Party Number header.
+ Table 1.1. Address Presentation Restricted Indicator Values + 0 presentation allowed + 1 presentation restricted + 2 address not avail (national use) + 3 spare + Example 1.3. sipt_presentation pseudo-variable usage ... # add privacy header if restriction is requested @@ -139,6 +152,12 @@ if($sipt_presentation == 1) Party Number header of the IAM message if it exists. Returns -1 if there isn't a Calling Party Number header.
+ Table 1.2. Screening Indicator Values + 0 Reserved (user provided, not verified) + 1 User Provided, Verified and Passed + 2 Reserved (user provided, verified and failed) + 3 Network provided + Example 1.4. sipt_screening pseudo-variable usage ...
@@ -187,6 +206,13 @@ append_hf("X-CPC: $sipt_cpc\r\n"); Party for the IAM message. Returns -1 if there is a parsing error or if the Calling Party Number is not present.
+ Table 1.3. Calling Nature of Address Values + 0 Spare + 1 Subscriber Number (national use) + 2 Unknown (national use) + 3 National (significant) number (national use) + 4 International use + Example 1.7. sipt_calling_party_nai pseudo-variable usage ... # get the Calling Nai and add country code if national @@ -202,6 +228,14 @@ if($sipt_calling_party_nai == 3) Returns the value of the Nature of Address Indicator of the Called Party for the IAM message. Returns -1 if there is a parsing error.
+ Table 1.4. Called Nature of Address Values + 0 Spare + 1 Subscriber Number (national use) + 2 Unknown (national use) + 3 National (significant) number + 4 International use + 5 Network-specific number (national use) + Example 1.8. sipt_called_party_nai pseudo-variable usage ... # get the Called Nai and add country code if national diff --git a/modules/sipt/doc/sipt_admin.xml b/modules/sipt/doc/sipt_admin.xml index dbcad85..326e42c 100644 --- a/modules/sipt/doc/sipt_admin.xml +++ b/modules/sipt/doc/sipt_admin.xml @@ -77,13 +77,24 @@ sipt_set_calling($fU, 4, 0, 3); </section> <section> <title>Exported pseudo-variables</title> - <section> + <section id="sipt.v.sipt_presentation"> <title><varname>$sipt_presentation</varname></title> <para> Returns the value of the Address presentation restricted indicator contained in the Calling Party Number header of the IAM message if it exists. Returns -1 if there isn't a Calling Party Number header. </para> + <table> + <title>Address Presentation Restricted Indicator Values</title> + <tgroup cols="2"> + <tbody> + <row><entry>0</entry><entry>presentation allowed</entry></row> + <row><entry>1</entry><entry>presentation restricted</entry></row> + <row><entry>2</entry><entry>address not avail (national use)</entry></row> + <row><entry>3</entry><entry>spare</entry></row> + </tbody> + </tgroup> + </table> <example> <title><function moreinfo="none">sipt_presentation pseudo-variable</function> usage</title> <programlisting format="linespecific"> @@ -99,13 +110,24 @@ if($sipt_presentation == 1) </programlisting> </example> </section> - <section> + <section id="sipt.v.sipt_screening"> <title><varname>$sipt_screening</varname></title> <para> Returns the value of the Screening Indicator contained in the Calling Party Number header of the IAM message if it exists. Returns -1 if there isn't a Calling Party Number header. </para> + <table> + <title>Screening Indicator Values</title> + <tgroup cols="2"> + <tbody> + <row><entry>0</entry><entry>Reserved (user provided, not verified)</entry></row> + <row><entry>1</entry><entry>User Provided, Verified and Passed</entry></row> + <row><entry>2</entry><entry>Reserved (user provided, verified and failed)</entry></row> + <row><entry>3</entry><entry>Network provided</entry></row> + </tbody> + </tgroup> + </table> <example> <title><function moreinfo="none">sipt_screening pseudo-variable</function> usage</title> <programlisting format="linespecific"> @@ -123,7 +145,7 @@ if($avp(s:screening) != 1 && $avp(s:screening) != 3) </programlisting> </example> </section> - <section> + <section id="sipt.v.sipt_hop_counter"> <title><varname>$sipt_hop_counter</varname></title> <para> Returns the value of the Hop Counter for the IAM message if it exists. @@ -145,7 +167,7 @@ if($avp(s:hop) > 0) </programlisting> </example> </section> - <section> + <section id="sipt.v.sipt_cpc"> <title><varname>$sipt_cpc</varname></title> <para> Returns the value of the Calling Party Category for the IAM message. @@ -162,7 +184,7 @@ append_hf("X-CPC: $sipt_cpc\r\n"); </programlisting> </example> </section> - <section> + <section id="sipt.v.sipt_calling_party_nai"> <title><varname>$sipt_calling_party_nai</varname></title> <para> Returns the value of the Nature of Address Indicator @@ -170,6 +192,18 @@ append_hf("X-CPC: $sipt_cpc\r\n"); Returns -1 if there is a parsing error or if the Calling Party Number is not present. </para> + <table> + <title>Calling Nature of Address Values</title> + <tgroup cols="2"> + <tbody> + <row><entry>0</entry><entry>Spare</entry></row> + <row><entry>1</entry><entry>Subscriber Number (national use)</entry></row> + <row><entry>2</entry><entry>Unknown (national use)</entry></row> + <row><entry>3</entry><entry>National (significant) number (national use)</entry></row> + <row><entry>4</entry><entry>International use</entry></row> + </tbody> + </tgroup> + </table> <example> <title><function moreinfo="none">sipt_calling_party_nai pseudo-variable</function> usage</title> <programlisting format="linespecific"> @@ -184,13 +218,26 @@ if($sipt_calling_party_nai == 3) </programlisting> </example> </section> - <section> + <section id="sipt.v.sipt_called_party_nai"> <title><varname>$sipt_called_party_nai</varname></title> <para> Returns the value of the Nature of Address Indicator of the Called Party for the IAM message. Returns -1 if there is a parsing error. </para> + <table> + <title>Called Nature of Address Values</title> + <tgroup cols="2"> + <tbody> + <row><entry>0</entry><entry>Spare</entry></row> + <row><entry>1</entry><entry>Subscriber Number (national use)</entry></row> + <row><entry>2</entry><entry>Unknown (national use)</entry></row> + <row><entry>3</entry><entry>National (significant) number</entry></row> + <row><entry>4</entry><entry>International use</entry></row> + <row><entry>5</entry><entry>Network-specific number (national use)</entry></row> + </tbody> + </tgroup> + </table> <example> <title><function moreinfo="none">sipt_called_party_nai pseudo-variable</function> usage</title> <programlisting format="linespecific">