|
@@ -108,4 +108,84 @@ if (msg_status==503){ # blacklist 503 source for Retry-After seconds
|
|
|
</example>
|
|
|
</section>
|
|
|
|
|
|
+ <section id="blst_set_ignore">
|
|
|
+ <title>
|
|
|
+ <function>blst_set_ignore()</function>
|
|
|
+ <function>blst_set_ignore(flags)</function>
|
|
|
+ <function>blst_rpl_set_ignore()</function>
|
|
|
+ <function>blst_rpl_set_ignore(flags)</function>
|
|
|
+ </title>
|
|
|
+ <para>
|
|
|
+ Set errors that will not be taken into account when deciding
|
|
|
+ whether or not to blacklist a destination for the current message
|
|
|
+ or a local reply to the current message.
|
|
|
+ </para>
|
|
|
+ <para>
|
|
|
+ <function>blst_set_ignore(..)</function> works for forwarding the
|
|
|
+ current message and <function>blst_rpl_set_ignore(...)</function>
|
|
|
+ works for local replies to the current message.
|
|
|
+ </para>
|
|
|
+ <para>
|
|
|
+ The variants with no parameters will ignore everything (equivalent
|
|
|
+ with passing 0xff).
|
|
|
+ </para>
|
|
|
+ <para>
|
|
|
+ The following flags are defined:
|
|
|
+ <itemizedlist>
|
|
|
+ <listitem>
|
|
|
+ <emphasis>0x02</emphasis> - generic send error (send denied/
|
|
|
+ failed).
|
|
|
+ </listitem>
|
|
|
+ <listitem>
|
|
|
+ <emphasis>0x04</emphasis> - connect failed (TCP, TLS or SCTP).
|
|
|
+ </listitem>
|
|
|
+ <listitem>
|
|
|
+ <emphasis>0x08</emphasis> - ICMP error (not currently used).
|
|
|
+ </listitem>
|
|
|
+ <listitem>
|
|
|
+ <emphasis>0x10</emphasis> - SIP transaction timeout.
|
|
|
+ </listitem>
|
|
|
+ <listitem>
|
|
|
+ <emphasis>0x20</emphasis> - 503 reply (statefull mode only).
|
|
|
+ For more details see <emphasis>tm</emphasis>
|
|
|
+ <varname>blst_503</varname>.
|
|
|
+ </listitem>
|
|
|
+ </itemizedlist>
|
|
|
+ </para>
|
|
|
+ <note>
|
|
|
+ TCP and TLS send and connect errors are handled per connection and
|
|
|
+ not per message. The connection blacklist ignore flags are inherithed
|
|
|
+ from the message that caused the connection establishment.
|
|
|
+ </note>
|
|
|
+ <example>
|
|
|
+ <title><function>blst_set_ignore</function> usage</title>
|
|
|
+ <programlisting>
|
|
|
+ blst_set_ignore(6); # ignore send and connect errors
|
|
|
+ </programlisting>
|
|
|
+ </example>
|
|
|
+ </section>
|
|
|
+
|
|
|
+ <section id="blst_clear_ignore">
|
|
|
+ <title>
|
|
|
+ <function>blst_clear_ignore()</function>
|
|
|
+ <function>blst_clear_ignore(flags)</function>
|
|
|
+ <function>blst_rpl_clear_ignore()</function>
|
|
|
+ <function>blst_rpl_clear_ignore(flags)</function>
|
|
|
+ </title>
|
|
|
+ <para>
|
|
|
+ Clears blacklist ignore flags previously set by the corresponding
|
|
|
+ <function>blst_set_ignore(...)</function> or
|
|
|
+ <function>blst_rpl_set_ignore(...)</function> functions.
|
|
|
+ </para>
|
|
|
+ <para>
|
|
|
+ See also <function>blst_set_ignore</function>.
|
|
|
+ </para>
|
|
|
+ <example>
|
|
|
+ <title><function>blst_clear_ignore</function> usage</title>
|
|
|
+ <programlisting>
|
|
|
+ blst_clear_ignore(4); # ignore connect errors
|
|
|
+ </programlisting>
|
|
|
+ </example>
|
|
|
+ </section>
|
|
|
+
|
|
|
</section>
|