Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

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: <agent ext> <ext> the agent extension number
    • recording_url: <location location where you can fetch recording>recording
    • call_ref: <client <internal_call_ref>ref> Internal dialler reference
    • dialed_at: <the the time the call was placed>placed
    • contact_ref: <the matter this cdr relates to> <custom_reference> your custom reference
    • end_reason: <Dispositions> <dispositions>
    • end_code: <The SIP <SIP_termination_code>
    • call_time: <call_time>time of call
    • call_dir: <whether whether this was inbound or outbound>outbound
    • ref: <campaign_ref>

Values:

...

Dispositions

...

<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
themeMidnight
languagebash
# get cdr's for all campaigns
brpop enigma:notifications:campaigns