Browse code

rtpproxy: fix docs for rtpproxy_stop_stream2uas()

- it has no parameters

Daniel-Constantin Mierla authored on 19/04/2017 06:04:27
Showing 1 changed files
... ...
@@ -801,6 +801,29 @@ rtpproxy_manage();
801 801
 	    These functions can be used from REQUEST_ROUTE, ONREPLY_ROUTE.
802 802
 	</para>
803 803
 	</section>
804
+	<section id="rtpproxy.f.rtpproxy_stop_stream2uas">
805
+	<title>
806
+	    <function>rtpproxy_stop_stream2uas()</function>
807
+	</title>
808
+	<para>
809
+		See function <function>rtpproxy_stop_stream2uac()</function>.
810
+	</para>
811
+	<example>
812
+	    <title><function>rtpproxy_stop_stream2uas</function> usage</title>
813
+	    <programlisting>
814
+...
815
+    if (is_method("INVITE")) {
816
+        rtpproxy_offer();
817
+        if (is_audio_on_hold()) {
818
+            rtpproxy_stream2uas("/var/rtpproxy/prompts/music_on_hold", "-1");
819
+        } else {
820
+            rtpproxy_stop_stream2uas();
821
+        };
822
+    };
823
+...
824
+	    </programlisting>
825
+	</example>
826
+	</section>
804 827
 	<section id="rtpproxy.f.start_recording">
805 828
 		<title>
806 829
 		<function moreinfo="none">start_recording()</function>
... ...
@@ -822,15 +845,6 @@ start_recording();
822 845
 		</programlisting>
823 846
 		</example>
824 847
 	</section>
825
-	<section id="rtpproxy.f.rtpproxy_stop_stream2uas">
826
-	<title>
827
-	    <function>rtpproxy_stop_stream2uas(prompt_name, count)</function>
828
-	</title>
829
-	<para>
830
-		See function <function>rtpproxy_stop_stream2uac(prompt_name, count)</function>.
831
-	</para>
832
-	</section>
833
-
834 848
 
835 849
 	</section>
836 850