Bladeren bron

Use rtpproxy_offer/rtpproxy_answer.

Maxim Sobolev 17 jaren geleden
bovenliggende
commit
f6d232ff74
2 gewijzigde bestanden met toevoegingen van 10 en 10 verwijderingen
  1. 5 5
      modules_s/nathelper/examples/4to6.cfg
  2. 5 5
      modules_s/nathelper/examples/alg.cfg

+ 5 - 5
modules_s/nathelper/examples/4to6.cfg

@@ -69,20 +69,20 @@ route {
 			# RTP for IPv4->IPv4 calls to go directly
 			# between UAs
 			if (af == inet)
-				if (force_rtp_proxy("FAII"))
+				if (rtpproxy_offer("FAII"))
 					t_on_reply("1");
 			if (af == inet6)
-				if (force_rtp_proxy("FAEI"))
+				if (rtpproxy_offer("FAEI"))
 					t_on_reply("1");
 		} else if (lookup("location-inet6")) {
 			if (af == inet)
-				if (force_rtp_proxy("FAIE"))
+				if (rtpproxy_offer("FAIE"))
 					t_on_reply("1");
 			# Comment out three lines below if you want
 			# RTP for IPv6->IPv6 calls to go directly
 			# between UAs
 			if (af == inet6)
-				if (force_rtp_proxy("FAEE"))
+				if (rtpproxy_offer("FAEE"))
 					t_on_reply("1");
 		} else {
 			sl_send_reply("403", "Call cannot be served here");
@@ -109,5 +109,5 @@ route {
 onreply_route[1] {
 	if (!(status=~"183" || status=~"200"))
 		break;
-	force_rtp_proxy("FA");
+	rtpproxy_answer("FA");
 }

+ 5 - 5
modules_s/nathelper/examples/alg.cfg

@@ -63,17 +63,17 @@ route {
 	if (method == "INVITE") {
 		if (lookup("location-internal")) {
 			if (dst_ip == 192.168.0.1)
-				if (force_rtp_proxy("FAII"))
+				if (rtpproxy_offer("FAII"))
 					t_on_reply("1");
 			if (dst_ip == 192.168.1.1)
-				if (force_rtp_proxy("FAEI"))
+				if (rtpproxy_offer("FAEI"))
 					t_on_reply("1");
 		} else if (lookup("location-external")) {
 			if (dst_ip == 192.168.0.1)
-				if (force_rtp_proxy("FAIE"))
+				if (rtpproxy_offer("FAIE"))
 					t_on_reply("1");
 			if (dst_ip == 192.168.1.1)
-				if (force_rtp_proxy("FAEE"))
+				if (rtpproxy_offer("FAEE"))
 					t_on_reply("1");
 		} else {
 			sl_send_reply("403", "Call cannot be served here");
@@ -100,5 +100,5 @@ route {
 onreply_route[1] {
 	if (!(status=~"183" || status=~"200"))
 		break;
-	force_rtp_proxy("FA");
+	rtpproxy_answer("FA");
 }