1b.app
Link copied -

Call registration

Good afternoon.
Please tell me what needs to be done to start the action "Convert call to process"?
I register a call via API /api/registercall/ with the INCOMING status. The call card pops up. I receive the call ID in the response.
How can I close the call further (I transferred the same call with the ANSWER status), I get the answer Ok and that's it. Maybe I need to use the call ID that I get in response when registering the call?
Original question is available on version: ru

Answers:

Good day. There are two concepts: an active call (right here and now) and an event (the history of the fact that the call was once). The call that you create is needed to show the call window in real time to the user who is being called in the box. To close the call, you can send the same request, only with a different status, for example ANSWER or CANCEL. So here you did everything correctly.
Further, all actions work with events, so in order for the action "Convert call to process" to work, you need to create an event. https://swagger.1b.app/#/event/event
вчера, 11:35
Original comment available on version: ru

Here I have an event created https://swagger.1b.app/#/event/event.

But for some reason the process was not created.

Is call registration (/api/registercall/) only needed to display the card?

id that I get in response after registration, can I use it somewhere? View the entire list of registered calls (not events).
вчера, 11:40
Original comment available on version: ru


Samokhin Vladislav wrote:
Is call registration (/api/registercall/) only needed to display the card?

Yes, there are a couple more places where it is used, but you hardly need it.

Samokhin Vladislav wrote:
id that I get in response after registration, can I use it somewhere? View the entire list of registered calls (not events).

If some kind of telephony is connected, it usually contains a list of calls from this telephony.
If you need calls only to create tasks, you can skip /api/registercall/ and immediately create an event at the end of the call.
If there is an event, provide a link to it and, accordingly, a link to your system so that you can check the action settings.
вчера, 11:44
Original comment available on version: ru

https://box.fialan.com/

https://box.fialan.com/app/event/979616/

+ it is not clear how to make there be a player in the event.
вчера, 11:53
Original comment available on version: ru

1. To play a recording, you need to write it in a separate field. In apiv2 there is no such possibility as far as I can see (all telephony has its own integrations, no one pushes calls there). It can be improved in 2 hours.
2. A missed call is when the client's phone was not picked up or something like that.
$statusArray[] = 'NOANSWER';
$statusArray[] = 'NO ANSWER';
$statusArray[] = 'CANCEL';
$statusArray[] = 'BUSY';
$statusArray[] = 'CONGESTION';
$statusArray[] = 'CHANUNAVAIL';
$statusArray[] = 'CALLFAILED';
list of statuses for which a call is considered missed.
вчера, 12:01
Original comment available on version: ru

The question is not about the action “Create a process based on the missed call”, but about the action “Reverse the call in the process”.
In this action, any call should turn into a process.
вчера, 12:04
Original comment available on version: ru

The status field is missing from the call. Either remove the setting "Take only call statuses (show some through whom)" or pass the status. Calls are checked by default for the last hour, i.e. if you need to test, you will need to create a new one or change the action settings one-time, so that it takes, for example, for the last day.
вчера, 12:51
Original comment available on version: ru

Can I pass the status to an event via api v2 (https://swagger.1b.app/#/event/event)?
вчера, 13:00
Original comment available on version: ru

Unfortunately, no, as far as I can see. Remove the status action in the settings so that it is not filtered, or we can improve the status transfer, it will take about an hour. If the status and audio playback at once, 2 hours. Issue an invoice?
вчера, 13:33
Original comment available on version: ru

How then to create a call so that this action would work?
вчера, 13:41
Original comment available on version: ru

2 options
1.

let him cook
OneBox production wrote:
Remove the status in the action settings so that it is not filtered

2.

let him cook
OneBox production wrote:
we can improve the status transfer, it will take about an hour
вчера, 13:56
Original comment available on version: ru

And according to api v1, there are statuses in call registration. Will processes not be created according to this webhook?
вчера, 14:03
Original comment available on version: ru

As I described above, this API is needed to show the user a window with a call.
вчера, 14:07
Original comment available on version: ru

You can look at the log for today 12:49.
https://box.fialan.com/admin/logs/showall/ajax/?file=fatal-2024-10-18.log
Error in file box_auto_action_event_call2issue.php
вчера, 14:38
Original comment available on version: ru

everything is ok with that.
вчера, 15:06
Original comment available on version: ru

Tell me, with standard integration https://1b.app/ua/app/ringostat/ should processes be created by the action "Convert call to process"?
вчера, 15:15
Original comment available on version: ru


Got it, thank you very much for your help
вчера, 16:58
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment