Call:
CDRs are sent after every call, whether or not it was answered/handled. These are used for call accounting both on the providers side as well as in the 3rd party application. As CDRs are critical we make use of a persistent Redis List to send them. A single worker must exist which handles/processes these notifications.
Type | List |
---|---|
Key | enigma:notifications:campaigns |
Payload |
|
Values:
<ext> | The agent extension number |
---|---|
<internal_call_ref> | Internal dialler call reference, this is used to disposition the call |
<custom_call_ref> | Your custom call reference specified for this callee (use this for your lookups) |
<disposition> | Dispositions: how the call ended |
<SIP_termination_code> | The SIP termination code |
<campaign_ref> | Your Campaign reference |
Example:
# get cdr's for all campaigns brpop enigma:notifications:campaigns