| ??? 06/03/03 00:32 Read: times |
#47306 - RE: removing from check list Responding to: ???'s previous message |
Hi Waqar,
This is yet another situation where a simple state machine would allow you to quickly keep track of where you are in the processing of each phone connection. The idea might to divide the process up into its smallest tasks, and execute just one of these tasks each time the state machine is called from from your main loop...which will also be calling your pulse dialing state machine (or however you have implemented it) and whatever else you have to do. If you don't spend too much time on any one task, you can get everything done...since most of the time otherwise you'd be waiting for an input to pulse or a timer to timeout. Each state by its definition controls what it will do next, given its inputs. Did you implement your pulse counter with a state machine? Your explanation above didn't come across very clearly... Dennis |



