Bonjour,
J’ai utilisé l’inerface wazo-ui pour créer une queue, et j’ai ajouté un utilisateur dans cette queue:
{
"total": 1,
"items": [
{
"id": 2,
"tenant_uuid": "958ac4de-d279-4f63-882a-b0e4f8347e56",
"name": "test",
"label": null,
"data_quality": false,
"dtmf_hangup_callee_enabled": false,
"dtmf_hangup_caller_enabled": false,
"dtmf_transfer_callee_enabled": false,
"dtmf_transfer_caller_enabled": false,
"dtmf_record_callee_enabled": false,
"dtmf_record_caller_enabled": false,
"retry_on_timeout": false,
"ring_on_hold": false,
"timeout": null,
"announce_hold_time_on_entry": false,
"ignore_forward": false,
"preprocess_subroutine": null,
"music_on_hold": null,
"wait_time_threshold": null,
"wait_time_destination": {
"type": "none"
},
"wait_ratio_threshold": null,
"wait_ratio_destination": {
"type": "none"
},
"caller_id_mode": null,
"caller_id_name": null,
"mark_answered_elsewhere": false,
"enabled": true,
"options": [
[
"autopause",
"no"
],
[
"timeoutrestart",
"no"
],
[
"periodic-announce",
"queue-periodic-announce"
],
[
"queue-youarenext",
"queue-youarenext"
],
[
"servicelevel",
"0"
],
[
"strategy",
"ringall"
],
[
"ringinuse",
"no"
],
[
"autofill",
"yes"
],
[
"retry",
"5"
],
[
"announce-round-seconds",
"0"
],
[
"maxlen",
"0"
],
[
"random-periodic-announce",
"no"
],
[
"timeout",
"15"
],
[
"setinterfacevar",
"no"
],
[
"setqueueentryvar",
"yes"
],
[
"timeoutpriority",
"conf"
],
[
"reportholdtime",
"no"
],
[
"weight",
"0"
],
[
"periodic-announce-frequency",
"0"
],
[
"queue-reporthold",
"queue-reporthold"
],
[
"queue-seconds",
"queue-seconds"
],
[
"setqueuevar",
"yes"
],
[
"memberdelay",
"0"
],
[
"announce-position",
"yes"
],
[
"queue-holdtime",
"queue-holdtime"
],
[
"announce-holdtime",
"no"
],
[
"queue-minutes",
"queue-minutes"
],
[
"min-announce-frequency",
"60"
],
[
"announce-position-limit",
"5"
],
[
"wrapuptime",
"0"
],
[
"queue-thereare",
"queue-thereare"
],
[
"queue-callswaiting",
"queue-callswaiting"
],
[
"queue-thankyou",
"queue-thankyou"
],
[
"announce-frequency",
"0"
]
],
"links": [
{
"rel": "queues",
"href": "https://10.92.100.158/api/confd/1.1/queues/2"
}
],
"extensions": [
{
"id": 38,
"exten": "1100",
"context": "interne",
"links": [
{
"rel": "extensions",
"href": "https://10.92.100.158/api/confd/1.1/extensions/38"
}
]
}
],
"schedules": [],
"members": {
"agents": [],
"users": [
{
"priority": 0,
"uuid": "3b4711bf-1227-4222-86ef-68d15b102f99",
"firstname": "julien",
"lastname": "duduclx",
"links": [
{
"rel": "users",
"href": "https://10.92.100.158/api/confd/1.1/users/1"
}
]
}
]
}
}
]
}
si je regarde cet utilisateur connecté (aka session), il a la valeur:
agent: null
bon, normal, il n’est pas agent.
et:
user.profile.lines[0].id : 2
dans le sdk, je trouve
Wazo.agentd.loginWithLineId: (lineId: number) => Promise<boolean>
mais si je tente de connecter mon utilisateur avec:
Wazo.agentd.loginWithLineId(user.profile.lines[0].id)
j’ai en réponse:
Error: {"error":"no such agent"}
En regardant plus loin:
il faudrait un agent …
je créé donc un agent, mais rien dans wazo-ui pour lier mon user et mon agent
Je suis donc passé par l’api:
https://10.92.100.158/api/#!/agents/associate_user_agent
une fois l’utilisateur lié à l’agent:
Wazo.agentd.loginWithLineId(user.profile.lines[0].id)
me renvoi ‘true’
haa connecté !
mais c’est laborieux !
d’où mes questions:
- Est-il possible de connecter l’utilisateur à la queue sans qu’il soit lié à un agent ?
- Est-il prévu ou possible de prévoir d’avoir le ‘associate_user_agent’ disponible dans wazo-ui ?
- Pourquoi un agent peut avoir plusieurs utilisateurs ? quelle utilité, quelle limite ?
- Quelle est la différence entre queue et switchboard ?
merci !