Hello everyone, i am testing the carrierroute module to do the following: -If destination starts with 1760, the call is sent to PSTN GW. -If destination starts with 1305, the call is blocked.
The lab works as desired, however i am getting this error:
ERROR:carrierroute:carrier_rewrite_msg: during rewrite_uri_recursor, uri 13054941522 , carrier 0, domain 0
These are my tables: mysql> select * from carrierroute; +----+---------+-------------+--------+------+-------+---------------+----------------+----------------+---------+ | id | carrier | scan_prefix | domain | prob | strip | rewrite_host | rewrite_prefix | rewrite_suffix | comment | +----+---------+-------------+--------+------+-------+---------------+----------------+----------------+---------+ | 1 | 0 | 1760 | 0 | 1 | 0 | 70.165.183.36 | | | NULL | | 2 | 0 | 1305 | 0 | 1 | 0 | | | | NULL | +----+---------+-------------+--------+------+-------+---------------+----------------+----------------+---------+ 2 rows in set (0.00 sec)
mysql> select * from route_tree; +----+---------+ | id | carrier | +----+---------+ | 0 | default | +----+---------+ 1 row in set (0.00 sec)
And this is my config:
if (is_method("INVITE")) {
if(!cr_rewrite_uri("0", "call_id")){ sl_send_reply("403", "Not allowed"); exit(); }
}
any ideas?
best regards, Pablo.