[Asterisk-Users] Re: Placing call files in /var/spool/asterisk/outgoing/ does not work

Tony Mountifield tony at softins.clara.co.uk
Thu May 25 03:23:02 MST 2006


In article <20060524132651.GJ1253 at cohens.org.il>,
Tzafrir Cohen <tzafrir at cohens.org.il> wrote:
> On Wed, May 24, 2006 at 03:06:54PM +0200, Maxim Vexler wrote:
> > Hello everyone
> > 
> > I'm trying to make asterisk get a call out using the .call system.
> > The setup is A at H 2.6
> > 
> > This is the content of the file is :
> > <<<
> > Channel: Zap/g0/052MYPHONE
> > MaxRetries: 2
> > RetryTime: 60
> > WaitTime: 30
> > #
> > # Assuming that your local extensions are kept in the
> > #  context called [extensions]
> > #
> > Context: ext-local
> > Extension: 210
> > Priority: 1
> > >>>
> > 
> > I'm coping (as root) from /root/call to 
> > /var/spool/asterisk/outgoing/max.call
> 
> you should mv the file (and in the same filesystem, so 'rename' is used)

True.

> > This is what tunes up in the console :
> > <<<
> > May 24 08:57:27 WARNING[10618]: pbx_spool.c:347 scan_service: Unable
> > to open /var/spool/asterisk/outgoing/max.call: Permission denied,
> > deleting
> > May 24 08:57:27 WARNING[10618]: pbx_spool.c:389 scan_thread: Failed to
> > scan service '/var/spool/asterisk/outgoing/max.call'
> > >>>
> > 
> > What am I doing wrong ?
> 
> Letting asterisk read it before it is complete.

That's not what "Permission denied" suggests.

I don't know AAH, but if it runs asterisk as a non-root user, then it
is necessary to chown the call file to the user under which asterisk
runs, before moving it into the outgoing directory. Or to chmod it
to 666.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list