Just incase anybody else cares in teh future, this was my solution for number 1. ${EXTEN} is set to the agent id
exten => _2XX,2,Set(AE=${DB(/Agents/${EXTEN})}) in my case my phone was labeled 300 so AE was set to [EMAIL PROTECTED];300 -- ~Shaun "Shaun" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How can I do the following 2 things in my dialplan? > > 1. find out what extension a agent is assigned to by agent id. > > 2. find out what agent is assigned to a extension by extension id. > > Anybody know how to do this? I read some where that I might have to pull > it from the db. Example code is a plus :) > > -- > > ~Shaun > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > Asterisk-Users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- Asterisk-Users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users