[asterisk-dev] Issues with ARI python example for recording
Nitesh Bansal
nitesh.bansal at gmail.com
Fri Mar 18 06:18:15 CDT 2016
Hello,
I'm using the latest version of ari-py library.
I'm trying the following demo
https://wiki.asterisk.org/wiki/display/AST/ARI+and+Media%3A+Part+1+-+Recording
.
Everything is setup correctly, I can call Asterisk, but when I press the
DTMF '#' to
stop the recording, my python library throws an exception.
Entering recording state
Recording voicemail at voicemail/ 60000/1458299017.29
stopping recording LiveRecording(voicemail/ 60000/1458299017.29)
ERROR:ari.client:Event listener threw exception
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/ari/client.py", line 100, in __run
callback(msg_json, *args, **kwargs)
File "build/bdist.linux-x86_64/egg/ari/client.py", line 198, in
extract_objects
event_cb(obj, event, *args, **kwargs)
File "build/bdist.linux-x86_64/egg/ari/model.py", line 181, in fn_filter
fn(objects, event, *args, **kwargs)
File
"/root/asterisk_ari/ari-py/examples/ari_bridges/recording_demo/recording_state.py",
line 39, in on_dtmf
self.recording.stop()
File "build/bdist.linux-x86_64/egg/ari/model.py", line 155, in
enrich_operation
return promote(self.client, oper(**kwargs), oper.json)
File "build/bdist.linux-x86_64/egg/ari/model.py", line 354, in promote
resp.raise_for_status()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 773, in
raise_for_status
raise HTTPError(http_error_msg, response=self)
HTTPError: 404 Client Error: Not Found
It is throwing error on the line
'self.recording.stop'
Personally, I can't see anything wrong with this code, any ideas what I'm
doing wrong or
is there any bug in the ARI lib?
Thanks,
Nitesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20160318/9fe6f117/attachment.html>
More information about the asterisk-dev
mailing list