Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing

2011-08-14 Thread Tzafrir Cohen
On Fri, Aug 12, 2011 at 04:32:09PM +0100, Roger Burton West wrote:
 On Fri, Aug 12, 2011 at 12:27:45PM -0300, equis software wrote:
 Yes, same server, same filesystem...
 
 I don't do Python, but a web search for shutil.move suggests that it
 doesn't reliably use the rename syscall. Might be worth shelling out
 to your system's mv command.

Or better: run it under strace and verify it does.

-- 
   Tzafrir Cohen
icq#16849755  jabber:tzafrir.co...@xorcom.com
+972-50-7952406   mailto:tzafrir.co...@xorcom.com
http://www.xorcom.com  iax:gu...@local.xorcom.com/tzafrir

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing

2011-08-12 Thread Roger Burton West
On Fri, Aug 12, 2011 at 12:23:22PM -0300, equis software wrote:

shutil.move('/var/tmp/1.call','/var/spool/asterisk/outgoing/1.call')

Are both /var/tmp and /var/spool/asterisk/outgoing on the same
filesystem?


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing

2011-08-12 Thread equis software
Yes, same server, same filesystem...

On Fri, Aug 12, 2011 at 12:26 PM, Roger Burton West ro...@firedrake.orgwrote:

 On Fri, Aug 12, 2011 at 12:23:22PM -0300, equis software wrote:

 shutil.move('/var/tmp/1.call','/var/spool/asterisk/outgoing/1.call')

 Are both /var/tmp and /var/spool/asterisk/outgoing on the same
 filesystem?


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing

2011-08-12 Thread Roger Burton West
On Fri, Aug 12, 2011 at 12:27:45PM -0300, equis software wrote:
Yes, same server, same filesystem...

I don't do Python, but a web search for shutil.move suggests that it
doesn't reliably use the rename syscall. Might be worth shelling out
to your system's mv command.

R

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing

2011-08-12 Thread Danny Nicholas
Also, keep in mind that the spooling mechanism has mechanical limits based
on processor speed, line capacity, etc.  If I were doing 500 calls, I would
use sleep to space the starting of the calls (maybe 5 or 15 second
intervals).

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Roger Burton
West
Sent: Friday, August 12, 2011 10:32 AM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing

On Fri, Aug 12, 2011 at 12:27:45PM -0300, equis software wrote:
Yes, same server, same filesystem...

I don't do Python, but a web search for shutil.move suggests that it
doesn't reliably use the rename syscall. Might be worth shelling out
to your system's mv command.

R

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing

2011-08-12 Thread equis software
I made 500 calls but not simultaneously. My script checks that there
are no more
than 3 .call files in the outgoing.

I change in my python script, now move file with os.system...
import os
os.system (mv+   + tmpFile +   + callFile)

see what happens...


On Fri, Aug 12, 2011 at 12:40 PM, Danny Nicholas da...@debsinc.com wrote:

 Also, keep in mind that the spooling mechanism has mechanical limits
 based
 on processor speed, line capacity, etc.  If I were doing 500 calls, I would
 use sleep to space the starting of the calls (maybe 5 or 15 second
 intervals).

 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Roger Burton
 West
 Sent: Friday, August 12, 2011 10:32 AM
 To: asterisk-users@lists.digium.com
 Subject: Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing

 On Fri, Aug 12, 2011 at 12:27:45PM -0300, equis software wrote:
 Yes, same server, same filesystem...

 I don't do Python, but a web search for shutil.move suggests that it
 doesn't reliably use the rename syscall. Might be worth shelling out
 to your system's mv command.

 R

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing

2011-08-12 Thread Danny Nicholas
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.

 

From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of equis software
Sent: Friday, August 12, 2011 11:06 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing

 

I made 500 calls but not simultaneously. My script checks that there are no
more than 3 .call files in the outgoing.

I change in my python script, now move file with os.system...
import os
os.system (mv+   + tmpFile +   + callFile)

see what happens...



On Fri, Aug 12, 2011 at 12:40 PM, Danny Nicholas da...@debsinc.com wrote:

Also, keep in mind that the spooling mechanism has mechanical limits based
on processor speed, line capacity, etc.  If I were doing 500 calls, I would
use sleep to space the starting of the calls (maybe 5 or 15 second
intervals).

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Roger Burton
West
Sent: Friday, August 12, 2011 10:32 AM
To: asterisk-users@lists.digium.com
Subject: Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing


On Fri, Aug 12, 2011 at 12:27:45PM -0300, equis software wrote:
Yes, same server, same filesystem...

I don't do Python, but a web search for shutil.move suggests that it
doesn't reliably use the rename syscall. Might be worth shelling out
to your system's mv command.

R

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

 

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing

2011-08-12 Thread Hakan C
 Hello,

Check if file is owned by asterisk user.
Also, don't directly create in to /var/spool/asterisk/outgoing/
Create in somewhere else first and then move file to outgoing folder.

Good luck.

On Fri, Aug 12, 2011 at 7:09 PM, Danny Nicholas da...@debsinc.com wrote:

 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.

 ** **

 *From:* asterisk-users-boun...@lists.digium.com [mailto:
 asterisk-users-boun...@lists.digium.com] *On Behalf Of *equis software
 *Sent:* Friday, August 12, 2011 11:06 AM
 *To:* Asterisk Users Mailing List - Non-Commercial Discussion

 *Subject:* Re: [asterisk-users] .call files in
 /var/spool/asterisk/outgoing

 ** **

 I made 500 calls but not simultaneously. My script checks that there are
 no more than 3 .call files in the outgoing.

 I change in my python script, now move file with os.system...
 import os
 os.system (mv+   + tmpFile +   + callFile)

 see what happens...

 

 On Fri, Aug 12, 2011 at 12:40 PM, Danny Nicholas da...@debsinc.com
 wrote:

 Also, keep in mind that the spooling mechanism has mechanical limits
 based
 on processor speed, line capacity, etc.  If I were doing 500 calls, I would
 use sleep to space the starting of the calls (maybe 5 or 15 second
 intervals).

 -Original Message-
 From: asterisk-users-boun...@lists.digium.com
 [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Roger Burton
 West
 Sent: Friday, August 12, 2011 10:32 AM
 To: asterisk-users@lists.digium.com
 Subject: Re: [asterisk-users] .call files in /var/spool/asterisk/outgoing*
 ***


 On Fri, Aug 12, 2011 at 12:27:45PM -0300, equis software wrote:
 Yes, same server, same filesystem...

 I don't do Python, but a web search for shutil.move suggests that it
 doesn't reliably use the rename syscall. Might be worth shelling out
 to your system's mv command.

 R

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

 ** **

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users