SARK V4.0.0 Apps
Sark allows you to add your own code blocks and logic to the Asterisk dialplan. We call these objects "custom apps", or just Apps. Asterisk has a rich scripting language which allows you great freedom to customise your PBX to suit your needs. SARK allows you to tap into this to create your own features and add-ons for your PBX.
App control flow
Architecturally, SARK has two routes or call-paths through its logic structure. If you imagine the PBX as a telephone call router with telephone calls arriving from the outside (from big bad world) and also calls arriving from the inside (from our internal extensions) then we can imagine having one call-path to process calls coming from the outside and a second call-path to process calls coming from our inside extensions. When you build an App, you tell SARK which of these two call-paths you want your App logic to be inserted into; either "internal" or "external". You can also choose "both" if you want your app to be included in all paths or "neither" if your app will exist independently. Independent apps can be directly called from other objects such as trunks or IVRs.