                     break;
 
                     default:
+                    i--;        // ATD
                     removeSpaces(&Modem_CommandBuffer[i]);
                     Modem_Dialout(&Modem_CommandBuffer[i]);
                     suppressOkError = 1;

                // Dialing should come last..
                // TODO:  Need to allow for spaces after D, DT, DP.  Currently fails.
                case 'D':
                switch(Modem_CommandBuffer[i])
                {
                    case 'T':
                    case 'P':
                    removeSpaces(&Modem_CommandBuffer[i+1]);
                    Modem_Dialout(&Modem_CommandBuffer[i+1]);
                    suppressOkError = 1;
                    i = COMMAND_BUFFER_SIZE-3;    // Make sure we don't try to process any more...
                    break;

                    case '#':
                    // Phonebook dial
                    //char numString[2];
                    numString[0] = Modem_CommandBuffer[i+1];
                    numString[1] = '\0';
                    //char address[ADDR_HOST_SIZE];
        
                    //int phoneBookNumber = atoi(numString);
                    phoneBookNumber = atoi(numString);
                    if (phoneBookNumber >= 1 && phoneBookNumber <= ADDR_HOST_ENTRIES)
                    {


// Defining HAYES enables Hayes commands and disables the 1) and 2) menu options for telnet and incoming connections.
// This is required to ensure the compiled code is <= 30,720 bytes 
#define HAYES
#ifdef MICROVIEW
#include <MicroView.h>
#endif
