Implementation of callback in Bitrix24
Available from module version 2.8.21
2 implementation options:
1) The call comes to one person (parameters as in originate).
We need to add the following to our config (example for calling 123):
"callback": {
"caller_id": "Callback to #TO#",
"channel": "SIP/123",
"context": "from-internal",
"extension": "#TO#",
"priority": "1"
}
2) Or the call comes to the group via a local channel.
The downside is that such calls are often not recorded, as they go through local channels.
If there are events in CEL on SIP/# channels when calling internal numbers, then the call will be registered.
In /etc/asterisk/extensions_custom.conf add:
[from-callback-n]
exten => s,1,Goto(from-internal,#number#,1)
``
[from-callback]
exten => _8ZXXXXXXXXX,1,Dial(SIP/#trunk#/${EXTEN},30,)
In the module configuration file /etc/itgrix_bx/config.json add:
"callback": {
"caller_id": "Callback to #TO#",
"channel": "Local/s@from-callback-n",
"context": "from-callback",
"extension": "#TO#",
"priority": "1"
}
On the portal, create a form similar to
https://zadarma.com/en/support/instructions/bitrix-widget/
The application will appear in the selection when the module is installed or launched.