Hi Kapil,
Thanks for your reply,
I am using freeradius and I want to authenticate users with freeradius based
on the ip of user.
-----Original Message-----
From: Kapil Dhawan [mailto:sersavvy@hotmail.com]
Sent: 12 Mart 2006 Pazar 07:42
To: Gokhan Uslu
Cc: serusers(a)lists.iptel.org
Subject: RE: [Serusers] Authentication Based On IP Addresses
in ser.cfg
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if(method=="INVITE"){
if (src_ip==x1.y1.z1.w1){
if (uri=~"^sip:001*@*"){
rewritehost("x.y.z.w");
t_relay_to_udp("x.y.z.w","5060");
break;
};
};
};
This states that if Call is coming from x1.y1.z1.w1 and 00 as prefix then
forward it to your Provider.
>From: Gokhan Uslu <g.uslu(a)teles.com>
>To: "'serusers(a)lists.iptel.org'" <serusers(a)lists.iptel.org>
>Subject: [Serusers] Authentication Based On IP Addresses
>Date: Sat, 11 Mar 2006 18:58:24 +0100
>
>
>Hi All...
>I am using SER and FREERADIUS
>I want to authenticate all the clients based on IP addresses. How to
>proceed...? where to make the changes? can any one give me the sample
>code function?...Thanks for any hint...
>
>Gokhan USLU
>
>
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_________________________________________________________________
NRIs: Still paying for money transfers? Now send Money2India for FREE!
http://ads.mediaturf.net/event.ng/Type=click&FlightID=20273&AdID=65990&Targe
tID=11172&Targets=11172&Values=202,414,1093,1264,3122&Redirect=http:%2F%2Fww
w.icicinri.net%2Fmoney2india%2F%3Fm2i%3DBAC-MSN%26att%3DMSNTLM2I70CHAR%26rfr
%3DMSNTLM2I70CHAR
Hi All...
I am using SER and FREERADIUS
I want to authenticate all the clients based on IP addresses. How to
proceed...? where to make the changes?
can any one give me the sample code function?...Thanks for any hint...
Gokhan USLU
Hi all:
Do I need to uninstall SER if I want to update SER v0.9.4 to SER v0.9.6? How can I uninstall SER? The command "make uninstall" do not work. Thanks!
Sincerely
Caxton
Sorry in advance if posting to the wrong list.
Looking to hire someone to install and setup OpenSER and web interface on
Fedora Core 4 - 64bit box.
Please respond off list of call.
-Mark Halverson
530-227-3138
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006
Hello,
I have noticed that is_from_local in the Domain module is case-sensitive
if the module is in caching mode. In non-caching mode it is case
insensitive.
Could this be fixed in the future?
thank you
George
Disclaimer
The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are the intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.
I read the SER presence handbook as you told me, I follow the
instructions to install ser with presence modules but i receive some
erros and modules wasn't installed.
I go back to my old ser installation with pa module, configure some
lines in ser.gfc to handle subscribe but now I'm receiving an error to
SUSCRIBE and PUBLISH, it's like pa module can't process messages:
Status: 400 Bad Request (ethereal)
this is my ser.cfg:
# ----------- 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
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"
fifo_mode=666
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/lib/ser/modules/mysql.so"
loadmodule "/usr/lib/ser/modules/sl.so"
loadmodule "/usr/lib/ser/modules/tm.so"
loadmodule "/usr/lib/ser/modules/rr.so"
loadmodule "/usr/lib/ser/modules/maxfwd.so"
loadmodule "/usr/lib/ser/modules/usrloc.so"
loadmodule "/usr/lib/ser/modules/registrar.so"
loadmodule "/usr/lib/ser/modules/textops.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/lib/ser/modules/auth.so"
loadmodule "/usr/lib/ser/modules/auth_db.so"
#esta linea la agrego para cargar el modulo de presencia.
loadmodule "/usr/lib/ser/modules/pa.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "db_url", "mysql://ser:heslo@localhost/ser" )
# 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)
# -- pa params --
modparam("pa","default_expires", 3600)
modparam("pa","use_db",1)
modparam("pa","db_url","mysql://ser:heslo@localhost/ser")
# ------------------------- 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 >= 2048 ) {
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
if (!method=="REGISTER") record_route();
# subsequent messages withing a dialog should take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if (!uri==myself) {
# mark routing logic in request
append_hf("P-hint: outbound\r\n");
route(1);
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("p2t.com", "subscriber")) {
www_challenge("p2t.com", "0");
break;
};
save("location");
break;
};
if (method=="SUBSCRIBE" || method=="PUBLISH") {
if (t_newtran()) {
handle_subscription("registrar");
break;
};
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1]
{
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
}
Do you have any idea of what's happening???
Thanks again...
Gustavo.
Hi all:
I want to create a billing system by using ser and radius. Is there any document about setting radiusclient with ser? The software are too old to used in document "SIP Express Router RADIUS HOWTO" in iptel.org. Now, I have already installed the radius server and ser & radiuseclient in two computers. The radius server seems to work well, but i am not sure wherter the radius server and radiusclient could be work besause of the difficult steps setting. If I could know more about the setup details that will be grate. Please give me a hand, thank you.
Sincerely,
Caxton
.