Hi,
Having tremendous trouble with SER + RTPProxy.
Running Fedora Core 1.
Have made RTPProxy using: make -f Makefile.gnu
Then run it fine by using: ./rtpproxy
Netstat shows:
Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 11433 2443/rtpproxy /var/run/rtpproxy.sock unix 43 [ ] DGRAM 1822 1947/syslogd /dev/log unix 2 [ ] DGRAM 13503 2580/ser unix 2 [ ] DGRAM 13500 2616/ser unix 2 [ ] DGRAM 13497 2615/ser ...... [cropped]
When I start SER (version 0.8.14 - latest) I get this in the messages file:
Sep 28 16:03:46 testsip2 /sbin/ser[2582]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2582]: WARNING: rtpp_test: can't get version of the RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2582]: WARNING: rtpp_test: support for RTP proxyhas been disabled temporarily Sep 28 16:03:46 testsip2 /sbin/ser[2583]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2583]: WARNING: rtpp_test: can't get version of the RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2583]: WARNING: rtpp_test: support for RTP proxyhas been disabled temporarily Sep 28 16:03:46 testsip2 /sbin/ser[2584]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2584]: WARNING: rtpp_test: can't get version of the RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2584]: WARNING: rtpp_test: support for RTP proxyhas been disabled temporarily Sep 28 16:03:46 testsip2 /sbin/ser[2585]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2585]: WARNING: rtpp_test: can't get version of the RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2585]: WARNING: rtpp_test: support for RTP proxyhas been disabled temporarily Sep 28 16:03:46 testsip2 /sbin/ser[2586]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2589]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2587]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2588]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2589]: WARNING: rtpp_test: can't get version of the RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2590]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2591]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2592]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2586]: WARNING: rtpp_test: can't get version of the RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2587]: WARNING: rtpp_test: can't get version of the RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2593]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2594]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2595]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2596]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2588]: WARNING: rtpp_test: can't get version of the RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2597]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2598]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2599]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2600]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2589]: WARNING: rtpp_test: support for RTP proxyhas been disabled temporarily Sep 28 16:03:46 testsip2 /sbin/ser[2601]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2602]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2603]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2604]: ERROR: send_rtpp_command: can't read reply from a RTP proxy Sep 28 16:03:46 testsip2 /sbin/ser[2590]: WARNING: rtpp_test: can't get version of the RTP proxy ...... [cropped]
My ser.cfg if it helps is:
# # $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei Exp $ # # simple quick-start config script #
# ----------- global configuration parameters ------------------------
#debug=3 # debug level (cmd line: -dddddddddd) #fork=yes #log_stderror=no # (cmd line: -E)
/* Uncomment these lines to enter debugging mode debug=7 fork=no log_stderror=yes */
check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) #port=5060 #children=4 fifo="/tmp/ser_fifo"
#alias=davidsimmons.co.uk
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database #loadmodule "//lib/ser/modules/mysql.so"
loadmodule "//lib/ser/modules/nathelper.so" loadmodule "//lib/ser/modules/sl.so" loadmodule "//lib/ser/modules/tm.so" loadmodule "//lib/ser/modules/rr.so" loadmodule "//lib/ser/modules/maxfwd.so" loadmodule "//lib/ser/modules/usrloc.so" loadmodule "//lib/ser/modules/registrar.so"
# Uncomment this if you want digest authentication # mysql.so must be loaded ! #loadmodule "//lib/ser/modules/auth.so" #loadmodule "//lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database # for persistent storage and comment the previous line #modparam("usrloc", "db_mode", 2)
# -- auth params -- # Uncomment if you are using auth module # #modparam("auth_db", "calculate_ha1", yes) # # If you set "calculate_ha1" parameter to yes (which true in this config), # uncomment also the following parameter) # #modparam("auth_db", "password_column", "password")
# -- rr params -- # add value to ;lr param to make some broken UAs happy modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
route{
# initial sanity checks -- messages with # max_forwards==0, or excessively long requests if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); break; }; if ( msg:len > max_len ) { sl_send_reply("513", "Message too big"); break; };
# we record-route all messages -- to make sure that # subsequent messages will go through our proxy; that's # particularly good if upstream and downstream entities # use different transport protocol record_route(); # loose-route processing if (loose_route()) { t_relay(); break; }; # if the request is for other domain use UsrLoc # (in case, it does not work, use the following command # with proper names and addresses in it) if (uri==myself) {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication # if (!www_authorize("iptel.org", "subscriber")) { # www_challenge("iptel.org", "0"); # break; # };
save("location"); break; };
# native SIP destinations are handled using our USRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); break; }; };
# inserted by klaus if (method=="INVITE") { record_route(); force_rtp_proxy(); /* set up reply processing */ t_on_reply("1"); };
# forward to current uri now; use stateful forwarding; that # works reliably even if we forward from TCP to UDP if (!t_relay()) { sl_reply_error(); };
}
#inserted by klaus # all incoming replies for t_onrepli-ed transactions enter here onreply_route[1] { if (status=~"[12][0-9][0-9]") force_rtp_proxy(); }
Hope you can help as this is driving me mad now :(
Best Regards,
Dave