Browse code

modules: readme files regenerated - rtpproxy ... [skip ci]

Kamailio Dev authored on 19/04/2017 06:16:41
Showing 1 changed files
... ...
@@ -75,8 +75,8 @@ Carsten Bock
75 75
               5.7. rtpproxy_stream2uac(prompt_name, count),
76 76
               5.8. rtpproxy_stream2uas(prompt_name, count)
77 77
               5.9. rtpproxy_stop_stream2uac(),
78
-              5.10. start_recording()
79
-              5.11. rtpproxy_stop_stream2uas(prompt_name, count)
78
+              5.10. rtpproxy_stop_stream2uas()
79
+              5.11. start_recording()
80 80
 
81 81
         6. Exported Pseudo Variables
82 82
 
... ...
@@ -109,10 +109,11 @@ Carsten Bock
109 109
    1.16. rtpproxy_destroy usage
110 110
    1.17. rtpproxy_manage usage
111 111
    1.18. rtpproxy_stream2xxx usage
112
-   1.19. start_recording usage
113
-   1.20. $rtpstat-Usage
114
-   1.21. rtpproxy.enable usage
115
-   1.22. rtpproxy.list usage
112
+   1.19. rtpproxy_stop_stream2uas usage
113
+   1.20. start_recording usage
114
+   1.21. $rtpstat-Usage
115
+   1.22. rtpproxy.enable usage
116
+   1.23. rtpproxy.list usage
116 117
 
117 118
 Chapter 1. Admin Guide
118 119
 
... ...
@@ -150,8 +151,8 @@ Chapter 1. Admin Guide
150 151
         5.7. rtpproxy_stream2uac(prompt_name, count),
151 152
         5.8. rtpproxy_stream2uas(prompt_name, count)
152 153
         5.9. rtpproxy_stop_stream2uac(),
153
-        5.10. start_recording()
154
-        5.11. rtpproxy_stop_stream2uas(prompt_name, count)
154
+        5.10. rtpproxy_stop_stream2uas()
155
+        5.11. start_recording()
155 156
 
156 157
    6. Exported Pseudo Variables
157 158
 
... ...
@@ -415,8 +416,8 @@ xlog("L_INFO", "Chose rtpp instance $var(RTP_INSTANCE)\n");
415 416
    5.7. rtpproxy_stream2uac(prompt_name, count),
416 417
    5.8. rtpproxy_stream2uas(prompt_name, count)
417 418
    5.9. rtpproxy_stop_stream2uac(),
418
-   5.10. start_recording()
419
-   5.11. rtpproxy_stop_stream2uas(prompt_name, count)
419
+   5.10. rtpproxy_stop_stream2uas()
420
+   5.11. start_recording()
420 421
 
421 422
 5.1.  set_rtp_proxy_set(setid)
422 423
 
... ...
@@ -714,7 +715,23 @@ rtpproxy_manage();
714 715
 
715 716
    These functions can be used from REQUEST_ROUTE, ONREPLY_ROUTE.
716 717
 
717
-5.10.  start_recording()
718
+5.10.  rtpproxy_stop_stream2uas()
719
+
720
+   See function rtpproxy_stop_stream2uac().
721
+
722
+   Example 1.19. rtpproxy_stop_stream2uas usage
723
+...
724
+    if (is_method("INVITE")) {
725
+        rtpproxy_offer();
726
+        if (is_audio_on_hold()) {
727
+            rtpproxy_stream2uas("/var/rtpproxy/prompts/music_on_hold", "-1");
728
+        } else {
729
+            rtpproxy_stop_stream2uas();
730
+        };
731
+    };
732
+...
733
+
734
+5.11.  start_recording()
718 735
 
719 736
    This function will send a signal to the RTP-Proxy to record the RTP
720 737
    stream on the RTP-Proxy. This function is only supported by Sippy
... ...
@@ -722,15 +739,11 @@ rtpproxy_manage();
722 739
 
723 740
    This function can be used from REQUEST_ROUTE and ONREPLY_ROUTE.
724 741
 
725
-   Example 1.19. start_recording usage
742
+   Example 1.20. start_recording usage
726 743
 ...
727 744
 start_recording();
728 745
 ...
729 746
 
730
-5.11.  rtpproxy_stop_stream2uas(prompt_name, count)
731
-
732
-   See function rtpproxy_stop_stream2uac(prompt_name, count).
733
-
734 747
 6. Exported Pseudo Variables
735 748
 
736 749
    6.1. $rtpstat
... ...
@@ -742,7 +755,7 @@ start_recording();
742 755
    packet-counters. The statistics must be retrieved before the session is
743 756
    deleted (before unforce_rtpproxy()).
744 757
 
745
-   Example 1.20. $rtpstat-Usage
758
+   Example 1.21. $rtpstat-Usage
746 759
 ...
747 760
     append_hf("X-RTP-Statistics: $rtpstat\r\n");
748 761
 ...
... ...
@@ -765,7 +778,7 @@ start_recording();
765 778
    NOTE: if a rtpproxy is defined multiple times (in the same or different
766 779
    sets), all of its instances will be enabled/disabled.
767 780
 
768
-   Example 1.21.  rtpproxy.enable usage
781
+   Example 1.22.  rtpproxy.enable usage
769 782
 ...
770 783
 $ kamcmd rtpproxy.enable udp:192.168.2.133:8081 0
771 784
 ...
... ...
@@ -777,7 +790,7 @@ $ kamcmd rtpproxy.enable udp:192.168.2.133:8081 0
777 790
 
778 791
    No parameter.
779 792
 
780
-   Example 1.22.  rtpproxy.list usage
793
+   Example 1.23.  rtpproxy.list usage
781 794
 ...
782 795
 $ kamcmd rtpproxy.list
783 796
 ...