Re: [OpenSIPS-Users] Call to registered user -- Caller id search

2015-09-24 Thread Bogdan-Andrei Iancu
Yes John, that is correct. If you do not have the key in cache, look it up in DB and store it in cache. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 24.09.2015 06:22, John Nash wrote: I think I can use local_cache and store caller id as key a

Re: [OpenSIPS-Users] Call to registered user -- Caller id search

2015-09-23 Thread John Nash
I think I can use local_cache and store caller id as key and sip user as value. Right? On Thu, Sep 24, 2015 at 8:26 AM, John Nash wrote: > OK..I also looked at alias module. I am really fascinated by cache any way > to use alias db with cache? > > On Wed, Sep 23, 2015 at 7:23 PM, Bogdan-Andrei I

Re: [OpenSIPS-Users] Call to registered user -- Caller id search

2015-09-23 Thread John Nash
OK..I also looked at alias module. I am really fascinated by cache any way to use alias db with cache? On Wed, Sep 23, 2015 at 7:23 PM, Bogdan-Andrei Iancu wrote: > Hi Nash, > > If the registration of user2 was handled via save("location"), you can > route the call to actual IP of user2 via look

Re: [OpenSIPS-Users] Call to registered user -- Caller id search

2015-09-23 Thread Bogdan-Andrei Iancu
Hi Nash, If the registration of user2 was handled via save("location"), you can route the call to actual IP of user2 via lookup("location"). To translate between the 2 number and User2 (before the lookup), use the aliases module. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and De

[OpenSIPS-Users] Call to registered user -- Caller id search

2015-09-17 Thread John Nash
I am trying to test a use case in which I need to send call to a registered user based on its caller ID. User1 Username = 1001 Carrier id = 11 User2 Username = 1002 Carrier id = 2 Both are registered to my opensips. Now if User1 calls number 2 , I want opensips to try to