...
Karoo Bridge routing is done using an API called Flexi-Route. Flexi-Route gives you a handle on every SIP Message that goes in and out of Karoo Bridge. Flexi Route is standard ECMA JavaScript so it benefits from every cool feature that the language provides including JavaScript regular expressions. The inspiration behind a scripting language versus using DB-based dial plans was born out of the fact that there is no single rule in routing and no amount of database structure would be enough to compensate for the different and ever changing rules needed for dial-plan maintenance.
Debugging
Karoo Bridge logs are found under /var/log/karoo/ directory. The main log of interest is sbc.log.
The change the level of logging, execute karoo --reset-log-level {log level}. ie aroo --reset-log-level debug