O'Reilly logo

Building Telephony Systems with OpenSIPS 1.6 by Flavio E. Goncalves

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Dynamic routing

The last script is fine if you have just a few gateways. However, the VoIP providers usually have hundreds or thousands of routes. Dynamic routing, or Drouting, is a module capable of efficiently routing a large number of routes—more than 3,00,000 according to the documentation—using criteria such as prefix, time, and group of users. The features of Drouting are as follows:

  • Rule selection:
    • Prefix based
    • Caller/group based
    • Time based
    • Priority based
    • Blacklisting
  • Processing:
    • Stripping and prefixing
    • Default rules
    • Inbound and outbound processing
    • Script route triggering
  • Failure handling:
    • Serial forking
    • Weight-based gateway selection
    • Random gateway selection

Most relevant parameters

Some parameters have a strong influence on the behavior of the DROUTING ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required