ARI Stop Playback

Home » Asterisk Users » ARI Stop Playback
Asterisk Users 2 Comments

Should the ARI DELETE /playback/{playbackId} be able to stop a playback when a number is being played?

Here is a test I am running. I am playing multiple portions (sounds and numbers).

curl -v -u asterisk:asterisk -X POST http://localhost:8088/ari/channels/1596750578.46/play?media=sound:hello-world,sound:tt-monkeys,number:553,sound:demo-instruct,number:123,number:456,number:789

If I attempt to stop while any of the numbers portions is being played, it does not stop the playback. I hear a skip or hiccup, but it continues playing. When I send the same exact stop playback a few seconds later (after the 553 portion playing the sound portion), it does stop the playback. I have run this test several times and it’s failing.

curl -v -u asterisk:asterisk -X DELETE http://localhost:8088/ari/playbacks/3b38730d-7954-4c50-9cdc-e4643ffc8c62

I am using 16.12.0

Is there some reason a DELETE playback doesn’t work during a number portion or is this a bug?

Dan

2 thoughts on - ARI Stop Playback

  • They are two separate paths and implementations, and I don’t think the number part has implemented the handling of stop and such.

  • VGhhbmsgeW91IEpvc2h1YS4gIFRoYXQgbWF0Y2hlcyB3aGF0IEkgZXhwZXJpZW5jZWQgbGFzdCB3
    ZWVrLg0KDQpJIHdpbGwgYnVpbGQgdGhlIHN0cmluZyB0byBwbGF5IHRoZSBudW1iZXIgcHJvbXB0
    cyB1c2luZyBpbmRpdmlkdWFsIHNvdW5kIHByb21wdHMgaW5zdGVhZCBvZiB1c2luZyBudW1iZXIu DQoNCkRhbg0KDQoNCkZyb206IGFzdGVyaXNrLXVzZXJzIDxhc3Rlcmlzay11c2Vycy1ib3VuY2Vz QGxpc3RzLmRpZ2l1bS5jb20+IE9uIEJlaGFsZiBPZiBKb3NodWEgQy4gQ29scA0KU2VudDogTW9u ZGF5LCBBdWd1c3QgMTAsIDIwMjAgODo0OSBBTQ0KVG86IEFzdGVyaXNrIFVzZXJzIE1haWxpbmcg TGlzdCAtIE5vbi1Db21tZXJjaWFsIERpc2N1c3Npb24gPGFzdGVyaXNrLXVzZXJzQGxpc3RzLmRp Z2l1bS5jb20+DQpTdWJqZWN0OiBSZTogW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