Thank you for the information. I changed the dialplan to include the new variables:
'35' => 1. Answer() [pbx_config]
2. Macro(queuelog,${EPOCH},${UNIQUEID},NONE,Agent/${AGENTCODE},HOTDESK,SIP/${QM_AGENT_LOGEXT}) [pbx_config]
3. AddQueueMember(${QUEUENAME},SIP/${QM_AGENT_LOGEXT},${QM_AGENT_PRIONUM}) [pbx_config]
4. Hangup() [pbx_config]
But now I seem to have a problem because I can only get the agent to register on a single queue and not to all assigned. It will only log the agent into the queue where he is configured as MAIN. I then have to add the member to the WRAP queue manually after that. Is there some modification I need to make to the configuration to add WRAP and SPILL queues automatically?