added REST api for asterisk