Problems with .call file


#1

Hello everybody, I’m new of this forum and I have a problem.

I would like to make an auto dial deliver message with my asterisk server. I follw this guide:

voip-info.org/wiki-Asterisk+ … er+message

I record with success the message but when I create the call file and place it in the /var/spool/asterisk/outgoing directory nothin happens. Can anyone help me? The call file that I create is the following:

Channel: SIP/201
Callerid: 200
MaxRetries: 5
RetryTime: 300
WaitTime: 45
Context: outboundmsg1
Extension: s
Priority: 1

I would like to call the SIP 201 user that is on my local network.


#2

problems with .call files usually mean permissions problems. try changing the owner and group to your asterisk user (asterisk:asterisk ??) before moving it into the spool directory.


#3

Thank you for the answer. I had already try but nothing change.


#4

I see in the log file thi problems:

Dec 19 03:14:56 DEBUG[26518] manager.c: Manager received command ‘Command’
Dec 19 03:15:39 WARNING[2694] pbx_spool.c: Unable to set utime on /var/spool/asterisk/outgoing/temp01: Operation not permitted
Dec 19 03:15:39 VERBOSE[26939] logger.c: – Attempting call on SIP/250 for s@outboundmsg1:1 (Retry 1)
Dec 19 03:15:39 NOTICE[26939] channel.c: Unable to request channel SIP/250
Dec 19 03:15:39 DEBUG[26939] cdr_addon_mysql.c: cdr_mysql: inserting a CDR record.
Dec 19 03:15:39 DEBUG[26939] cdr_addon_mysql.c: cdr_mysql: SQL command as follows: INSERT INTO cdr (calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid) VALUES (‘2005-12-19 03:15:39’,’’,’’,‘s’,‘default’, ‘Unkown’,’’,’’,’’,0,0,‘FAILED’,3,’’,‘1134980139.4’)
Dec 19 03:15:39 NOTICE[26939] pbx_spool.c: Call failed to go through, reason 0

How can I fix it?


#5

how are you putting your .call files in the spool directory ? can you post the code that you’re using ?


#6

I resolve. I’have reinstalled asterisk and now all works. Thank you anyway.