M
M
Maxim2016-04-03 18:34:12
linux
Maxim, 2016-04-03 18:34:12

How to create a callback from forms on Asterisk?

Hello!
Tell me, is it correct, I understand the organization of the Asterisk callback scheme and what pitfalls can be.
The client has several sites with booking forms. Applications from the booking forms are processed by different offices, each with its own sales department. When an application is received, there must be a telephone connection between the manager and the client, with a recording of the conversation. Websites in php.
Now, I see the scheme like this:
1. VDS is bought, Asterisk is installed on it.
2. A simple API is made, when booking a form, a GET request of the form site.com/callback.php?client_phone...&site=1 is sent to the server with Asterisk.
3. SIP provider is used.
4. A sales manager is recruited, then he will connect with the client.
Is this a normal implementation or are there better options?
On the Internet, there are quite a few solutions for such a scheme, of which the most suitable are:
1. Creating call files on the server, for example ( https://bloke.org/php/reverse-hold-callback-reques... )
2. Using AMI ( asterisk-pbx.ru/wiki/artikle/asterisk_web_callback ).
What solution is better to use in this case? If you have examples of work, I will be grateful if you show them.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Pryadko, 2016-04-06
@alexander_v_pryadko

Good afternoon.
How we do it at CLOBS.
Applications are registered on the site and entered into the accounting system.
Upon request, a new contact is made.
If necessary, each manager can see applications only from his site.
When processing an application through AMI, a call command is sent, in manual or automatic mode.
Soft-backgrounds or devices are connected to the automatic telephone exchange as usual - they live their own lives.
The predictive call is not used, although it can be screwed on if desired.
It is effective for a large number of applications, and eliminates dialing delays.
Where the PBX stands at home or at the provider does not matter if it can be controlled.

B
bely87, 2016-04-11
@bely87

The flow of thought is correct.
Only it is better to send via POST and not via GET.
Through CALL it is convenient It is possible even through a database and cron
When sending a call, you can steer by contexts.
Channel: SIP/123456
Callerid: Asterisk 11 <Call from site>
MaxRetries: 5 RetryTime
: 10
WaitTime: 45
Account: obzvon
Context: msk(spb)
Archive: Yes
running bash scripts.
Alternatively, you can use AGI, I think it will be even better in your version.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question