Selaa lähdekoodia

tm: updated xml docs with t_set_disable_internal_reply()

- backported from 6073949aa224ea7a973058891a88a58cc0841860
Daniel-Constantin Mierla 12 vuotta sitten
vanhempi
commit
e7a00bb913
1 muutettua tiedostoa jossa 20 lisäystä ja 0 poistoa
  1. 20 0
      modules/tm/doc/functions.xml

+ 20 - 0
modules/tm/doc/functions.xml

@@ -1380,6 +1380,26 @@ route {
 	</example>
 	</section>
 
+	<section id="tm.f.t_set_disable_internal_reply">
+	<title>
+		<function>t_set_disable_internal_reply(0|1)</function>
+	</title>
+		<para>
+		Turn off/on sending internally a SIP reply in case of relay errors.
+		</para>
+		<example>
+		<title><function>t_set_disable_internal_reply</function> usage</title>
+		<programlisting>
+...
+t_set_disable_internal_reply(1); # turn off sending internal reply on error
+if(!t_relay()) {
+   send_reply("500", "Server error");
+}
+...
+		</programlisting>
+		</example>
+	</section>
+
 	<section id="t_replicate">
 	<title>
 	    <function>t_replicate(params)</function>