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 | - type: cdr
- payload: <notif>
- extension: <ext> the agent extension number
- recording_url: location where you can fetch recording
- call_ref: <internal_call_ref> Internal dialler reference
- dialed_at: the time the call was placed
- contact_ref: <custom_reference> your custom reference
- end_reason: <dispositions>
- end_code: <SIP_termination_code>
- call_time: time of call
- call_dir: whether this was inbound or outbound
- ref: <campaign_ref> campaign reference
|
---|
Values:
<ext> | The agent extension number |
---|
<internal_call_ref> | Internal dialler reference for this call this is used to disposition the call |
---|
<custom_reference> | The custom reference specified for this callee (use this for your lookups) |
---|
<dispositions> | Dispositions |
---|
<SIP_termination_code> | The SIP termination code |
---|
<campaign_ref> | Your Campaign reference number |
---|
Example:
Code Block |
---|
theme | Midnight |
---|
language | bash |
---|
|
# get cdr's for all campaigns
brpop enigma:notifications:campaigns |