<div dir="ltr"><div><div><div><div>Hello,<br><br></div>I'm using the latest version of ari-py library.<br></div>I'm trying the following demo <a href="https://wiki.asterisk.org/wiki/display/AST/ARI+and+Media%3A+Part+1+-+Recording">https://wiki.asterisk.org/wiki/display/AST/ARI+and+Media%3A+Part+1+-+Recording</a>.<br><br></div>Everything is setup correctly, I can call Asterisk, but when I press the DTMF '#' to<br></div>stop the recording, my python library throws an exception.<br><br><br><div><div>Entering recording state<br>Recording voicemail at voicemail/ 60000/1458299017.29<br>stopping recording LiveRecording(voicemail/ 60000/1458299017.29) <br>ERROR:ari.client:Event listener threw exception<br>Traceback (most recent call last):<br>  File "build/bdist.linux-x86_64/egg/ari/client.py", line 100, in __run<br>    callback(msg_json, *args, **kwargs)<br>  File "build/bdist.linux-x86_64/egg/ari/client.py", line 198, in extract_objects<br>    event_cb(obj, event, *args, **kwargs)<br>  File "build/bdist.linux-x86_64/egg/ari/model.py", line 181, in fn_filter<br>    fn(objects, event, *args, **kwargs)<br>  File "/root/asterisk_ari/ari-py/examples/ari_bridges/recording_demo/recording_state.py", line 39, in on_dtmf<br>    self.recording.stop()<br>  File "build/bdist.linux-x86_64/egg/ari/model.py", line 155, in enrich_operation<br>    return promote(self.client, oper(**kwargs), oper.json)<br>  File "build/bdist.linux-x86_64/egg/ari/model.py", line 354, in promote<br>    resp.raise_for_status()<br>  File "/usr/lib/python2.7/dist-packages/requests/models.py", line 773, in raise_for_status<br>    raise HTTPError(http_error_msg, response=self)<br>HTTPError: 404 Client Error: Not Found<br><br></div><div>It is throwing error on the line<br></div><div>'self.recording.stop'<br><br></div><div>Personally, I can't see anything wrong with this code, any ideas what I'm doing wrong or<br></div><div>is there any bug in the ARI lib?<br><br></div><div>Thanks,<br></div><div>Nitesh<br></div></div></div>