瀏覽代碼

tm: updated xml docs with t_set_disable_internal_reply()

- backported from 6073949aa224ea7a973058891a88a58cc0841860
Daniel-Constantin Mierla 12 年之前
父節點
當前提交
e7a00bb913
共有 1 個文件被更改,包括 20 次插入0 次删除
  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>