There are two ways to debug your VoxEngine scenarios:
Analyze session logs
Debug scenario using Voximplant Debugger in Control Panel
Each session has its own log file that can be accessed from the Control Panel (Calls section).
There are 2 ways to integrate call scenario with external services
Playing audio files
In Voximplant, you can play mp3 audio file to any call. To use this feature, you will need to use the Call.startPlayback function.
Managing a call state
There are 2 types of calls
All scenarios are event based.
To make your application work, you will need to add event listeners for several events. Currently, events can be dispatched by 2 types of objects
This is similar to Making calls between users. You would create the scenario with the following code:
So, if a user makes a call to "sip:firstname.lastname@example.org", and this scenario is executed according to the configured rules, the call will be made to the dialed SIP URI.
If you need simple web-to-web calls between Voximplant users within a single application, you can use the Voximplant.forwardCallToUser function.