SwitchX.Event.Headers (SwitchX v1.0.1)

View Source

This Module defines a struct for an ESL event Headers.

The freeswitch ESL event implementation commonly contains headers with a mapped key-value text as:

Event-Name: CUSTOM variable_caller_id_name: caller variable_caller_id_number: 9494 ...

Summary

Functions

Callback implementation for Access.fetch/2.

Create a Event header from a enumerable, if it has duplicated mappable keys the latest one prevails.

Callback implementation for Access.pop/2.

Functions

fetch(body, key)

Callback implementation for Access.fetch/2.

get(body, key, default)

get_and_update(body, key, fun)

Callback implementation for Access.get_and_update/3.

new(headers)

Create a Event header from a enumerable, if it has duplicated mappable keys the latest one prevails.

pop(body, key)

Callback implementation for Access.pop/2.