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}")