[Asterisk-Users] Placing call files in

Philippe Lindheimer p_lindheimer at yahoo.com
Wed May 24 08:43:35 MST 2006


actually it sounds like a permission issue. You said you are doing it as root, but what is asterisk running as. I've found it is very sensitive, even to ownership. Make sure the owner:group is set to what Asterisk is running as before copying. Then, I've never had problems copying vs. moving - although I could imagine it might create problems in a race condition case.
   
  p

  From: Tzafrir Cohen <tzafrir at cohens.org.il>
To: asterisk-users at lists.digium.com
Date: Wed, 24 May 2006 09:26:51 -0400
Subject: Re: [Asterisk-Users] Placing call files in
/var/spool/asterisk/outgoing/ does not work

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)

> 
> 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.

-- Tzafrir

		
---------------------------------
Blab-away for as little as 1¢/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060524/8bb3bd3d/attachment.htm


More information about the asterisk-users mailing list