extensionState method for asterisk connection