Skip to main content

Remote Agent Login

Posted by The Godfather on Mon, 10/22/2012

I was using a script prior to updating asterisk to 1.8.7 cert 5 and now my script doesn't appear to be working. If I login remotely into a queue, nothing happens during call routing. Does anyone know if this script is obsolete?

exten => s,1,Set(NUM=${IF($["${TL_MULTI}" != ""]?-2:-1)})
exten => s,2,Authenticate(${ARG2})
exten => s,n,AddQueueMember(${ARG1},Local/${CALLERID(num)}@from-inside-redir${TL_DASH}${tenant})
exten => s,n,Playback(agent-loginok)
exten => s,n,Hangup

I have a similar one to log out as well.


Submitted by eeman on Mon, 10/22/2012 Permalink

should be working, but I would _strongly_ reccomend not using chan_local as your members. ESPECIALLY with the from-inside-redir context. If they agent deosnt answer your call, it is going to go to their VM instead of remaining in the queue. Also chan_local is notoriously bad about tracking device state so you get plagued with calling agents that are already on calls from the queue instead of trying the next agent not already on a call. Was this for the purpose of a non-sip device?

when you run this script use the CLI to show you the queue members for that queue.. you should see your entry.. if not your CLI should have spit out an error.

Submitted by eeman on Mon, 10/22/2012 Permalink

you will need to check CLI and see if your channel gets added to the queue membership. You need to see if the breakdown is with the addqueuemember or actually trying to call the channel