<commit_before># Event State Compositor Plugin 
### `nksip_event_compositor`


* [Description](#description)
* [Dependant Plugins](#dependant-plugins)
* [Configuration Values](#configuration-values)
* [API Functions](#api-functions)
* [Callback Functions](#callback-functions)
* [Examples](#examples)


## Description

This plugin provides full support to implement an Event State Compositor, according to RFC3903. It uses by default the built-in RAM-only store, but can be configured to use any other database implementing callback [sip_publish_store/2](#sip_event_compositor_store2).

## Dependant Plugins

None


## Configuration Values

### SipApp configuration values

Option|Default|Description
---|---|---
nksip_event_compositor_default_expires|60 (secs)|Default expiration for stored events

## API functions

### find/3

```erlang
-spec find(App::nksip:app_id()|term(), AOR::nksip:aor(), Tag::binary()) ->
    {ok, #reg_publish{}} | not_found | {error, term()}.
```

Finds a stored published information.


### request/1<commit_msg>Update event_compositor.md<commit_after># Event State Compositor Plugin 

* [Name](#name)
* [Description](#description)
* [Dependant Plugins](#dependant-plugins)
* [Configuration Values](#configuration-values)
* [API Functions](#api-functions)
* [Callback Functions](#callback-functions)
* [Examples](#examples)

## Name
### `nksip_event_compositor`

## Description

This plugin provides full support to implement an Event State Compositor, according to RFC3903. It uses by default the built-in RAM-only store, but can be configured to use any other database implementing callback [sip_publish_store/2](#sip_event_compositor_store2).

## Dependant Plugins

None


## Configuration Values

### SipApp configuration values

Option|Default|Description
---|---|---
nksip_event_compositor_default_expires|60 (secs)|Default expiration for stored events

## API functions

### find/3

```erlang
-spec find(App::nksip:app_id()|term(), AOR::nksip:aor(), Tag::binary()) ->
    {ok, #reg_publish{}} | not_found | {error, term()}.
```

Finds a stored published information.


### request/1
{'fraction_non_alphanumeric': 0.13833805476864966, 'fraction_numerical': 0.009442870632672332, 'mean_word_length': 5.970394736842105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1340155', 'n_tokens_mistral': 682, 'n_tokens_neox': 627, 'n_words': 172}