ARI v0.1.2 ARI.Config behaviour View Source

Behaviour to provide dynamic configuration for the Asterisk server.

Configuring Asterisk can be a complex endeavor. In general this library assumes usage of the res_pjsip SIP driver provided with newer versions of Asterisk. Rather than trying to replicate the configuration documentation for pjsip, I recommend reading the Asterisk documetation at https://wiki.asterisk.org/wiki/display/AST/Configuring+res_pjsip.

This article my provide some useful information as well https://wiki.asterisk.org/wiki/display/AST/Endpoints+and+Location%2C+A+Match+Made+in+Heaven

It's also worth looking at the configuration module for the example application at https://github.com/CityBaseInc/ex_ari_example/blob/master/lib/ex_ari_example/config.ex

Link to this section Summary

Link to this section Types

Link to this type

field()

View Source
field() :: %{attribute: String.t(), value: String.t()}

Link to this section Callbacks

Link to this callback

aor(arg1)

View Source
aor(String.t()) :: %{name: String.t(), fields: [field()]}
Link to this callback

endpoint(arg1, arg2, arg3)

View Source
endpoint(String.t(), String.t(), String.t()) :: %{
  name: String.t(),
  fields: [field()]
}
Link to this callback

identify(arg1)

View Source
identify(String.t()) :: %{name: String.t(), fields: [field()]}
Link to this callback

pjsip_config()

View Source
pjsip_config() :: :ok