{ "description": "Log inbound call and Forward call", "states": [ { "name": "Trigger", "type": "trigger", "transitions": [ { "event": "incomingMessage" }, { "next": "http_1", "event": "incomingCall" }, { "event": "incomingRequest" } ], "properties": { "offset": { "x": 0, "y": 0 } } }, { "name": "connect_call_1", "type": "connect-call-to", "transitions": [ { "event": "callCompleted" }, { "event": "hangup" } ], "properties": { "offset": { "x": -90, "y": 510 }, "caller_id": "{{contact.channel.address}}", "noun": "number", "to": "REPLACE-ME-YOUR-PHONE-NUMBER", "timeout": 30 } }, { "name": "http_1", "type": "make-http-request", "transitions": [ { "next": "connect_call_1", "event": "success" }, { "next": "connect_call_1", "event": "failed" } ], "properties": { "offset": { "x": -30, "y": 190 }, "method": "GET", "content_type": "application/x-www-form-urlencoded;charset=utf-8", "parameters": [ { "value": "{{trigger.call.From}}", "key": "did" }, { "value": "REPLACE-ME-PBX-SECURITY-TOKEN", "key": "token" } ], "url": "https://REPLACE-ME-subdomain.syncromsp.com/api/callerid/" } } ], "initial_state": "Trigger", "flags": { "allow_concurrent_calls": true } }