To log an ACD agent onto the line being monitored, set the first byte in the buffer to 8. The bytes must be a character string, describing the extension that is logging on. Use this function to log agent 218 onto the line lineDevSpecific.
unsigned char buf[6];
int len = 6;
buf[0] = 8; // Constant that means Login
buf[1] = '2';
buf[2] = '1';
buf[3] = '8';
buf[4] = 0; // Don't forget the null terminator