ARI Record Question

Home » Asterisk Users » ARI Record Question
Asterisk Users 1 Comment

I’m attempting to run a test of the ARI recording of audio from the channel.

When I send the record command, it’s failing. curl -v -u asterisk:asterisk -X POST “http://locahost:8088/ari/channels/mychanntest.1/record?name=mytest&format=WAV&maxDurationSeconds=300&maxSilenceSeconds=3”

[08/11 09:14:13.290] WARNING[23806]: ari/resource_channels.c:812 ast_ari_channels_record: Unrecognized recording error: No such file or directory

Based on this link, it sounds like the recording folder was the issue. I changed it to be writeable by anyone to see if that would resolve the issue but it has not. https://asterisk-app-dev.digium.narkive.com/oC8mEKF8/call-recording-using-ari

My /var/spool/asterisk/recording folder is configured to allow writes

sudo ls -l /var/spool/asterisk/
total 28
drwxr-xr-x 2 root root 4096 Sep 13 2019 dictate drwxr-xr-x 2 root root 4096 Sep 13 2019 meetme drwxr-xr-x 2 root root 4096 Sep 13 2019 monitor drwxrwxrwx 2 root root 4096 Sep 13 2019 recording drwxr-xr-x 2 root root 4096 Sep 13 2019 system drwxr-xr-x 2 root root 4096 Sep 13 2019 tmp drwxr-xr-x 2 root root 4096 Sep 13 2019 voicemail

Any suggestions on what I am doing wrong?

Dan

One thought on - ARI Record Question

  • Please disregard. I found my problem. We use a unique folder for the spool. Once I created the recording folder in our directory everything worked as expected.

    Dan

    From: asterisk-users On Behalf Of Dan Cropp Sent: Tuesday, August 11, 2020 9:24 AM
    To: ‘asterisk-users@lists.digium.com’
    Subject: [asterisk-users] ARI record question

    I’m attempting to run a test of the ARI recording of audio from the channel.

    When I send the record command, it’s failing. curl -v -u asterisk:asterisk -X POST “http://locahost:8088/ari/channels/mychanntest.1/record?name=mytest&format=WAV&maxDurationSeconds=300&maxSilenceSeconds=3”

    [08/11 09:14:13.290] WARNING[23806]: ari/resource_channels.c:812 ast_ari_channels_record: Unrecognized recording error: No such file or directory

    Based on this link, it sounds like the recording folder was the issue. I changed it to be writeable by anyone to see if that would resolve the issue but it has not. https://asterisk-app-dev.digium.narkive.com/oC8mEKF8/call-recording-using-ari

    My /var/spool/asterisk/recording folder is configured to allow writes

    sudo ls -l /var/spool/asterisk/
    total 28
    drwxr-xr-x 2 root root 4096 Sep 13 2019 dictate drwxr-xr-x 2 root root 4096 Sep 13 2019 meetme drwxr-xr-x 2 root root 4096 Sep 13 2019 monitor drwxrwxrwx 2 root root 4096 Sep 13 2019 recording drwxr-xr-x 2 root root 4096 Sep 13 2019 system drwxr-xr-x 2 root root 4096 Sep 13 2019 tmp drwxr-xr-x 2 root root 4096 Sep 13 2019 voicemail

    Any suggestions on what I am doing wrong?

    Dan