Hello,<br><br>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)?<br><br>Thanks,<br><br><div class="gmail_quote">On Fri, Sep 2, 2011 at 9:52 AM, caio <span dir="ltr">&lt;<a href="mailto:elcaio@gmail.com">elcaio@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br><br>The documentation of carrierroute says &quot;If flags and mask are not zero, and no match to the message flags is possible, no
        routing will be done.&quot; Then is there any route entry which can act as default gw (like an always-match entry)?<br><br>For example this &#39;carrierroute&#39; table:<br><br>   +---------+--------+-------------+-------+------+------+<br>

   | carrier | domain | scan_prefix | flags | mask |<br>   +---------+--------+-------------+-------+------+------+<br>1  |       1 |      1 | 156         |     500 |    0 | <br>2  |       1 |      1 |             |     0 |    0 | <br>

3  |       1 |      2 |             |     0 |    0 | <br>   +---------+--------+-------------+-------+------+-<br><br>Here if ruri is 156xx, and there is no flag set, then the cr module does not find a match because of the non-zero value in the flag column (entry 1).<br>

But I want to route this call via carrier1 domain1 and scan_prefix empty-value entry (entry 2).<br><br>How can I set a default route entry here? Is possible with cr? Now I only find it possible via a pstn.def_gw_ip variable.<br>

Thank you,<br><br>Claudio<br>
</blockquote></div><br>