ARI Variables not working


(Tanmoy) #1

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

curl -v -X POST "https://user:pass@pbxurl.com: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?


(Tanmoy) #2

Nevermind guys, I forgot to pass

–header “Content-Type: application/json”


(Communication Technologies) #3

Can you post your working curl command?


(Tanmoy) #4
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:pass@pbxurl.com:8089/ari/channels?endpoint=local/%2B91XXXXXXXXX4@from-trunk15&extension=%2B9191XXXXXXXXX5&context=from-trunk15&priority=1"

(system) closed #5

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