Browse Source

modules_k/rtpproxy/examples: update examples to use rtpproxy_offer/rtpproxy_answer functions

Ovidiu Sas 15 years ago
parent
commit
ede9baa37e
2 changed files with 10 additions and 10 deletions
  1. 5 5
      modules_k/rtpproxy/examples/4to6.cfg
  2. 5 5
      modules_k/rtpproxy/examples/alg.cfg

+ 5 - 5
modules_k/rtpproxy/examples/4to6.cfg

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

+ 5 - 5
modules_k/rtpproxy/examples/alg.cfg

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