Hello Bogdan,<div>Thanks again!</div><div>Everything works fine.</div><div><br></div><div><div>Regards,</div><div><br></div><div>Sujeev</div><br><div class="gmail_quote">On Wed, Aug 11, 2010 at 9:54 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Sujeev,<br>
<br>
Sujeev wrote:<br>
<br>
[...]<br>
<div class="im">> one more thing.... could you please tell me how can I add MemCache<br>
> support for this config.<br>
><br>
> I followed this <a href="http://www.opensips.org/Resources/DocsTutMemcache" target="_blank">http://www.opensips.org/Resources/DocsTutMemcache</a><br>
> but I stuck at "modparam("auth_db", "load_credentials",<br>
> "$avp(i:55)=password")" because I already used "modparam("auth_db",<br>
> "load_credentials", "$avp(i:56)=host_ip_address")"<br>
<br>
</div>Simply load both :<br>
modparam("auth_db", "load_credentials", "$avp(i:55)=password ;<br>
<div class="im">$avp(i:56)=host_ip_address")<br>
<br>
</div>And cache both the password and the IP.<br>
<br>
Regards,<br>
Bogdan<br>
<div class="im"><br>
<br>
><br>
> Thank you!<br>
><br>
> Sujeev<br>
><br>
> On Mon, Aug 9, 2010 at 2:46 PM, Bogdan-Andrei Iancu<br>
</div><div class="im">> <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>> wrote:<br>
><br>
> Hi Sujeev,<br>
><br>
> You to first do standard digest authentication of the user (using the<br>
> proxy_auth() function) - to also check the IP, add a new column in<br>
> subscriber table (to keep the IP address) and load that column (during<br>
> digest auth) using the load_credentials (see<br>
> <a href="http://www.opensips.org/html/docs/modules/1.6.x/auth_db.html#id228201" target="_blank">http://www.opensips.org/html/docs/modules/1.6.x/auth_db.html#id228201</a>).<br>
</div>> <<a href="http://www.opensips.org/html/docs/modules/1.6.x/auth_db.html#id228201%29" target="_blank">http://www.opensips.org/html/docs/modules/1.6.x/auth_db.html#id228201%29</a>.>..<br>
<div><div></div><div class="h5">><br>
> So, once the digent auth was successfully validated, you will have the<br>
> provisioned IP loaded into a script variable, so you can easyly<br>
> check it<br>
> against $si (source IP of the message).<br>
><br>
> Regards,<br>
> Bogdan<br>
><br>
> Sujeev wrote:<br>
> > Hi everyone,<br>
> > I've a small OpenSIPs setup with 1500 ATAs. those ATAs are on a LAN<br>
> > and have a static IP address(Private).<br>
> > I want to authenticate those ATAs with a combination of username +<br>
> > password + IP of ATA on MySQL or Postgresql database.<br>
> ><br>
> > example;<br>
> > ATA 1<br>
> > ------<br>
> > IP : 10.2.222.4<br>
> > Username : 10001<br>
> > Password : 10001<br>
> ><br>
> > I added these info into a DB. When ATA 1 uses IP address<br>
> "10.2.222.4"<br>
> > ATA can register with my OpenSIPs server.<br>
> > When ATA 1 uses IP address 10.2.222.5 the registration should be<br>
> failed.<br>
> > Is that possible? if yes please tell me how.<br>
> ><br>
> ><br>
> > Thank you.<br>
> ><br>
> > Sujeev<br>
> ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
</div></div>> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
<div class="im">> > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> ><br>
><br>
><br>
> --<br>
> Bogdan-Andrei Iancu<br>
> OpenSIPS Bootcamp<br>
> 20 - 24 September 2010, Frankfurt, Germany<br>
</div>> <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
<div><div></div><div class="h5">> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
20 - 24 September 2010, Frankfurt, Germany<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>