[OpenSIPS-Users] how do you determine first registration of a device
    Alex Balashov 
    abalashov at evaristesys.com
       
    Sat Sep 26 19:43:49 CEST 2009
    
    
  
As Inaki said, what you're trying to achieve is a little ridiculous.
But, if you must do it, I recommend using a database capable of 
advanced triggers and decent stored procedures (PostgreSQL) and using 
usrloc and registrar with full database backing and no caching or 
synchronisation (changes immediately reflected in database).  Then put 
a trigger on your 'location' table.  Trying to do this from the route 
script is silly.
Alex G wrote:
> I have a scenario where I'm trying to fire a script based on the first 
> registration of a device. In normal circumstances I can check the 
> location table using registered() function and if there is an entry i 
> know it's not the first registration. My problem is when a phone does a 
> quick reboot., it sometimes comes back on line before the phone's entry 
> is removed from the location table. In this case, the above solution 
> does not work.
> 
> Can anyone provide advice on how to determine first registration of a 
> phone coming back online in another way?
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-- 
Alex Balashov - Principal
Evariste Systems
Web     : http://www.evaristesys.com/
Tel     : (+1) (678) 954-0670
Direct  : (+1) (678) 954-0671
    
    
More information about the Users
mailing list