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=65…