Hi,
We are facing the same problem.. we are already passig the correct priority variable, but we think that there is a problem with the dialplan , that does not use that variable ...
See below:
; extension 35: agent addqueuemember with hotdesking (for asterisk v1.4+)
exten => 35,1,Answer
exten => 35,2,NoOp( "QM: AddQueueMember (asterisk v1.4+) Agent/${AGENTCODE} at extension SIP/${QM_AGENT_LOGEXT} on queue ${QUEUENAME} made by '${QM_LOGIN}' with prioritylabel '${QM_AGENT_PRIOLBL}' and prioritynum '${QM_AGENT_PRIONUM}'" )
exten => 35,3,Macro(queuelog,${EPOCH},${UNIQUEID},NONE,Agent/${AGENTCODE},HOTDESK,SIP/${QM_AGENT_LOGEXT})
exten => 35,4,AddQueueMember(${QUEUENAME},SIP/${QM_AGENT_LOGEXT},${QM_AGENT_PRIONUM})
exten => 35,5,Hangup
The AddQueueMember command above was missing the ,${QM_AGENT_PRIONUM} parameter.... we added it and penalties started to work !!!