I’m using the following command to create and originate a channel:
curl -X POST "http://192.168.1.100:8088/ari/channels" -u myun:mypw -d "endpoint=PJSIP/123" -d "app=mystasisapp"
and although I have ARI debug on, the command is NOT shown as received (in the Asterisk CLI with ARI debug on). But it does show sending this response:
<--- Sending ARI response to 192.168.1.2:39924 --->
500 Server Error
Content-type: application/json
{"message":"Out of memory"}
I restarted Asterisk immediately before sending this command…so I don’t think it’s actually out of memory. If I send the “asterisk/info” command using CURL with the same syntax as above (but with GET not POST) it works fine, and the received and sent messages are shown in the CLI debug output. So there must be something else wrong with my command/syntax. I can confirm that endpoint PJSIP/123 exists.
Can anyone see what’s wrong with my syntax?