OK, so I was forced to actually test this and here are my results:
Extension is 2476, queue is 2499
First I added USEDEVSTAT=true in amportal.conf
Note the syntax, USEDEVSTATE=true!
Then I re-saved my queue so that the setting would be read in.
I then checked Asterisk settings to see what have changed:
show globals, QUEDEVSTATE=TRUE was set, that was good
I checked that I have the function devstate loaded
pbx*CLI> module show like func_devstate.so
Module Description Use Count
func_devstate.so Gets or sets a device state in the dialp 0
1 modules loaded
That was ok.
Note, you need to have Asterisk 1.6 or a backported func_devstate in Asterisk 1.4.
show hints
*452476*2499@ext-queues : Custom:QUEUE2476*249 State:Unavailable Watchers 0
That was good
queue show:
2499 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime), W:0, C:0, A:0, SL:0.0% within 0s
Members:
Local/2309@from-queue/n (Not in use) has taken no calls yet
No Callers
Only one static agent, that was ok
I then dialed 4524762499 I got back voice “Agent logged in” or something like that.
I then checked my queue
2499 has 0 calls (max unlimited) in 'ringall' strategy (0s holdtime), W:0, C:0, A:0, SL:0.0% within 0s
Members:
Local/2309@from-queue/n (Not in use) has taken no calls yet
Local/2476@from-queue/n (dynamic) (Not in use) has taken no calls yet
No Callers
I am a little confused about that you get @from-internal when you enroll agents into the queue. That is not right. What version of FreePBX do you use and what version of Queue module?