Caller ID webhook on Incoming Calls

I’m trying to get the caller ID and destination extension for incoming calls to be sent as a webhook to my discord channel.

I have tried the following code in my extension configuration file which has done nothing.

same => n,Set(DISCORD_WEBHOOK_URL = <my_webhook_url>)
same => n,Set(INBOUND_CALL_MSG = Inbound call from ${CALLERID(NUM)} to DID ${EXTEN})
same => n,System(curl -H "Content-Type: application/json" -d '{"content": "${INBOUND_CALL_MSG}"}' "${DISCORD_WEBHOOK_URL}")

Multi-posted at Caller ID webhook on Incoming Calls - Development - FreePBX Community Forums

Type of Webhook request, I suggest it do it through AGI

Check return of System () command, you will see some error , show that error here

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.