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