VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
shahidh at gmail.com Guest
|
Posted: Fri Aug 07, 2015 10:06 am Post subject: [asterisk-users] AgentRequest() and which agent id? |
|
|
Hi,
If agents is already logged in via AgentLogin() and users dialled extension 300 which will be placed in Queue(support-queue).
How to find out which agent is available I can put their Agent id in AgentRequest() ?
If this is not a good approach then how it should be done?
Agent should automatically get next call when he/she is available.
extensions.conf
[LocalSets]
exten => 300,1,Answer()
same => n,Queue(support-queue)
same => n,hangup
[agents] ;callback
exten => 800,1,AgentRequest(????) ; How to get Agent id that is available to take call?
same => n,NoOp(AGENT_STATUS is ${AGENT_STATUS})
same => n,Playback(silence/1)
same => n,Hangup()
Example in the queue.conf
member => Local/800@agents,0,Name 1,Agent:1001
and more..
Thanks |
|
Back to top |
|
|
rmudgett at digium.com Guest
|
Posted: Fri Aug 07, 2015 10:51 am Post subject: [asterisk-users] AgentRequest() and which agent id? |
|
|
On Fri, Aug 7, 2015 at 10:06 AM, Shahid H <shahidh@gmail.com (shahidh@gmail.com)> wrote:
Quote: | Hi,
If agents is already logged in via AgentLogin() and users dialled extension 300 which will be placed in Queue(support-queue).
How to find out which agent is available I can put their Agent id in AgentRequest() ?
If this is not a good approach then how it should be done?
Agent should automatically get next call when he/she is available.
extensions.conf
[LocalSets]
exten => 300,1,Answer()
same => n,Queue(support-queue)
same => n,hangup
[agents] ;callback
exten => 800,1,AgentRequest(????) ; How to get Agent id that is available to take call?
|
Replace above line with the following line if your agent-ids are 4 digit numeric:
exten => _XXXX,1,AgentRequest(${EXTEN})
Quote: | same => n,NoOp(AGENT_STATUS is ${AGENT_STATUS})
same => n,Playback(silence/1)
same => n,Hangup()
Example in the queue.conf
member => Local/800@agents,0,Name 1,Agent:1001
|
Replace the above line for agent 1001 with the following:
member => Local/1001@agents,0,Name,1,Agent:1001
For other agents follow the similar pattern:
member => Local/<agent-id>@agents,0,Name,1,Agent:<agent-id>
Richard |
|
Back to top |
|
|
shahidh at gmail.com Guest
|
Posted: Fri Aug 07, 2015 11:20 am Post subject: [asterisk-users] AgentRequest() and which agent id? |
|
|
Thank you. I will test it today.
Is it possible to build a list of agent-id in MySQL Database rather than agent.conf?
I am not sure what is the best approach, maybe you can give me some direction. On the backend (web based) Admin can create a new Agent for agent web panel login.
Admin will enter their new username and password for web login. Admin also need to select a agent-id for a new agent.
I have two options.
- Build hundreds static agent-id in agents.conf
- Dynamic agent-id in mysql table (Not associated with agent.conf). Is this possible?
Thanks
On Fri, Aug 7, 2015 at 4:50 PM, Richard Mudgett <rmudgett@digium.com (rmudgett@digium.com)> wrote:
Quote: |
On Fri, Aug 7, 2015 at 10:06 AM, Shahid H <shahidh@gmail.com (shahidh@gmail.com)> wrote:
Quote: | Hi,
If agents is already logged in via AgentLogin() and users dialled extension 300 which will be placed in Queue(support-queue).
How to find out which agent is available I can put their Agent id in AgentRequest() ?
If this is not a good approach then how it should be done?
Agent should automatically get next call when he/she is available.
extensions.conf
[LocalSets]
exten => 300,1,Answer()
same => n,Queue(support-queue)
same => n,hangup
[agents] ;callback
exten => 800,1,AgentRequest(????) ; How to get Agent id that is available to take call?
|
Replace above line with the following line if your agent-ids are 4 digit numeric:
exten => _XXXX,1,AgentRequest(${EXTEN})
Quote: | same => n,NoOp(AGENT_STATUS is ${AGENT_STATUS})
same => n,Playback(silence/1)
same => n,Hangup()
Example in the queue.conf
member => Local/800@agents,0,Name 1,Agent:1001
|
Replace the above line for agent 1001 with the following:
member => Local/1001@agents,0,Name,1,Agent:1001
For other agents follow the similar pattern:
member => Local/<agent-id>@agents,0,Name,1,Agent:<agent-id>
Richard
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
rmudgett at digium.com Guest
|
Posted: Fri Aug 07, 2015 11:32 am Post subject: [asterisk-users] AgentRequest() and which agent id? |
|
|
On Fri, Aug 7, 2015 at 11:20 AM, Shahid H <shahidh@gmail.com (shahidh@gmail.com)> wrote:
Quote: | Thank you. I will test it today.
Is it possible to build a list of agent-id in MySQL Database rather than agent.conf?
|
Look at extconfig.conf.sample for using a database to hold the contents of an agents.conf file.
Quote: |
I am not sure what is the best approach, maybe you can give me some direction. On the backend (web based) Admin can create a new Agent for agent web panel login.
Admin will enter their new username and password for web login. Admin also need to select a agent-id for a new agent.
I have two options.
- Build hundreds static agent-id in agents.conf
- Dynamic agent-id in mysql table (Not associated with agent.conf). Is this possible?
|
Either way is fine as unused static agents don't use much memory.
Richard |
|
Back to top |
|
|
asterisk.org at sedwar... Guest
|
Posted: Fri Aug 07, 2015 11:48 am Post subject: [asterisk-users] AgentRequest() and which agent id? |
|
|
Please don't top post.
On Fri, 7 Aug 2015, Shahid H wrote:
Quote: | Is it possible to build a list of agent-id in MySQL Database rather than
agent.conf?
|
[snip]
Quote: | I have two options.
- Build hundreds static agent-id in agents.conf
- Dynamic agent-id in mysql table (Not associated with agent.conf).
|
Or, how about (periodically or on demand) creating agents.conf from the
MySQL table?
Sometimes it makes more sense (from a resource perspective) to use a
static file even if you can read directly from the database.
I have a system that uses OpenSIPS to route incoming calls between
Asterisk servers based on the DNIS. The routing changes less that once a
month.
It makes more sense to create OpenSIPS routing configuration as a static
file than to hit the database 10,000 times a day for the same information.
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards@sedwards.com Voice: +1-760-468-3867 PST
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|