Middleware application interface for Asterisk