[OpenSIPS-Users] Check request come from registered user
    Alex Balashov 
    abalashov at evaristesys.com
       
    Fri Nov 14 22:43:23 CET 2008
    
    
  
Giuseppe Roberti wrote:
> Hi.
> 
> How can i check that a request come from a registered user ?
> 
> Regards.
> 
1. Save the existing RURI into a pseudovariable.
2. Rewrite the RURI to contain user's AOR at your_registration_domain.
3. Call lookup().
4. If lookup() unsuccessful, reject.
5. If lookup() successful, reset RURI to the value you saved in the 
pseudovariable and forward on.
-- 
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599
    
    
More information about the Users
mailing list