[Asterisk-Users] Extreme delay before * processes call files

2006-04-27 Thread Remco Barende

Hi list!

I'm using Asterisk 1.2.7.1. with FreePBX 2.0.1 on a CentOS 3.7 box.
On the * box I also have a samba share where our CRM app can dump call 
files and a cron script is moving the call files every second to the 
asterisk directory.


Everything goes really quickly, the call file is placed on the samba share 
and very quickly moved to the asterisk dir, so far so good.


But then the call file just keeps sitting in the 
/var/spool/asterisk/outgoing  directory and it seems that * is doing 
nothing with it?? Only after 10-30 seconds sometimes even much longer the 
call file is picked up.


There is no message on the * console about a call file being present.

Does anyone have a clue why asterisk fails to pick up call files 
within a reasonable amount of time? The load on the box is 0.05 at most.


Thanks!!
Remco
___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [Asterisk-Users] Extreme delay before * processes call files

2006-04-27 Thread Jay Milk

Remco Barende wrote:

Hi list!

I'm using Asterisk 1.2.7.1. with FreePBX 2.0.1 on a CentOS 3.7 box.
On the * box I also have a samba share where our CRM app can dump call 
files and a cron script is moving the call files every second to the 
asterisk directory.


Everything goes really quickly, the call file is placed on the samba 
share and very quickly moved to the asterisk dir, so far so good.


But then the call file just keeps sitting in the 
/var/spool/asterisk/outgoing  directory and it seems that * is doing 
nothing with it?? Only after 10-30 seconds sometimes even much longer 
the call file is picked up.
Are you *sure* you set up cron to run every second?  I'm not aware of 
any official way to schedule cron-jobs more than once per minute... and 
that would probably explain what you're seeing.

___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [Asterisk-Users] Extreme delay before * processes call files

2006-04-27 Thread Luki
  But then the call file just keeps sitting in the
  /var/spool/asterisk/outgoing  directory and it seems that * is doing
  nothing with it?? Only after 10-30 seconds sometimes even much longer
  the call file is picked up.

Check if the system times are in sync; if you copy a file with samba,
the timestamp on the file is set by the samba client (Windows?). If
the client's time is in the future (compared to the * server time) the
call file won't be run until the server time catches up. You can just
have the server touch the call file before moving it to the spool
directory; this will update the timestamp to the current time. Give it
a shot.

Luki
___
--Bandwidth and Colocation provided by Easynews.com --

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