Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...

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.

...

To change the level of logging, execute karoo --reset-log-level {log level} while Karoo Bridge is running. ie karoo --reset-log-level debug.

When testing javascript handler code, you may wish display variable values by writing to either error or debug logs by calling log_debug(""); or log_error(""); procedures.