Call Interactive
Example of Logic for "Transferring an Incoming Call to the Responsible Manager"
At the IVR extension, the first action is to send a Call Interactive request to search for an entity corresponding to the caller's number and the responsible manager, in order to return to the PBX the extension number of the responsible manager (in the Setvar action variable), so that the PBX, bypassing the voice greeting, sends the call to this responsible manager (by the IVR rule "Transfer to number in variable").
If the extension cannot accept the call and there are no forwarding rules on the extension, it is recommended not to make the "Transfer to number in variable" rule final.
Example: https://myintegration:8080/cid/807/getmanager/TLP55522
where:
https://myintegration:8080
- the address of the integration server.TLP55522
- the PBX user's login under which the application for this integration is created.807
- the serial number of the application for this integration. Allows for easily capturing only the integration events of this user on the integration server using ngrep or in the logs.
It is suggested to ask the user about the necessity of having an incoming call transferred to the responsible client and, in case of agreement (in the application/widget), automatically add it to the IVR in the Main context as the first rules:
Call Interactive + Transfer from variable (The Variable name must be equal to the variable name returned by the integration!).
And in the case of turning it off in the application/widget settings of the integration, remove these rules from the Main context of the IVR (carefully, so as not to delete anything extra, as their serial number may be changed during the PBX settings).