In this chapter, you learned many new concepts regarding dialogs. To use them is relatively simple: you have to enable the module and create the dialog using the create_dialog()
function. Make sure that you have understood the concept of dialog matching, which is key to making it work and understanding the possible issues. Dialog variables and flags are useful when you need to persist variables from an initial request to a sequential request. To count calls by the domain, caller, or any other parameter, use the profiling feature. You also learned how to send commands and generate statistics via the MI interface. Overall, this chapter is very important, so do not forget the advanced features such as the SIP session timers, dialog validation, dialog fixing, and topology hiding.
Now, we have covered almost everything including route calls to other subscribers and PSTN. In the next chapter, we will cover accounting, where you will learn how to generate the call detail record (CDR), which...