[Serusers] Configuring the SER proxy with RTPproxy
Ehsan Karimi
eskandary at gmail.com
Sun Oct 3 17:12:11 CEST 2004
Dear All
i have a network , and all of nodes have valid ip addresses, i have
the ser 0.8.12 (i386/linux) with valid ip :
My clients -------------> SER box (sip proxy) ------------->
carrier (Cisco Box )
valid ip valid ip
valid ip
Windows messenger version: 0.8.12 IOS :12.2.4
The current config of my ser proxy is :
fifo="/tmp/ser_fifo"
alias=panaisp.net
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "db_url", "sql://ser:heslo@localhost/ser")
modparam("auth_radius", "radius_config",
"/usr/local/etc/radiusclient/radiusclient.conf")
modparam("auth_radius", "service_type", 15)
modparam("acc", "radius_config",
"/usr/local/etc/radiusclient/radiusclient.conf")
modparam("acc", "log_level", 1)
modparam("acc", "radius_flag", 1)
modparam("acc", "radius_missed_flag", 2)
modparam("acc", "log_fmt", "duprmiocfst")
modparam("acc", "early_media", 1)
route{
/* ********* ROUTINE CHECKS ********************************** */
if (!mf_process_maxfwd_header("10")) {
log("LOG: Too many hops\n");
sl_send_reply("483","Too Many Hops");
break;
};
if ( msg:len > max_len ) {
sl_send_reply("513", "Wow -- Message too large");
break;
};
setflag(1);
setflag(2);
acc_rad_request("");
if (method=="INVITE") {
record_route();
if (!radius_www_authorize("panaisp.net")) {
www_challenge("panaisp.net", "0");
break;
};
}
if (uri==myself) {
if (method=="REGISTER") {
if (!radius_www_authorize("panaisp.net")) {
www_challenge("panaisp.net", "0");
break;
};
save("location");
break;
};
if (lookup("location")) {
forward(uri:host, uri:port);
break;
};
};
if (uri=~"^sip:[0-9]*@") {
if (uri=~"^sip:00" ) {
strip(2);
}
if (uri=~"^sip:[2-9]") {
prefix("82135011");
} else {
prefix("82135");
}
rewritehostport("63.243.143.8:5060");
};
forward(uri:host, uri:port);
}
I want to force the RTP traffic of my clients pass through the ser server .
Then i deside to use the RTP proxy + nathelper .
Please advise me that what change i must do in my current ser config ???
Best Regards
Ehsan
More information about the sr-users
mailing list