Project

General

Profile

Bug #7247

2 calls when adding a call to an application

Added by Pascal Cadotte-Michaud 11 months ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Category:
CTI
Target version:
Security issue:
No
In versions:
18.10
Read documentation?:
Yes

Description

Given an application a
Given a line at extension e in context c
When I add a call to the application using POST /applications/a/calls {"exten": e, "context": c}
Then GET /applications/a/calls returns 2 calls

{
  "items": [
    {
      "status": "Up",
      "dialed_extension": null,
      "variables": {},
      "creation_time": "2018-09-19T10:14:49.494-0400",
      "caller_id_name": "Éric",
      "node_uuid": null,
      "caller_id_number": "1006",
      "id": "1537366489.42",
      "on_hold": false,
      "is_caller": false
    },
    {
      "status": "Up",
      "dialed_extension": "1006",
      "variables": {},
      "creation_time": "2018-09-19T10:14:49.494-0400",
      "caller_id_name": "",
      "node_uuid": "a3b138a0-5f8c-45c6-b585-b76f235eecdd",
      "caller_id_number": "",
      "id": "1537366489.43",
      "on_hold": false,
      "is_caller": true
    }
  ]
}

There should only by one call in this list.

That call should have the following body

    {
      "status": "Up",
      "dialed_extension": null,
      "variables": {},
      "creation_time": "2018-09-19T10:14:49.494-0400",
      "caller_id_name": "Éric",
      "node_uuid": null,
      "caller_id_number": "1006",
      "id": "...",
      "on_hold": false,
      "is_caller": false
    },

The same problem exists when using POST /applications/:uuid/nodes/:uuid/calls

History

#1 Updated by Pascal Cadotte-Michaud 11 months ago

  • Description updated (diff)

#2 Updated by Pascal Cadotte-Michaud 11 months ago

  • Assignee set to Pascal Cadotte-Michaud
  • Status changed from New to In progress

#3 Updated by Pascal Cadotte-Michaud 11 months ago

  • Status changed from In progress to Code review

br: 7247-double-calls

xivo-ctid-ng

#4 Updated by François Blackburn 11 months ago

  • Status changed from Code review to Resolved

Also available in: Atom PDF