Module: sip-router Branch: master Commit: ede9baa37e6a6abed0c777bf6fe1cc28bc2ec55d URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ede9baa3...
Author: Ovidiu Sas osas@voipembedded.com Committer: Ovidiu Sas osas@voipembedded.com Date: Wed Oct 6 19:24:43 2010 -0400
modules_k/rtpproxy/examples: update examples to use rtpproxy_offer/rtpproxy_answer functions
---
modules_k/rtpproxy/examples/4to6.cfg | 10 +++++----- modules_k/rtpproxy/examples/alg.cfg | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/modules_k/rtpproxy/examples/4to6.cfg b/modules_k/rtpproxy/examples/4to6.cfg index 5dd5ba9..8519a55 100644 --- a/modules_k/rtpproxy/examples/4to6.cfg +++ b/modules_k/rtpproxy/examples/4to6.cfg @@ -70,20 +70,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"); @@ -110,5 +110,5 @@ route { onreply_route[1] { if (!(status=~"183" || status=~"200")) break; - force_rtp_proxy("FA"); + rtpproxy_answer("FA"); } diff --git a/modules_k/rtpproxy/examples/alg.cfg b/modules_k/rtpproxy/examples/alg.cfg index d2678a5..19e875e 100644 --- a/modules_k/rtpproxy/examples/alg.cfg +++ b/modules_k/rtpproxy/examples/alg.cfg @@ -64,17 +64,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"); @@ -101,5 +101,5 @@ route { onreply_route[1] { if (!(status=~"183" || status=~"200")) break; - force_rtp_proxy("FA"); + rtpproxy_answer("FA"); }