I have an working version of an client for communicating with an asterisk PBX. But this is based on an winiphone / miniphone and handles only one line at the time.
I found the limitations, this is in the management of the diffferent sessions, at the highest level this is set or unset with an global var. I have taken this source and changed it so that I can manage more than one session. But, the problem now is i wanted to feed my thread with new commando's and so far i have done this by starting up the tread with an pointer adress to an structure. I manupulate this structure during execution of the thread. I know this is not the way, and i should work with something like critical sections or something else ..
(I allso discovered this in later versions what work on top of this lib)
This also gives unexpected problems with reading and writing memory what is, or is not free .. (errors etc.)
if you are interested i can email the code so you can see what i am talking about ..
- implementing from the thread in the right way ..
- offering a way to safely feed the thread with new commando's
- offering a way to react on deliverd events from the thread.
Everything should be implemented in Bcb 5,and an continueation of my project deliverd.
Since it's all based on open source stuff I expect to receive the sources so later on I can publish this as well ..
Win32, BCB 5