Chuck Bunn
2005-Nov-18 12:51 UTC
[Asterisk-Users] Getting invalid extension during agent login.
Hi, I try to log in as an agent using the 'AgentCallBackLogin' in extensions and I am prompted for my agent Id and password, the system takes those and then asks for the extension I am at and I enter a valid extension and it tells me its an invalid extension. Here is my files: ************ agents.conf [agents] ackcall=yes wrapuptime=0 musiconhold => default updatecdr=yes ;Operator - Home group=1 agent => 300,300,name1 agent => 301,301,name2 agent => 310,310,name3 agent => 311,311,name4 agent => 312,312,name5 agent => 313,313,name6 agent => 314,314,name7 ;Operator - Spa agent => 500,500,name8 agent => 510,510,name9 agent => 511,511,name10 agent => 512,512,name11 ;Operator - Rest group=2 agent => 600,600,name12 ********** queue.conf [general] ;Operator Home [Q100] music=default strategy=ringall maxlen=0 context=extensions-home member => Agent/@1 ;Operator Restuarant [Q110] music=default strategy=ringall maxlen=0 context=extensions-rest member => Agent/@2 **************** extension.conf [general] #include macros.incl [incoming-home] exten => s,1,Goto(extensions-home,100,1) exten => t,1,Goto(extensions-home,100,1) exten => i,1,Goto(extensions-home,100,1) [extensions-home] include => parkedcalls ;Operator queue, Operator Console, and Receptionist Phone exten => 100,1,Answer() exten => 100,2,Queue(Q100|trn|||120) ;Office Personnel exten => _30[0-1],1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) exten => _31[0-4],1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) exten => _399,1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) exten => _40[0-1],1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) exten => _499,1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) ;Spa Personnel exten => _500,1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) exten => _51[0-2],1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) exten => 590,1,Dial(ZAP/3,20) ;Voicemail Main exten => 800,1,Answer exten => 800,2,VoicemailMain ;Agent Login exten => 801,1,AgentCallbackLogin ;Voice Conferencing exten => _85X,1,Answer exten => _85X,2,MeetMe(${EXTEN}) exten => i,1,Voicemail(s300) exten => t,1,Voicemail(s300) exten => fax,1,Dial(ZAP/4,20) exten => fax,2,Congestion exten => fax,102,Congestion [internal-longdistance] include => local include => longdistance include => extensions-home [internal-local] include => local include => extensions-home [local] ignorepat => 9 exten => _9NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1}) exten => _9NXXXXXX,2,Congestion(5) exten => _9NXXXXXX,102,congestion(5) exten => 911,1,Dial(${OUTBOUNDTRUNK}/911) exten => 9911,1,Dial(${OUTBOUNDTRUNK}/911 [longdistance] ignorpat => 9 exten => _91NXXNXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1}) exten => _91NXXNXXXXXX,2,Congestion(5) exten => _91NXXNXXXXXX,102,congestion(5) [globals] OUTBOUNDTRUNK=Zap/G1 ************************* Thanks
Julian Lyndon-Smith
2005-Nov-18 13:38 UTC
[Asterisk-Users] Getting invalid extension during agent login.
This has bitten me before - I think you need to specify the context in which the queue will put the call, and that context *has* to have the extension pattern of the extension you are trying to login with. I'm 99.9% sure this is your problem. Check very carefully your dialplan. I always specify the context. Our agents have a 4 digit agent number (6XXX), and login by dialling *AgentNum exten => _*6XXX,1,AgentCallBackLogin(${EXTEN:1},,${CALLERIDNUM}@AgentQ) exten => _*6XXX,2,Hangup() [AgentQ] exten => _6XXX,1,Dial(SIP/${EXTEN},12) exten => _6XXX,2,Hangup() exten => _6XXX,102,Hangup() If _6XXX is not in the AgentQ context, I get the Invalid extension error. HTH Julian Chuck Bunn wrote:> Hi, > > I try to log in as an agent using the 'AgentCallBackLogin' in extensions > and I am prompted for my agent Id and password, the system takes those > and then asks for the extension I am at and I enter a valid extension > and it tells me its an invalid extension. Here is my files: > > ************ > agents.conf > > [agents] > ackcall=yes > wrapuptime=0 > musiconhold => default > updatecdr=yes > > ;Operator - Home > group=1 > agent => 300,300,name1 > agent => 301,301,name2 > > agent => 310,310,name3 > agent => 311,311,name4 > agent => 312,312,name5 > agent => 313,313,name6 > agent => 314,314,name7 > > ;Operator - Spa > agent => 500,500,name8 > > agent => 510,510,name9 > agent => 511,511,name10 > agent => 512,512,name11 > > ;Operator - Rest > group=2 > agent => 600,600,name12 > > > ********** > queue.conf > > [general] > > ;Operator Home > [Q100] > music=default > strategy=ringall > maxlen=0 > context=extensions-home > member => Agent/@1 > > ;Operator Restuarant > [Q110] > music=default > strategy=ringall > maxlen=0 > context=extensions-rest > member => Agent/@2 > > > **************** > extension.conf > > [general] > #include macros.incl > > [incoming-home] > exten => s,1,Goto(extensions-home,100,1) > exten => t,1,Goto(extensions-home,100,1) > exten => i,1,Goto(extensions-home,100,1) > > [extensions-home] > include => parkedcalls > > ;Operator queue, Operator Console, and Receptionist Phone > exten => 100,1,Answer() > exten => 100,2,Queue(Q100|trn|||120) > > ;Office Personnel > exten => _30[0-1],1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) > exten => _31[0-4],1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) > exten => _399,1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) > exten => _40[0-1],1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) > exten => _499,1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) > > ;Spa Personnel > exten => _500,1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) > exten => _51[0-2],1,Macro(stdexten,${EXTEN},SIP/${EXTEN}) > exten => 590,1,Dial(ZAP/3,20) > > ;Voicemail Main > exten => 800,1,Answer > exten => 800,2,VoicemailMain > > ;Agent Login > exten => 801,1,AgentCallbackLogin > > ;Voice Conferencing > exten => _85X,1,Answer > exten => _85X,2,MeetMe(${EXTEN}) > > exten => i,1,Voicemail(s300) > exten => t,1,Voicemail(s300) > > exten => fax,1,Dial(ZAP/4,20) > exten => fax,2,Congestion > exten => fax,102,Congestion > > [internal-longdistance] > include => local > include => longdistance > include => extensions-home > > [internal-local] > include => local > include => extensions-home > > > [local] > ignorepat => 9 > exten => _9NXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1}) > exten => _9NXXXXXX,2,Congestion(5) > exten => _9NXXXXXX,102,congestion(5) > exten => 911,1,Dial(${OUTBOUNDTRUNK}/911) > exten => 9911,1,Dial(${OUTBOUNDTRUNK}/911 > > [longdistance] > ignorpat => 9 > exten => _91NXXNXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1}) > exten => _91NXXNXXXXXX,2,Congestion(5) > exten => _91NXXNXXXXXX,102,congestion(5) > > [globals] > OUTBOUNDTRUNK=Zap/G1 > > ************************* > > Thanks > > > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >