I cannot move any file into "/var/spool/asterisk/outgoing"

I cannot move any file into “/var/spool/asterisk/outgoing”.
I’m trying to make Auto-Dial out, but I’m stuck in move my call file into OutGoing directory. Please help me!!!

Show us exactly how you are doing that and what is the failure.

I sent “hello-world.call” into "/var/spool/asterisk/tmp"
I used cmd " chmod 777 hello-world.call
Then I move it into outgoing by this cmd "cp hello-world.call /var/spool/asterisk/outgoing"
But when I check, the hello-world.call file is not appear in Outgoing directory.

You want to move (mv) the file, not copy (cp).

Both mv and cp are not work.

I suspect your files are being moved and Asterisk runs then deletes them before you see it.

How can I fix it, sir?

If I am right, there is nothing to fix, as it’s not broken. Use the .call file param that moves completed files to another folder, I can’t remember what it is.

If I move .call file to another diretory, will it work?

Let me simplify what seems to be some confusion.

  • You create the file in /tmp
  • Set the permissions as you are now.
  • Set the time and date on the file to 2 minutes in the future (using appropriate Unix commands). If you don’t set the date and time in the future, Asterisk will execute and delete the file instantly.
  • Move the to the outgoing directory.
  • Check and make sure it’s there.
  • At the “top of the minute” watch it disappear.

If the move doesn’t work. the file will not be there (it will work).

If the call doesn’t get placed, the problem is in your call file.

1 Like

Thanks you guys. I finally made a simple call. But now I’m thinking about, what kind of sound file they accept.

Stick with mono, signed 16kHz sample rate 8bit .wav files , they must be readable by asterisk user.

1 Like

Thanks all!!! :grinning: