Hi Finally decided on an ugly workaround for my logout with password problem - storing the agent passwords as variables.
If anyone has any better ideas or suggestions please let me know... -- in this setup agent number is 2000, agents are 2XXX and SIP phones are 1XXX main bits of extensions.conf are: [globals] ;add variable of agent passwords agentpass_2000=1234 ;add more agents in the form agentpass_agentid=password ;------------------------------------------ [ur normal context] ;login on extension 8600 ;check to see if agent already - if it is then goto 8604 exten => 8600,1,gotoif($["${AGENTBYCALLERID_${CALLERIDNUM}}" != ""]?2:3) exten => 8600,2,Dial(Local/8604/n,,D(${AGENTBYCALLERID_${CALLERIDNUM}}#${agentpass_${AGENTBYCALLERID_${CALLERIDNUM}}}##)) ;if not already an agent then: exten => 8600,3,AgentCallbackLogin(|[EMAIL PROTECTED]) exten => 8600,4,Hangup ;on above login if already an agent then this is where we logout first and log back in exten => 8604,1,AgentCallbackLogin(|s) exten => 8604,2,AgentCallbackLogin(|[EMAIL PROTECTED]) exten => 8604,3,Hangup ;------------------------------------------ ;logout on extension 8601 exten => 8601,1,Dial(Local/8602/n,,D(${AGENTBYCALLERID_${CALLERIDNUM}}#${agentpass_${AGENTBYCALLERID_${CALLERIDNUM}}}##)) exten => 8602,1,AgentCallbackLogin() ;------------------------------------------ ;dial sip phones change callerid if it is from a logged in agent exten => _1XXX,1,gotoif($["${AGENTBYCALLERID_${CALLERIDNUM}}" != ""]?2:3) exten => _1XXX,2,SetCallerID(${AGENTBYCALLERID_${CALLERIDNUM}}) exten => _1XXX,3,Dial(SIP/${EXTEN},500,t) exten => _1XXX,4,Hangup ;dial agents change callerid if it is from a logged in agent exten => _2XXX,1,gotoif($["${AGENTBYCALLERID_${CALLERIDNUM}}" != ""]?2:3) exten => _2XXX,2,SetCallerID(${AGENTBYCALLERID_${CALLERIDNUM}}) exten => _2XXX,3,Dial(Agent/${EXTEN},500,t) exten => _2XXX,4,Wait(1) exten => _2XXX,5,Playback(im-sorry) exten => _2XXX,6,Playback(agent-loggedoff) exten => _2XXX,7,Hangup __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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