Action: Connect

Connect the call to a given number, and in the case of an answer, let the two callers speak to each other. The callerid indicates who is calling. You can set it to one of your 46elks numbers. If you leave it out, it will default to the incoming caller’s number.

Format

{
  "connect": "+46766861004",
  "callerid": "+46766861234", // Optional
  "next": "https://yourapp.io/elks/calls", // Optional
}

Result

POST https://yourapp.io/elks/calls
Parameter Description
callid The unique id of the call in our systems.
result The result of the connect. Can be ”success”, ”failed” or ”busy”.