Re: [asterisk-users] Call files without permission for asterisk to read
You could save the call file initially to /var/spool/asterisk/tmp, then adjust the permissions as needed and necessary. Finally copy the call file into the outgoing directory. This also minimizes the chance that Asterisk tries to execute a partial file, although I don't know whether one still has to take care of issues like that. jg -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Call files without permission for asterisk to read
See https://wiki.asterisk.org/wiki/display/AST/Asterisk+Call+Files Especially the parts about creating the files in a different directory and the parts about the scheduling call files. -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Rizwan Hisham Sent: Thursday, November 21, 2013 11:05 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Call files without permission for asterisk to read Hi all, I am syncing call files on my secondary asterisk server but without permission to read for asterisk. So they should be executed when I grant the right permissions (thats when my primary asterisk server crashes or shutsdown somehow). But asterisk only tries to read the file at the time of placing the file. So when i grant right permissions nothing happens. Is there any workaround to this problem? I need to continue the execution of call files on secondary server if primary server fails. The call files are suppose to retry for 45 mins if the call does not get connected. Thanks in advance. -- Best Ragards Rizwan H Qureshi V: +971 (0) 528272154 linkedin.com/in/rhqureshi -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Call files without permission for asterisk to read
On Thu, 21 Nov 2013, Rizwan Hisham wrote: Hi all,I am syncing call files on my secondary asterisk server but without permission to read for asterisk. So they should be executed when I grant the right permissions (thats when my primary asterisk server crashes or shutsdown somehow). But asterisk only tries to read the file at the time of placing the file. So when i grant right permissions nothing happens. Is there any workaround to this problem? When you activate the secondary, 'touch' the files in the spool directory. -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Call files without permission for asterisk to read
Have you tried to restart asterisk after setting the correct permissions? HTH, Ioan On Thu, Nov 21, 2013 at 6:04 PM, Rizwan Hisham rizwanhas...@gmail.comwrote: Hi all, I am syncing call files on my secondary asterisk server but without permission to read for asterisk. So they should be executed when I grant the right permissions (thats when my primary asterisk server crashes or shutsdown somehow). But asterisk only tries to read the file at the time of placing the file. So when i grant right permissions nothing happens. Is there any workaround to this problem? I need to continue the execution of call files on secondary server if primary server fails. The call files are suppose to retry for 45 mins if the call does not get connected. Thanks in advance. -- Best Ragards Rizwan H Qureshi V: +971 (0) 528272154 linkedin.com/in/rhqureshi -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Call files without permission for asterisk to read
Looking at Eric Wieling's response and the wiki entry he mentioned, the precaution is still necessary. jg -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Call files without permission for asterisk to read
On Thu, 21 Nov 2013, jg wrote: Finally copy the call file into the outgoing directory. This also minimizes the chance that Asterisk tries to execute a partial file... 'mv' not 'cp' Also, create the file on the same filesystem as the spool directory so 'mv' isn't silently 'promoted' to 'cp.' -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Call files without permission for asterisk to read
Thanks for the responses. Touching a file after setting permissions does not work. Asterisk only looks at the new file only, not all the files in the directory. Restarting asterisk does work, but dont want to do this. Best way i think would be, as suggested by JG, to sync in a tmp directory and at the time of switch-over mv to outgoing directory. Cheers On Fri, Nov 22, 2013 at 12:36 AM, Steve Edwards asterisk@sedwards.comwrote: On Thu, 21 Nov 2013, Rizwan Hisham wrote: Hi all,I am syncing call files on my secondary asterisk server but without permission to read for asterisk. So they should be executed when I grant the right permissions (thats when my primary asterisk server crashes or shutsdown somehow). But asterisk only tries to read the file at the time of placing the file. So when i grant right permissions nothing happens. Is there any workaround to this problem? When you activate the secondary, 'touch' the files in the spool directory. -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- Best Ragards Rizwan H Qureshi V: +971 (0) 528272154 linkedin.com/in/rhqureshi -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users