ARI: exception when I hangup the call while a sound file is playing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

 

Output from channel-playback-monkeys.py:

(aripython) ➜ python 04-channel-playback-monkeys.py
Monkeys! Attack SIP/bigyan_linphone-00000009!

ERROR:ari.client:Event listener threw exception
Traceback (most recent call last):
File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/ari/client.py", line 100, in __run
callback(msg_json, *args, **kwargs)
File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/ari/client.py", line 198, in extract_objects
event_cb(obj, event, *args, **kwargs)
File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/ari/model.py", line 181, in fn_filter
fn(objects, event, *args, **kwargs)
File "04-channel-playback-monkeys.py", line 24, in playback_finished
channel = client.channels.get(channelId=channel_id)
File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/ari/model.py", line 62, in <lambda>
return lambda **kwargs: promote(self.client, oper(**kwargs), oper.json)
File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/ari/model.py", line 354, in promote
resp.raise_for_status()
File "/home/bigyan/Envs/aripython/local/lib/python2.7/site-packages/requests/models.py", line 884, in raise_for_status
raise HTTPError(http_error_msg, response=self)
HTTPError: 404 Client Error: Not Found for url: http://localhost:8088/ari/channels/1480481858.18

Channel SIP/bigyan_linphone-00000009 just left our application

 

And here's the output from asterisk:

== Using SIP RTP CoS mark 5
-- Executing [1000@aritesta:1] NoOp("SIP/bigyan_linphone-0000000b", "") in new stack
-- Executing [1000@aritesta:2] Answer("SIP/bigyan_linphone-0000000b", "") in new stack
> 0x7f040400fb80 -- Probation passed - setting RTP source address to 192.168.1.66:7078
-- Executing [1000@aritesta:3] Stasis("SIP/bigyan_linphone-0000000b", "hello") in new stack
-- <SIP/bigyan_linphone-0000000b> Playing 'tt-monkeys.gsm' (language 'en')
[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

 

How exactly can I handle this? A code example would be very helpful.

Thanks.

_______________________________________________
asterisk-app-dev mailing list
asterisk-app-dev@xxxxxxxxxxxxxxxx
http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev

[Index of Archives]     [Asterisk SS7]     [Asterisk Announcements]     [Asterisk Users]     [PJ SIP]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Linux API]

  Powered by Linux