<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Yes John, that is correct. If you do not have the key in cache,
      look it up in DB and store it in cache.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 24.09.2015 06:22, John Nash wrote:<br>
    </div>
    <blockquote
cite="mid:CAA4rGPy5DnT_QLK1++=fpa+u1JfSUhiC3qUQ_pY+CFUdGouCDg@mail.gmail.com"
      type="cite">
      <div dir="ltr">I think I can use local_cache and store caller id
        as key and sip user as value. Right?<br>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Thu, Sep 24, 2015 at 8:26 AM, John
          Nash <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:john.nash778@gmail.com" target="_blank">john.nash778@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">OK..I also looked at alias module. I am
              really fascinated by cache any way to use alias db with
              cache?<br>
            </div>
            <div class="HOEnZb">
              <div class="h5">
                <div class="gmail_extra"><br>
                  <div class="gmail_quote">On Wed, Sep 23, 2015 at 7:23
                    PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a
                        moz-do-not-send="true"
                        href="mailto:bogdan@opensips.org"
                        target="_blank">bogdan@opensips.org</a>&gt;</span>
                    wrote:<br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">
                      <div text="#000000" bgcolor="#FFFFFF"> <tt>Hi
                          Nash,<br>
                          <br>
                          If the registration of user2 was handled via
                          save("location"), you can route the call to
                          actual IP of user2 via lookup("location"). <br>
                          <br>
                          To translate between the 222222222 number and
                          User2 (before the lookup), use the aliases
                          module.<br>
                          <br>
                          Regards,<br>
                        </tt>
                        <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                        <div>
                          <div>
                            <div>On 17.09.2015 17:12, John Nash wrote:<br>
                            </div>
                          </div>
                        </div>
                        <blockquote type="cite">
                          <div>
                            <div>
                              <div dir="ltr">
                                <div>
                                  <div>
                                    <div>
                                      <div>
                                        <div>I am trying to test a use
                                          case in which I need to send
                                          call to a registered user
                                          based on its caller ID. <br>
                                          <br>
                                        </div>
                                        User1<br>
                                      </div>
                                      Username = 1001<br>
                                    </div>
                                    Carrier id = 1111111111<br>
                                    <br>
                                    User2<br>
                                    Username = 1002<br>
                                    Carrier id = 222222222<br>
                                    <br>
                                  </div>
                                  Both are registered to my opensips.
                                  Now if User1 calls number 222222222 ,
                                  I want opensips to try to reach User2
                                  if its online.<br>
                                  <br>
                                </div>
                                Is this possible?<br>
                              </div>
                              <br>
                              <fieldset></fieldset>
                              <br>
                            </div>
                          </div>
                          <pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                        </blockquote>
                        <br>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>