Yeastar
Send a survey after each answered call on a Yeastar P-Series or S-Series phone system, from its call-end event.
What it does
Yeastar phone systems publish a call-end event with the call's details: event 30012 (Call End Details) on the
P-Series, NewCdr on the S-Series. A small relay on your network receives it and sends it to Sayvara, which queues
one survey for each answered call with a customer.
Status
Add-on, available on request. The recipe below is built into Sayvara and tested with sample events. Our team sets it up with you and checks it on your Yeastar system before your first surveys go out. Ask at support@sayvara.com.
The recipe
Yeastar's webhook cannot send a Sayvara API key, so a relay sits between the two.
- P-Series: under Integrations > API, turn the API on and add a webhook: method
POST, the relay's address, event30012. Copy the webhook's Secret into the relay. S-Series: register the relay as the API's event receiver. - The relay (a short script or container on your network):
- checks Yeastar's
X-Signature(Base64 HMAC-SHA256 of the body with the webhook secret); - sends the body unchanged to
https://api.sayvara.com/v1/triggers/pbx/yeastarwithAuthorization: Bearer <your API key>, and aSayvara-Signaturewhen signed triggers are on (see Phone systems); - answers Yeastar with
200within its timeout.
- checks Yeastar's
- Add
?utcOffset=+03:00(your PBX's time zone) to the address if it differs from your country's. - Make an answered test call. The call appears in Sayvara under Contacts.
How the call is read
| Sayvara | P-Series msg |
S-Series |
|---|---|---|
| Call id | sn and call_id |
sn and callid |
| Direction | type: Inbound, Outbound; Internal gets no survey |
type |
| Customer number | call_from (inbound) or call_to (outbound) |
callfrom or callto |
| Answered | status is ANSWERED |
status |
| Talk time | talk_duration |
talkduraction |
| End time | time_start plus call_duration |
timestart plus callduraction |
msg may arrive as an object or as a JSON string; Sayvara reads both. For the answers Sayvara gives, see
Phone systems.
Was this page helpful?
Thanks. Need more help? Email support@sayvara.com