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 the command is shown in the following example:
dialog:: hash=2405:1072531375 state:: 4 … context:: value:: rtpproxyset = 1 profile:: caller = [email protected] profile:: inbound...