ARI Variables not working

I’m originating calls using ARI channel in the following way

curl -v -X POST "https://user:[email protected]:8089/ari/channels?endpoint=local/%2B91XXXXXXXXX4@from-trunk15&extension=%2B9191XXXXXXXXX5&context=from-trunk15&priority=1" -d '{"variables": { "IFI_AGENT": "75959", "IFI_UUID": "46327642643782643287", "CALLERID(name)": "+91XXXXXXXXX", "CALLERID(number)": "+91XXXXXXXXX" }}'

Calls are working fine, however, I am not receiving the variables from the Dialplan “from-trunk15”

Can you please help me to debug?

Nevermind guys, I forgot to pass

–header “Content-Type: application/json”

Can you post your working curl command?

curl -v -X POST \
–header “Content-Type: application/json” \
-d '{"variables": { "IFI_AGENT": "75959", "IFI_UUID": "46327642643782643287", "CALLERID(name)": "+91XXXXXXXXX", "CALLERID(number)": "+91XXXXXXXXX" }}' \
"https://user:[email protected]:8089/ari/channels?endpoint=local/%2B91XXXXXXXXX4@from-trunk15&extension=%2B9191XXXXXXXXX5&context=from-trunk15&priority=1"
2 Likes

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