Profiling a dialog

There are many cases where you need to sort, count, and limit specific calls. It is very useful to count calls per subscriber, gateway, and route. In this section, we will learn how to set a profile for a specific call and count how many calls belong to a profile.

You have to define the profiles before using them. There are two types of profiles, profiles with value and profiles with no value:

  • Profiles with no value: The dialog receives a simple description such as inbound, outbound, PSTN, local, or VoIP
  • Profiles with value: The dialog is associated with a profile such as caller and the value is the name of the caller

You can verify the profiles for a specific call using the MI command:

opensipsctl fifo dlg_list_ctx

The output of ...

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.