We're updating the issue view to help you get more done. 

Call Center call distributed on specific line selected by the user (not only main line)

Description

As a agent from a call Center (member of one or more queues), I wnat to set on which of my line to receive call my queues.

When login as a agent, fct available into Wazo application, I want to specify on which line I want to receive my calls distributed from the Call Center

Presently Call distribution from Call Center only use main line.


Technical approach

Agentd choose state interface for login

As an API developper, I want to specify the state interface in login Agentd API

state_interface = self._get_state_interface(extension, context)

Currently we can choose Extension and context, and the state interface is hardcoded to the master.
We want to be able to specify the state.

Environment

None

Activity

Show:
Sébastien Duthil
July 22, 2020, 6:27 PM
Edited

OK, second proposition:

François Blackburn
July 23, 2020, 10:56 AM
Edited

I think the pcm comment was also valid for GET endpoints. A user can only have one agent associated. So no need to have more more than one endpoint when using users/me

Can I ask why the agent part of URL is not plural? (I though it was a typo, but you rewrite it)

Sébastien Duthil
July 23, 2020, 2:24 PM

I think the pcm comment was also valid for GET endpoints. A user can only have one agent associated. So no need to have more more than one endpoint when using users/me

Agreed, only one GET on /users/me is added. I just want to mention that we also add the interface_id field in the existing /agents/by-*/* endpoints, to keep consistence across all GET endpoints.

Can I ask why the agent part of URL is not plural? (I though it was a typo, but you rewrite it)

Because we consider that a user may only have at most one agent. So the resource /users/me/agent refer to THE only agent of the user, not a list of agents. I see that this is contradictory to the convention in wazo-confd (line-endpoint or line-device are all plural). I have no objection to agents in the plural form if you prefer it.

François Blackburn
July 23, 2020, 3:00 PM

Because we consider that a user may only have at most one agent. So the resource /users/me/agent refer to THE only agent of the user, not a list of agents. I see that this is contradictory to the convention in wazo-confd (line-endpoint or line-device are all plural). I have no objection to agents in the plural form if you prefer it.

I have a slight preference with plural agents, because I don’t see any place where we use singular, even if there are not a lot of place where we have this situation (maybe also wazo-chatd /users/me/presences). But I think there is matter for discussion if someone has real opinion

Sébastien Duthil
July 23, 2020, 7:09 PM

Very well, third proposition (only changed the plural form of /user/me/agents):

Assignee

Sébastien Duthil

Reporter

Clément Bourgeois

Approvers

François Blackburn

Pair

None

Sprint

None

Fix versions

Epic Link

Priority

High
Configure