Call Answered¶
Attribute |
Possible value |
Description |
---|---|---|
|
|
Tell Zammad that someone answered the call. |
|
e.g. |
Number that initiated the call |
|
e.g. |
Number that is being called |
|
|
The call direction - if your agent initiates a call this will be |
|
e.g. |
An ID that is unique for the call. Zammad will use this ID to identify an existing call with following actions (e.g. like answering or hanging up) This ID must be unique per call session. |
|
e.g. |
Zammad will look up for a user with given value, the following attributes will be evaluated in given order:
This value is optional. |
|
e.g. |
The user(s) real name involved. You may have to provide array style
( If the direction is
out , this is the name of the calling person(s).If the direction is
in , this is the name of the called person(s).This value is optional. |
There’s two options on how to POST
the relevant data to Zammad.
- Example:
Below calls have been sent with the following configuration. This is important for you to understand the returns we’re showing here.
Outbound:
Destination caller ID
4989*
set outbound caller ID498999998145
with note “All from munich”Destination caller ID
4930*
set outbound caller ID493023125877
“All from Berlin”
Other settings:
Default caller ID for outbound calls
496990009111
POST
-Request sent:
https://{FQDN-Zammad}/api/v1/cti/{instance specific token}
- Outbound
Payload:
{ "event": "answer", "from": "493023125741", "to": "492214710334", "direction": "out", "callId": "9f1840cb-8be9-4d3a-8200-3da2937085f0", "caller": "Christopher Miller" }
Response:
{}
Sample curl command:
$ curl --request POST 'https://{FQDN-Zammad}/api/v1/cti/{instance specific token}' \ --header 'Content-Type: application/json' \ --data-raw '{ "event": "answer", "from": "493023125741", "to": "492214710334", "direction": "out", "callId": "9f1840cb-8be9-4d3a-8200-3da2937085f0", "caller": "Christopher Miller" }'
- Inbound
Payload:
{ "event": "answer", "from": "493023125741", "to": "492214710334", "direction": "in", "callId": "307fa962-de8d-4ffc-817b-7f6993204159", "answeringNumber": "emma@chrispresso.com", "caller": ["Christopher Miller", "Emma Taylor"] }
Response:
{}
Sample curl command:
$ curl --request POST 'https://{FQDN-Zammad}/api/v1/cti/{instance specific token}' \ --header 'Content-Type: application/json' \ --data-raw '{ "event": "answer", "from": "493023125741", "to": "492214710334", "direction": "in", "callId": "307fa962-de8d-4ffc-817b-7f6993204159", "answeringNumber": "emma@chrispresso.com", "caller": ["Christopher Miller", "Emma Taylor"] }'
POST
-Request sent:
https://{FQDN-Zammad}/api/v1/cti/{instance specific token}
- Outbound
Payload:
event:"answer" from:"493023125741" to:"492214710334" direction:"out" callId:"371e2cd7-67ff-4fd9-892b-030c8d128fb1" caller[]:"Christopher Miller" caller[]:"Emma Taylor"
Returns:
{}
Sample curl command:
$ curl --request POST 'https://{FQDN-Zammad}/api/v1/cti/{instance specific token}' \ --form 'event="answer"' \ --form 'from="493023125741"' \ --form 'to="492214710334"' \ --form 'direction="out"' \ --form 'callId="371e2cd7-67ff-4fd9-892b-030c8d128fb1"' \ --form 'caller[]="Christopher Miller"' \ --form 'caller[]="Emma Taylor"'
- Inbound
Payload:
event:"answer" from:"493023125741" to:"492214710334" direction:"in" callId:"61868f1e-2171-4313-970b-25982f0c5ce1" answeringNumber:"emma@chrispresso.com" caller="Emma Taylor"
Returns:
{}
Sample curl command:
$ curl --request POST 'https://{FQDN-Zammad}/api/v1/cti/{instance specific token}' \ --form 'event="answer"' \ --form 'from="493023125741"' \ --form 'to="492214710334"' \ --form 'direction="in"' \ --form 'callId="61868f1e-2171-4313-970b-25982f0c5ce1"' \ --form 'answeringNumber="emma@chrispresso.com"' \ --form 'caller="Emma Taylor"'
- The next logical step within call session context would be:
hangup (call ending)