[OpenSIPS-Users] OpenSIPS with public/private interface and RTPProxy
kamika
kamil.nigmatullin at gmail.com
Sun May 12 22:04:35 CEST 2013
Actually, you do not have any references to rtpproxy_offer and
rtpproxy_answer niether you didn't attach any configurations.
I tried for 3 months to understand how it should work and this is a brief
summery:
Opesips config sh
loadmodule "rtpproxy.so"
#I use udp control sockets but unix sockets is also avalable
modparam("rtpproxy", "rtpproxy_sock","1 == udp:172.16.15.252:9000
udp:172.16.15.252:9001 udp:172.16.15.252:9002 udp:172.16.15.252:9003")
if(is_method("INVITE"){
if (has_body("application/sdp")){
set_rtp_proxy_set("$avp(rtpproxy_set)"); #I have a lot of sets
and control it via this avp
rtpproxy_offer("rowieco"); #This when Invite request comes from
public network.
}
}
and on reply I set:
set_rtp_proxy_set("$avp(rtpproxy_set)");
if (has_body("application/sdp")){
if ($avp(bridge_type)=="ei"){
rtpproxy_answer("wio");
}
# if you do not use set_rtp_proxy_set I recoment to set IP address if
interface like this rtpproxy_answer("wio","172.16.15.251");
And you should have rtpproxy ran properly. Here is an example:
#!/bin/bash
killall -9 rtpproxy
echo "starting rtpproxy 1...";
/usr/local/bin/rtpproxy -F -l 91.135.XXX.XXX/172.16.15.252 -p
/var/run/rtpproxy.pid -s udp:172.16.15.252:9000 -m 28000 -M 34999
echo "starting rtpproxy 2...";
/usr/local/bin/rtpproxy -F -l 91.135.XXX.XXX/172.16.15.252 -p
/var/run/rtpproxy.pid -s udp:172.16.15.252:9001 -m 35000 -M 44999
echo "starting rtpproxy 3...";
/usr/local/bin/rtpproxy -F -l 91.135.XXX.XXX/172.16.15.252 -p
/var/run/rtpproxy.pid -s udp:172.16.15.252:9002 -m 45000 -M 54999
echo "starting rtpproxy 4...";
/usr/local/bin/rtpproxy -F -l 91.135.XXX.XXX/172.16.15.252 -p
/var/run/rtpproxy.pid -s udp:172.16.15.252:9003 -m 55000 -M 64999
echo "done";
echo "restarting opensips";
opensipsctl restart
--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-with-public-private-interface-and-RTPProxy-tp7586245p7586283.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
More information about the Users
mailing list