[Users] How to redirect based on from_uri and uri

Daniel-Constantin Mierla daniel at voice-system.ro
Wed Sep 6 14:30:14 CEST 2006



On 09/05/06 16:32, Darren DeLitizia wrote:
> 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.

look at avpops module, you should be able to get your roouting using the 
operations provided by that module.
http://www.openser.org/docs/modules/1.1.x/avpops.html

Cheers,
Daniel

>
> Thanks all
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>   




More information about the Users mailing list