From ab41981f82ee47274db0a8c8901d3d032e13bc50 Mon Sep 17 00:00:00 2001 From: DanB Date: Sun, 4 Sep 2016 17:31:27 +0200 Subject: [PATCH] Enabling ARI in asterisk --- .../asterisk/etc/asterisk/ari.conf | 34 +++---------------- .../asterisk/etc/asterisk/http.conf | 4 +++ .../asterisk/etc/asterisk/modules.conf | 25 ++++++++++++++ 3 files changed, 34 insertions(+), 29 deletions(-) create mode 100644 data/tutorials/asterisk_events/asterisk/etc/asterisk/http.conf diff --git a/data/tutorials/asterisk_events/asterisk/etc/asterisk/ari.conf b/data/tutorials/asterisk_events/asterisk/etc/asterisk/ari.conf index 59f9a44e5..77a5128ca 100755 --- a/data/tutorials/asterisk_events/asterisk/etc/asterisk/ari.conf +++ b/data/tutorials/asterisk_events/asterisk/etc/asterisk/ari.conf @@ -1,31 +1,7 @@ [general] -enabled = yes ; When set to no, ARI support is disabled. -;pretty = no ; When set to yes, responses from ARI are -; ; formatted to be human readable. -;allowed_origins = ; Comma separated list of allowed origins, for -; ; Cross-Origin Resource Sharing. May be set to * to -; ; allow all origins. -;auth_realm = ; Realm to use for authentication. Defaults to Asterisk -; ; REST Interface. -; -; Default write timeout to set on websockets. This value may need to be adjusted -; for connections where Asterisk must write a substantial amount of data and the -; receiving clients are slow to process the received information. Value is in -; milliseconds; default is 100 ms. -;websocket_write_timeout = 100 - -;[username] -;type = user ; Specifies user configuration -;read_only = no ; When set to yes, user is only authorized for -; ; read-only requests. -; -;password = ; Crypted or plaintext password (see password_format). -; -; password_format may be set to plain (the default) or crypt. When set to crypt, -; crypt(3) is used to validate the password. A crypted password can be generated -; using mkpasswd -m sha-512. -; -; When set to plain, the password is in plaintext. -; -;password_format = plain +enabled = yes +[cgrates] +type = user +read_only = no +password = CGRateS.org \ No newline at end of file diff --git a/data/tutorials/asterisk_events/asterisk/etc/asterisk/http.conf b/data/tutorials/asterisk_events/asterisk/etc/asterisk/http.conf new file mode 100644 index 000000000..9d1f51885 --- /dev/null +++ b/data/tutorials/asterisk_events/asterisk/etc/asterisk/http.conf @@ -0,0 +1,4 @@ +[general] +enabled = yes +bindaddr = 0.0.0.0 +bindport = 8088 \ No newline at end of file diff --git a/data/tutorials/asterisk_events/asterisk/etc/asterisk/modules.conf b/data/tutorials/asterisk_events/asterisk/etc/asterisk/modules.conf index 7b60125b7..ad6deb1dd 100755 --- a/data/tutorials/asterisk_events/asterisk/etc/asterisk/modules.conf +++ b/data/tutorials/asterisk_events/asterisk/etc/asterisk/modules.conf @@ -110,3 +110,28 @@ load = res_sorcery_config.so load = res_sorcery_memory.so load = res_sorcery_realtime.so load = res_timing_timerfd.so + +; Statis +load => res_stasis.so +load => res_stasis_answer.so +load => res_stasis_device_state.so +load => res_stasis_playback.so +load => res_stasis_recording.so +load => res_stasis_snoop.so + +;ARI +load => res_ari.so +load => res_ari_applications.so +load => res_ari_asterisk.so +load => res_ari_bridges.so +load => res_ari_channels.so +load => res_ari_device_states.so +load => res_ari_endpoints.so +load => res_http_websocket.so +load => res_ari_events.so +load => res_ari_mailboxes.so +load => res_ari_model.so +load => res_ari_playbacks.so +load => res_ari_recordings.so +load => res_ari_sounds.so +