Did you check this Asterisk info page?
http://www.voip-info.org/wiki/view/Asterisk+manager+API[
^] It has a wealth of info.
But, there is somewhat troubling in your code.
Dim manager1 As ManagerConnection
Dim manager2 As StatusEvent
Dim manager3 As AgentCalledEvent
Dim manager4 As GetDataCommand
Dim manager5 As AGIRequest
Dim manager6 As NewCallerIdEvent
Dim manager7 As DialEvent
Dim manager8 As Originate
Dim manager9 As ManagerReader
Dim manager10 As ResponseEvent
Dim manager11 As SocketConnection
Dim manager12 As CdrEvent
Dim compdata As ASCIIEncoding
Could you not think better names to your variables? Why does every single one of them need to be
manager
. Of course the compiler does not care even if you name them
fooBar
but some one will. I am sure this will bite you on the rear as you continue developing your solution.