I’m trying to set up an automation to take the incoming caller ID as per API References
It sends the POST request using application/x-www-form-urlencoded
Has anyone got an example of how this should be parsed?
From what I read it should use a filter and ‘urlencode’ but I’m not sure exactly what this means
This is the data
trigger:
platform: webhook
webhook_id: sipgate
data:
__type: <class 'multidict._multidict.MultiDictProxy'>
repr: >-
<MultiDictProxy('event': 'newCall', 'direction': 'in', 'from':
'447976002117', 'to': '441416111332', 'callId':
'54566B150B0C0D3A5D53435F57597E57525B575D535E515A785E515B45524252434747585A57',
'origCallId':
'54566B150B0C0D3A5D53435F57597E57525B575D535E515A785E515B45524252434747585A57',
'user[]': 'A8ree', 'userId[]': 'w0', 'fullUserId[]': '1631325w0',
'xcid': '92de953efcecfc7a')>
query:
__type: <class 'multidict._multidict.MultiDictProxy'>
repr: <MultiDictProxy()>
description: webhook
id: '0'
I want to use this in an automation to announce the incoming caller - ideally using a contacts lookup.
Can anyone help?