Summary

In this chapter, you learned how to implement one of the most sensitive components of a VoIP provider: the accounting. The first step is to choose a backend. Databases are the primary choice, but if you want to have redundancy and encryption, RADIUS can be an option. Remember that it can be tricky to add all the extra attributes to RADIUS. In the end, the records will finish in a database. Make sure that you use at least one method to handle missing BYEs. For residential implementations, an in-dialog ping makes sense. For wholesale, the SIP session timers and a media timeout are more appropriate. You can use OpenSIPS-CP to view CDRs, but in this case, only MySQL and PostgreSQL are supported.

Get Building Telephony Systems with OpenSIPS - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.