Created thread to handle asterisk events.