...
Karoo Bridge environment configuration is stored in /etc/karoo.conf.d/config/sip.cfg file. This file is used to specify external interface, internal interface, rtp port ranges, sip ports, etc... Look inside the file to become more familiar with it.
Basic Flexi-Routing (/etc/karoo.conf.d/routes/route.js)
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.