1b.app
Link copied -

PBX and onebox integration

Есть вопросы по настройке телефонии?
Рекомендуем обратиться к партнеру-интегратору - он с радостью поможет в настройке! Посмотреть список интеграторов
The application contains data for connecting to the AMI on the telephony server.
When calling from onebox (contact, call from the application), the operator is called and the number is dialed, but I do not observe any events of the appearance of the contact card.
With incoming - nothing at all.
Can you tell me how to achieve a working integration?
Original question is available on version: ru

Answers:

1. after you have registered the settings - you had to click the button to restart cron-ami
2. make sure that you have an asterisk phone type in your card and an internal telephony number is registered
3. set the action Create events based on the database of current calls in the automation application once a minute
the presence of current calls can be viewed in the application https://mdclinics.1b.app/app/asterisk-4/
16.04.2022, 11:33
Original comment available on version: ru

Good afternoon.
Before receiving a response, I once again decided to carry out the adjustment. I deleted the connection and created it again, call events began to be created.
Automation is needed when working through push notifications, I set up AMI, I didn’t understand how to work with push.
16.04.2022, 13:19
Original comment available on version: ru


s.efimov@mdclinics.com.ua wrote:
Good afternoon.
Before receiving a response, I once again decided to carry out the adjustment. I deleted the connection and created it again, call events began to be created.
Automation is needed when working through push notifications, I set up AMI, I didn’t understand how to work with push.

push needs to be configured on the telephony side
Roughly speaking, it pushes requests to the API for current calls in telephony and. in this case no cron is needed
16.04.2022, 13:46
Original comment available on version: ru

Thank you!
A little more confusing reports, but that's another topic of conversation.
If anyone has a working circuit using the API and can share? FreePBX 14.0.16.11 is used.
16.04.2022, 21:11
Original comment available on version: ru

Good day!
Complete integration with ATS, Asterisk module. There are not a lot of managers on the server, who cannot be seen in the system, it is necessary to reset the system and work with the PBX, or push calls from the server. It is not a safe practice to spread AMI through the Internet, and also to post yoga on the Internet. Instructions about the push did not know. We tried api v1 /api/registercall/ - in the api logs all entries are є, but the call didn't pick up anywhere. Version 2 of API does not have any telephony methods.
Is it possible /api/registercall/ and є push method to the asterisk module chi yak tse pratsyuє (push through the external path to the file in the application api)? Give the working butt to the request. І chi and other options for vibrating the history and recording roses in the system?
Otherwise, there are hundreds of records of roses, vіdavati їх via https є possibility chi less than ftp?
26.05.2022, 14:26
Original comment available on version: ru


Maria wrote:
Is it possible /api/registercall/ and є push method to the asterisk module chi yak tse pratsyuє (push through the external path to the file in the application api)? Give the working butt to the request. І chi and other options for vibrating the history and recording roses in the system?

Good afternoon
such a scheme
The telephony server pushes everything that happens there to the box.
The first push comes, at the time of the call with the "INCOMING" status, the card is shown here.
Next comes a push with the status "ANSWER" and it says who answered the phone,
Accordingly, all the other windows disappeared.
At the end of the conversation, a push comes with the status "ANSWER" and the file name
[status] => ANSWER
[filename] => 2020-12-22/380445550129-4944999_2020-12-22_16-03-01.mp3
this conversation is over.
here is an example call
/asterisk/push/?ident=1602999999.999999&time=201007-000000&channel=Local/952@from-queue-000069d3;2&status=INCOMING&caller=0999999999&callee=7899
fields
ident - call identifier (we use it as a channel)
status - call status
caller - who is calling
callee - where to call
pickup - who picked up the phone on a group call
duration - call duration
filename - file name
asteriskid - integration name
Statuses that the system understands.
CANCEL - the caller hung up.
ANSWER - talked and dispersed.
CONGESTION - the line is overloaded.
CHANUNAVAIL - the line is unavailable.
BUSY - the line is busy.
NOANSWER - The callee did not answer the call.
INVALID - invalid number/transfer.
TRANSFER - the call has been transferred.
LOCAL - local call.
INCOMING - incoming call.
OUTGOING - outgoing call.
INVALID - invalid call.
but if you don’t understand, then I think you can take a few hours of our specialist’s work, he will tell you in detail what and how to send

Maria wrote:
Otherwise, there are hundreds of records of roses, vіdavati їх via https є possibility chi less than ftp?

in push notifications you can send the https parameter filename
30.05.2022, 10:11
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