<div dir="ltr"><p style="margin:0px;padding:0px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:14px">I am trying out ARI, and while executing channel-playback-monkeys.py from the asterisk wiki, I get an exception when I hangup the call while the monkeys sound file is playing.</p><p style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:14px"> </p><p style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:14px">Output from channel-playback-monkeys.py:</p><pre style="margin-top:10px;margin-bottom:0px;padding:0px;color:rgb(51,51,51);font-size:14px"><font face="monospace, monospace">(aripython) ➜ python 04-channel-playback-monkeys.py</font></pre><pre style="margin-top:10px;margin-bottom:0px;padding:0px;color:rgb(51,51,51);font-size:14px"><font face="monospace, monospace">Monkeys! Attack SIP/bigyan_linphone-00000009!<br><br></font></pre><pre style="margin-top:10px;margin-bottom:0px;padding:0px;color:rgb(51,51,51);font-size:14px"><font face="monospace, monospace">ERROR:ari.client:Event listener threw exception<br>Traceback (most recent call last):<br> File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/ari/client.py", line 100, in __run<br> callback(msg_json, *args, **kwargs)<br> File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/ari/client.py", line 198, in extract_objects<br> event_cb(obj, event, *args, **kwargs)<br> File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/ari/model.py", line 181, in fn_filter<br> fn(objects, event, *args, **kwargs)<br> File "04-channel-playback-monkeys.py", line 24, in playback_finished<br> channel = client.channels.get(channelId=channel_id)<br> File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/ari/model.py", line 62, in <lambda><br> return lambda **kwargs: promote(self.client, oper(**kwargs), oper.json)<br> File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/ari/model.py", line 354, in promote<br> resp.raise_for_status()<br> File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/requests/models.py", line 884, in raise_for_status<br> raise HTTPError(http_error_msg, response=self)<br>HTTPError: 404 Client Error: Not Found for url: <a href="http://localhost:8088/ari/channels/1480481858.18" class="external-link" rel="nofollow" style="color:rgb(25,46,132);text-decoration:none">http://localhost:8088/ari/channels/1480481858.18</a><br><br></font></pre><pre style="margin-top:10px;margin-bottom:0px;padding:0px;color:rgb(51,51,51);font-size:14px"><font face="monospace, monospace">Channel SIP/bigyan_linphone-00000009 just left our application</font></pre><p style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:14px"> </p><p style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:14px">And here's the output from asterisk:</p><pre style="margin-top:10px;margin-bottom:0px;padding:0px;color:rgb(51,51,51);font-size:14px"><font face="monospace, monospace">== Using SIP RTP CoS mark 5<br> -- Executing [1000@aritesta:1] NoOp("SIP/bigyan_linphone-0000000b", "") in new stack<br> -- Executing [1000@aritesta:2] Answer("SIP/bigyan_linphone-0000000b", "") in new stack<br> > 0x7f040400fb80 -- Probation passed - setting RTP source address to <a href="http://192.168.1.66:7078">192.168.1.66:7078</a><br> -- Executing [1000@aritesta:3] Stasis("SIP/bigyan_linphone-0000000b", "hello") in new stack<br> -- <SIP/bigyan_linphone-0000000b> Playing 'tt-monkeys.gsm' (language 'en')</font></pre><pre style="margin-top:10px;margin-bottom:0px;padding:0px;color:rgb(51,51,51);font-size:14px"><font face="monospace, monospace">[Nov 30 10:42:41] WARNING[12777][C-00000009]: res_stasis_playback.c:250 playback_final_update: 1480481858.18: Playback failed for sound:tt-monkeys</font></pre><p style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-size:14px"><font face="monospace, monospace"> </font></p><p style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:14px">How exactly can I handle this? A code example would be very helpful.</p><p style="margin:10px 0px 0px;padding:0px;color:rgb(51,51,51);font-family:"helvetica neue",helvetica,arial,sans-serif;font-size:14px">Thanks.</p></div>