Hi list, I'm using asterisk to send alerts via phone or fax, by using the spool functionnality (writing files in /var/spool/asterisk/outgoing). The system works, but sometimes a file in the outgoing directory is simply ignored by asterisk (nothing on the cli); the spool file is correct. It happenned only twice since the system is installed (about two months), but since it is an alert sytem it is disturbing. Has anyone had a similar problem and found the origin and a solution. This is with stable branch of asterisk and bristuff, starting a few of months ago at 1.0.4. Thanks, -- Jean-Denis Girard SysNux Syst?mes Linux en Polyn?sie fran?aise http://www.sysnux.pf/ T?l: +689 483 527 / GSM: +689 797 527
trixter http://www.0xdecafbad.com
2005-May-15 12:05 UTC
[Asterisk-Users] Outgoing spool file ignored
How do you create them? There is a race condition with asterisk and the spool where if you create the file or copy it into the queue directory asterisk tries to read and parse the file before you have finished writing it. A suggested method instead is to create it on the same partition then move it into the appropriate directory to prevent this from occuring. On Sun, 2005-05-15 at 08:14 -1000, Jean-Denis Girard wrote:> Hi list, > > I'm using asterisk to send alerts via phone or fax, by using the spool > functionnality (writing files in /var/spool/asterisk/outgoing). The > system works, but sometimes a file in the outgoing directory is simply > ignored by asterisk (nothing on the cli); the spool file is correct. > It happenned only twice since the system is installed (about two > months), but since it is an alert sytem it is disturbing. > > Has anyone had a similar problem and found the origin and a solution. > This is with stable branch of asterisk and bristuff, starting a few of > months ago at 1.0.4. > > > Thanks,-- Trixter http://www.0xdecafbad.com UK +44 870 340 4605 Germany +49 801 777 555 3402 US +1 360 207 0479 or +1 516 687 5200 FreeWorldDialup: 635378 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050515/d617ffd4/attachment.pgp
Eric Wieling aka ManxPower
2005-May-16 09:13 UTC
[Asterisk-Users] Outgoing spool file ignored
trixter http://www.0xdecafbad.com wrote:> How do you create them? > > There is a race condition with asterisk and the spool where if you > create the file or copy it into the queue directory asterisk tries to > read and parse the file before you have finished writing it. A > suggested method instead is to create it on the same partition then move > it into the appropriate directory to prevent this from occuring.Create the file somwhere else. Set the mtime (I think) to sometime in the future. Move the file to /var/spool/asterisk/ourgoing. Change the mtime to the current time or some time in the past. -- Always do right. This will gratify some people and astonish the rest. Mark Twain
Eric Wieling aka ManxPower a ?crit :> trixter http://www.0xdecafbad.com wrote: > >> How do you create them? >> >> There is a race condition with asterisk and the spool where if you >> create the file or copy it into the queue directory asterisk tries to >> read and parse the file before you have finished writing it. A >> suggested method instead is to create it on the same partition then move >> it into the appropriate directory to prevent this from occuring. > > > Create the file somwhere else. Set the mtime (I think) to sometime in > the future. Move the file to /var/spool/asterisk/ourgoing. Change the > mtime to the current time or some time in the past. >Thanks, I will try that. Difficulty is that it happenned only twice in the last couple of months, so it will be difficult to know if it is solved or not. Jean-Denis