Skip to content
/ arke Public
forked from quasarke/arke

Arke is a .NET IVR for the Asterisk ARI system build on .NET Core and AsterNET.ARI

License

Notifications You must be signed in to change notification settings

seiggy/arke

 
 

Repository files navigation

Arke for Asterisk ARI

Arke is an IVR written using .NET 5.0 for Asterisk using the ARI interface through AsterNET.ARI. It is built to be extensible and with easily modifiable call flows. It's cross platform, supporting Linux, Raspberry Pi, and Windows.

Find the developers

Join the chat at https://gitter.im/arkeivr/Lobby

Build Status

.NET 5.0

Setup

  • Clone the repo and run dotnet restore then dotnet build
  • Setup the appsettings.json:
    • Set your asterisk host IP
    • Set the username and password for your Asterisk ARI Setup
    • Set the AsteriskAppName to the stasis app name you are using in your dialplan (sample dialplan below)
    • Set your application to the name of the json file you wish to use for your call flow (you can copy arte.json for a starting point)
    • Set the Plugin Directory to the location you are going to copy all your plugins.
  • Setup extensions.conf on your asterisk server (sample):
    [from-internal]
    exten => 6000,1,NoOp()
    same => n,Stasis(arke)
    same => n,Hangup()
    
  • Finally run dotnet run --project Arke.ServiceHost

Dependencies

  • AsterNET.ARI 1.3+
  • .NET 5.0
  • SimpleInjector 5
  • Serilog 4

Extending and creating plugins for Arke

  • Create a .NET Core Library with the namespace Arke.*
    • This allows Arke to auto-discover your Plugin without having to add the dependency
  • Add references to the Arke.DSL and Arke.SipEngine projects or dlls.
  • Settings should inherit the Arke.DSL.Step.Settings.ISettings interface
  • Steps should inherit the Arke.SipEngine.Processors.IStepProcessor interface
  • Compile and copy your new binary to the plugin directory (or use Visual Studio post-build scripts to do so for you)

Features

  • Playback sound files
  • Get input with timeouts and fail / success steps
  • DSL for building a call flow using JSON
  • Extensible DSL for building and extending new steps into the system
  • Plugin system for dynamically loading new steps at runtime
  • Step Settings API for extending steps with extra settings in the DSL
  • Async/Await Task based call processing for efficient mutli-threading and performance
  • Stateless State Machine for call controls and validating step transitions
  • Extensible Call State for holding data important to a call - can be used to build a custom CDR system
  • Tested on Windows, Linux and Docker on both platforms.

Known Issues

  • Need to document how to setup outbound calls.
  • No Steps for Voicemail and a few other basic IVR functions yet

Planned Future Features

  • More base steps to be included:
    • Voicemail
    • Call Transfer
  • Play audio from web service
  • Voice Conferencing creation and management
  • Better outbound dialing support

About

Arke is a .NET IVR for the Asterisk ARI system build on .NET Core and AsterNET.ARI

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 98.0%
  • Dockerfile 1.5%
  • Shell 0.5%