By the way,
I wrote a simple script.This script on being initiated by a HTTP trigger, places an outgoing call using "place call" step, on being successful connect it announces a prompt to called party and disconnets.
I am trying to mark the contact as handled under the successful branch of place step, but to my surprise there is no record for this call in the CRS database/table.
The same script on being initiated by a telephone call, marks entry in database/tables.
My suspicion is , because this script is initiated by HTTP trigger, the system is somehow not recognising this.
Any idea how this can be fixed?