Write a log message, which you can view on our website. Next to your script there is a debug button, click on that and you will see your messages while your script executes.
||Write log messages.
var incomingCallId = x.answer();
x.log("incomingCallId: " + incomingCallId);