Skip to content

magnus-trent/xsi-call-event-recorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XSI Call Event Recorder

These Deno scripts allow you to subscribe to a Cisco Broadworks Xtended Services Interface on a specific user, for Advanced Call Events.

You can do the following:

  1. Record Events
  2. Transform Events
  3. Analyze Events

1. Record Events

Record raw event data to a plain text file, each event split by a separator for clarity. They are not cleaned up, instead leaving that for transformation, but you can read them if you need to at this stage.

Permissions:

  • Writes to tmp/events.txt
  • Env variables: XSI_HOSTNAME, XSI_USERNAME, XSI_PASSWORD, HTTP_CONTACT
  • Network request to the XSI server at https://${XSI_HOSTNAME}/com.broadsoft.xsi-events/v2.0/user/${userId}
deno run record wile.e.coyote@acme.com

2. Transform Events

Transform the raw xml payloads into clean JSON.

Permissions:

  • Reads from tmp/events.txt
  • Writes to tmp/events.json
deno run transform

3. Analyze Events

Transform the raw xml payloads into clean JSON.

Permissions:

  • Reads from tmp/events.json
  • Writes to tmp/call-trace.csv
deno run analyze

4. Convert to YAML (optional)

If you feel like YAML is more usable.

Permissions:

  • Reads from tmp/events.json
  • Writes to tmp/events.yml
deno run convert

About

Subscribe to XSI Call Events for a user and record them, transform helpers included.

Topics

Resources

License

Stars

Watchers

Forks