Custom Queue Code

I’m trying to get my phones to auto answer on queue calls only. I can do this by sending a SipADDHeader(Call-Info: answer-after=0) and setting my phones to Auto Answer = no and Auto Answer on Call info = yes.

The trouble I’m having is to get this code to only execute during queue calls. I’m using FreePBX and Asterisk 1.6.X so I’m trying to add this code to extensions_custom.conf

If I use [from-internal-custom] it will execute on every inbound call to that extension assigned to the queue but it will also execute on any other call not coming from a queue. Is there an equivalent custom queue context that I can use? I tried [from-queue-custom] but that didn’t seem to work.

Thanks for the help