Hello,<br><br>Check if file is owned by "asterisk" user.<br>Also, don't directly create in to /var/spool/asterisk/outgoing/<br>Create in somewhere else first and then move file to outgoing folder.<br><br>Good luck.<br>
<br><div class="gmail_quote">On Fri, Aug 12, 2011 at 7:09 PM, Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Another thought – when a call in /V/S/A/O fails, the file gets appended with call info and retry occurs. You might want to write a second Python script to check for and possibly purge failed call files.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><u></u> <u></u></span></p><p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b>On Behalf Of </b>equis software<br>
<b>Sent:</b> Friday, August 12, 2011 11:06 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<div><div></div><div class="h5"><br><b>Subject:</b> Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing<u></u><u></u></div>
</div></span></p><div><div></div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal" style="margin-bottom: 12pt;"><span><span lang="EN">I made</span></span><span lang="EN"> <span>500 calls</span> <span>but not simultaneously.</span> <span>My</span> <span>script</span> <span>checks that</span> <span>there are no</span> <span>more than</span> <span>3 .call</span> files <span>in the "</span>outgoing"</span>.<br>
<br>I change in my python script, now move file with os.system...<br>import os<br>os.system ("mv"+ " " + tmpFile + " " + callFile)<br><br><span><span lang="EN">see what happens...</span></span><br>
<br><u></u><u></u></p><div><p class="MsoNormal">On Fri, Aug 12, 2011 at 12:40 PM, Danny Nicholas <<a href="mailto:danny@debsinc.com" target="_blank">danny@debsinc.com</a>> wrote:<u></u><u></u></p><p class="MsoNormal">
Also, keep in mind that the spooling mechanism has "mechanical limits" based<br>on processor speed, line capacity, etc. If I were doing 500 calls, I would<br>use sleep to space the starting of the calls (maybe 5 or 15 second<br>
intervals).<br><br>-----Original Message-----<br>From: <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a><br>[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Roger Burton<br>
West<br>Sent: Friday, August 12, 2011 10:32 AM<br>To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>Subject: Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing<u></u><u></u></p>
<div><div><p class="MsoNormal"><br>On Fri, Aug 12, 2011 at 12:27:45PM -0300, equis software wrote:<br>>Yes, same server, same filesystem...<br><br>I don't do Python, but a web search for shutil.move suggests that it<br>
doesn't reliably use the "rename" syscall. Might be worth shelling out<br>to your system's mv command.<br><br>R<br><br>--<br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br>--<br>_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>New to Asterisk? Join us for a live introductory webinar every Thurs:<br> <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><u></u><u></u></p>
</div></div></div><p class="MsoNormal"><u></u> <u></u></p></div></div></div></div><br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>