[Users] How to redirect based on from_uri and uri

Darren DeLitizia darren at darrend.com
Tue Sep 5 15:32:53 CEST 2006


Here is what I want to do. Domestic routing defining interlata and intralata based off of ani and dnis (from uri and uri). Now let's not dive too much into the whole domestic routing thing or we'll be here for the next century. Bottom line is, this what I want to do with openser. 
1. Look at ani (from_uri) (NPA - first 3 digits)
2. Look at dnis (uri) - (NPA - first 3 digits)
3. If the NPA (first 3 digits) in ani is in same as the DNIS NPA then redirect 555dnis at ip_address 
4. If ANI NPA is in same as DNIS NPA then redirect 999dnbis at ip_address 
I am redirecting so I can be and stay stateless 

I am able to redirect but unable to figure out correct syntax for it to look at ani and dnis then redirect appropriately.

Thanks all 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20060905/6d4cba3f/attachment.htm 


More information about the Users mailing list