Summary: | ASTERISK-02243: agi stream file randomly exits with: "ast_waitstream_full: Wait failed (No such file or directory)" message. | ||
Reporter: | maciejka (maciejka) | Labels: | |
Date Opened: | 2004-08-20 05:03:37 | Date Closed: | 2011-06-07 14:10:42 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | I've got test agi that plays beep.gsm file a few times. The problem is that it stops after streaming random number of beeps with message: "ast_waitstream_full: Wait failed (No such file or directory)" message." File exists as you can see below: Aug 20 11:42:47 DEBUG[147465]: chan_iax2.c:5156 socket_read: Ooh, voice format changed to 2 -- Accepting unauthenticated call from 192.168.0.3, requested format = 2, actual format = 2 -- Executing Answer("IAX2/kamyk@kamyk/6", "") in new stack -- Executing AGI("IAX2/kamyk@kamyk/6", "test.py") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/test.py ARGS: ['/var/lib/asterisk/agi-bin/test.py'] ENV LINE: agi_request: test.py ENV LINE: agi_channel: IAX2/kamyk@kamyk/6 ENV LINE: agi_language: en ENV LINE: agi_type: IAX2 ENV LINE: agi_uniqueid: 1092994968.29 ENV LINE: agi_callerid: "kamyk" <kamyk> ENV LINE: agi_dnid: 5 ENV LINE: agi_rdnis: unknown ENV LINE: agi_context: default ENV LINE: agi_extension: 5 ENV LINE: agi_priority: 2 ENV LINE: agi_enhanced: 0.0 ENV LINE: agi_accountcode: ENV LINE: class AGI: self.env = {'agi_accountcode': '', 'agi_callerid': '"kamyk" <kamyk>', 'agi_channel': 'IAX2/kamyk@kamyk/6', 'agi_context': 'default', 'agi_dnid': '5', 'agi_enhanced': '0.0', 'agi_extension': '5', 'agi_language': 'en', 'agi_priority': '2', 'agi_rdnis': 'unknown', 'agi_request': 'test.py', 'agi_type': 'IAX2', 'agi_uniqueid': '1092994968.29'} COMMAND: stream file beep "" 0 Aug 20 11:42:49 DEBUG[147465]: chan_iax2.c:5156 socket_read: Ooh, voice format changed to 2 Aug 20 11:42:49 DEBUG[704526]: sched.c:221 sched_settime: Request to schedule in the past?!?! Aug 20 11:42:49 DEBUG[704526]: sched.c:221 sched_settime: Request to schedule in the past?!?! RESULT_LINE: 200 result=0 endpos=4160 RESULT_DICT: {'result': ('0', ''), 'endpos': ('4160', '')} COMMAND: stream file beep "" 0 Aug 20 11:42:49 WARNING[704526]: file.c:1005 ast_waitstream_full: Wait failed (No such file or directory) == Spawn extension (default, 5, 2) exited non-zero on 'IAX2/kamyk@kamyk/6' Aug 20 11:42:49 DEBUG[704526]: chan_iax2.c:2335 iax2_hangup: We're hanging up IAX2/kamyk@kamyk/6 now... -- Hungup 'IAX2/kamyk@kamyk/6' RESULT_LINE: 200 result=-1 endpos=320 RESULT_DICT: {'result': ('-1', ''), 'endpos': ('320', '')} Traceback (most recent call last): File "/var/lib/asterisk/agi-bin/test.py", line 72, in ? agi.stream_file('beep') File "/var/lib/asterisk/agi-bin/pyst.py", line 199, in stream_file raise AGIException('Channel failure on channel %s' % self.env.get('agi_channel','UNKNOWN')) pyst.AGIException: Channel failure on channel IAX2/kamyk@kamyk/6 ****** ADDITIONAL INFORMATION ****** On another asterisk box, cvs version of 13th july everything is ok. | ||
Comments: | By: laureen (laureen) 2004-08-20 14:46:35 I've tested it with Kernel 2.6.7 and Kernel 2.6.8, this could be the problem... same results on kernels later than 2.4.22! Regards, Roland Zagler By: Brian West (bkw918) 2004-08-22 23:00:11 post your agi... this must be an issue with your script and not asterisk as we use agi DAILY without issues. By: Mark Spencer (markster) 2004-08-23 10:31:05 If not your actual AGI, at least an AGI which demonstrates the problem so we can try to duplicate it. By: maciejka (maciejka) 2004-09-02 11:02:27 Well, I can't replicate the problem any longer. Same versions of asterisk and AGI. By: Brian West (bkw918) 2004-09-02 11:59:29 Can't reproduce. |