hi!
I would greatly appreciate your help solving this case.
I have been trying for several days to pass my webhook directly to the WhatsApp application, and although the Webhook is perfectly formed and verified in several other JSON evaluation platforms, however, I cannot reference the elements when the Webhook is dynamic through POST from my application source
I found this differences:
Encode Sending (I put it here in parentheses)
(%7B%22Events%22%3A%5B%7B%22Type%22%3A%22Intrn%22%2C%22Devices%22%3A%22Ext±%3E+Ext%22%2C%22Status%22%3A%22Up%5C%2FUp%22%2C%22PeerA%22%3A%22SIP%5C%2F102%22%2C%22PeerB%22%3A%22SIP%5C%2F100%22%2C%22Ring%22%3A%223%22%2C%22MOH%22%3A%22%5C%2F0%22%2C%22HV%22%3A%2200%22%2C%22CallerID%22%3A%22102%22%2C%22Dial%22%3A%22100%22%2C%22HunterID%22%3A%22Llamada+Interna%22%2C%22Duration%22%3A%2200%3A00%3A01%22%2C%22AlarmBlock%22%3A%22ANS%3AExt%3ASIP%5C%2F100%22%2C%22CallUID%22%3A%221629080540.56%22%2C%22LinkUID%22%3A%221629080540.56%22%2C%22TStampEvent%22%3A%221629080540%22%2C%22Channel-Orig%22%3A%22SIP%5C%2F102-00000038%22%2C%22Channel-Dest%22%3A%22SIP%5C%2F100-00000039%22%2C%22IP-Orig%22%3A%2210.10.11.7%3A5060%22%2C%22IP-Dest%22%3A%2210.10.11.10%3A49203%22%2C%22TimeStamp%22%3A%2220210815212227%22%7D%5D%7D)
Original Webhook (I put it here in parentheses)
({“Events”:[{“Type”:“Intrn”,“Devices”:“Ext → Ext”,“Status”:“Up/Up”,“PeerA”:“SIP/102”,“PeerB”:“SIP/100”,“Ring”:“3”,“MOH”:"/0",“HV”:“00”,“CallerID”:“102”,“Dial”:“100”,“HunterID”:“Llamada Interna”,“Duration”:“00:00:01”,“AlarmBlock”:“ANS:Ext:SIP/100”,“CallUID”:“1629080540.56”,“LinkUID”:“1629080540.56”,“TStampEvent”:“1629080540”,“Channel-Orig”:“SIP/102-00000038”,“Channel-Dest”:“SIP/100-00000039”,“IP-Orig”:“10.10.11.7:5060”,“IP-Dest”:“10.10.11.10:49203”,“TimeStamp”:“20210815212227”}]})
steps.trigger.event.body (I put it here in parentheses)
({"{“Events”:[{“Type”:“Intrn”,“Devices”:“Ext → Ext”,“Status”:“Up\/Up”,“PeerA”:“SIP\/102”,“PeerB”:“SIP\/100”,“Ring”:“3”,“MOH”:"\/0",“HV”:“00”,“CallerID”:“102”,“Dial”:“100”,“HunterID”:“Llamada Interna”,“Duration”:“00:00:01”,“AlarmBlock”:“ANS:Ext:SIP\/100”,“CallUID”:“1629080540.56”,“LinkUID”:“1629080540.56”,“TStampEvent”:“1629080540”,“Channel-Orig”:“SIP\/102-00000038”,“Channel-Dest”:“SIP\/100-00000039”,“IP-Orig”:“10.10.11.7:5060”,“IP-Dest”:“10.10.11.10:49203”,“TimeStamp”:“20210815212227”}]}":null})
I don’t know what can be wrong here ?
When the Webhook is deserialized, there must be some problem and since I don’t have much experience in JS, the truth is that I have not managed to fix the problem, not even with some recommendations of similar cases in the forum
I really appreciate if you give me a hand to continue with this platform that I like so much and I find it very useful for my projects
Greetings


