Re: [SR-Users] cr default route

2011-09-13 Thread caio
> if(!cr_route("default", "1", "$rU", "$rU", "call_id")){ > if(!cr_route("default", "2", "$rU", "$rU", "call_id")) #here rule 3 > would be selected because domain is 2, not 1 > send_reply("403", "Not allowed"); > } > > So you can have a special domain for each carrier that has no flags

Re: [SR-Users] cr default route

2011-09-13 Thread marius zbihlei
On 09/02/2011 03:52 PM, caio wrote: Hello, Hello, The documentation of carrierroute says "If flags and mask are not zero, and no match to the message flags is possible, no routing will be done." Then is there any route entry which can act as default gw (like an always-match entry)? From w

Re: [SR-Users] cr default route

2011-09-12 Thread caio
Hello, Anyone knows if is it possible to use the flags column but not to void another rule (same carrier and domain id, also same scan_prefix or empty-value here)? Thanks, On Fri, Sep 2, 2011 at 9:52 AM, caio wrote: > Hello, > > The documentation of carrierroute says "If flags and mask are not

[SR-Users] cr default route

2011-09-02 Thread caio
Hello, The documentation of carrierroute says "If flags and mask are not zero, and no match to the message flags is possible, no routing will be done." Then is there any route entry which can act as default gw (like an always-match entry)? For example this 'carrierroute' table: +-+---