[asterisk-dev] [Code Review] pbx_spool unable to load call files in 1.8.0-beta4 and trunk

Michael Keuter lists at mksolutions.info
Mon Aug 30 16:51:34 CDT 2010


>-----------------------------------------------------------
>This is an automatically generated e-mail. To reply, visit:
>https://reviewboard.asterisk.org/r/882/
>-----------------------------------------------------------
>
>Review request for Asterisk Developers.
>
>
>Summary
>-------
>
>With inotify, pbx_spool was reading files submitted to the spool 
>before the operating system had a chance to finish writing the file. 
>A sleep time of half a second was added between getting notified of 
>a spool file and attempting to open it to fix this issue.
>
>>From mantis issue #17924
>----------------------------------------
>While testing with 1.8beta, I always get the following errors, when 
>I try to use a call file:
>
>Aug 28 14:29:28 alix local0.warn asterisk[18174]: WARNING[18213]: 
>pbx_spool.c:250 in apply_outgoing: At least one of app or extension 
>must be specified, along with tech and dest in file 
>/var/spool/asterisk/outgoing/sample.call
>
>Aug 28 14:29:28 alix local0.warn asterisk[18174]: WARNING[18213]: 
>pbx_spool.c:407 in scan_service: Invalid file contents in 
>/var/spool/asterisk/outgoing/sample.call, deleting
>
>
>Diffs
>-----
>
>   /tags/1.8.0-beta4/pbx/pbx_spool.c 284277
>
>Diff: https://reviewboard.asterisk.org/r/882/diff
>
>
>Testing
>-------
>
>Tested on trunk-r284277, and 1.8.0-beta4.
>
>Thanks,
>
>Brett

Hi Brett,

I just tested the sleep approach patch, but with no success. Still 
the same error as above. The file gets immediately deleted:

mv /tmp/sample.call /var/spool/asterisk/outgoing/
mv: cannot preserve times of 
'/var/spool/asterisk/outgoing/sample.call': No such file or directory
mv: cannot preserve ownership of 
'/var/spool/asterisk/outgoing/sample.call': No such file or directory
mv: cannot preserve permissions of 
'/var/spool/asterisk/outgoing/sample.call': No such file or directory

Michael

http://www.mksolutions.info



More information about the asterisk-dev mailing list