I think I may have found a way to do this...
I was considering using the DNIS tracking, and then the subqueues to handle this. I am trying to use the following as a custom destination which will tag the call and send it along. This is the destination for the inbound route, and it simply puts the call back where it needs to go. Would this not work? I can see the info getting set properly, but I've not been able to see the sub-queues setup.
[custom-queue-setparams]
exten => s,1,Set(SUBQUEUE=ZZZ00)
exten => s,n,ExecIf($[ "${FROM_DID}" = "" ] ,Set,SUBQUEUE="EMPTY")
exten => s,n,ExecIf($[ "${FROM_DID}" = "5555551212" ] ,Set,SUBQUEUE="ZZZ00")
exten => s,n,QueueLog(9001.${SUBQUEUE},${UNIQUEID},NONE,INFO,DID|${FROM_DID})
exten => s,n,Goto(timeconditions,2,1)
I then have queues defined in QM as 9001.EMPTY|9001.ZZZ00. I understand that we can't see live information since it's technically in the 9001 queue, but once the call is complete, the information should show up in the individual Queue reports right? This is the part that does not seem to be working. I only saw the DNIS information show up once for a test number, and never again. Perhaps these stats are only pulled on an hourly basis through the cron jobs?
Carlos.