View previous topic :: View next topic |
Author |
Message |
rizwanhasham at gmail.com Guest
|
Posted: Thu Nov 21, 2013 11:06 am Post subject: [asterisk-users] Call files without permission for asterisk |
|
|
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 |
|
Back to top |
|
|
EWieling at nyigc.com Guest
|
Posted: Thu Nov 21, 2013 11:08 am Post subject: [asterisk-users] Call files without permission for asterisk |
|
|
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-bounces@lists.digium.com [mailto:asterisk-users-bounces@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 |
|
Back to top |
|
|
webaccounts at jgoettg... Guest
|
Posted: Thu Nov 21, 2013 11:41 am Post subject: [asterisk-users] Call files without permission for asterisk |
|
|
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 |
|
Back to top |
|
|
webaccounts at jgoettg... Guest
|
Posted: Thu Nov 21, 2013 11:44 am Post subject: [asterisk-users] Call files without permission for asterisk |
|
|
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 |
|
Back to top |
|
|
indreias at gmail.com Guest
|
Posted: Thu Nov 21, 2013 1:55 pm Post subject: [asterisk-users] Call files without permission for asterisk |
|
|
Have you tried to restart asterisk after setting the correct permissions?
HTH,
Ioan
On Thu, Nov 21, 2013 at 6:04 PM, Rizwan Hisham <rizwanhasham@gmail.com (rizwanhasham@gmail.com)> wrote:
Quote: | 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: [url=tel:%2B971%20%280%29%20528272154]+971 (0) 528272154[/url]
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
|
|
|
Back to top |
|
|
asterisk.org at sedwar... Guest
|
Posted: Thu Nov 21, 2013 3:35 pm Post subject: [asterisk-users] Call files without permission for asterisk |
|
|
On Thu, 21 Nov 2013, jg wrote:
Quote: | 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 sedwards@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 |
|
Back to top |
|
|
asterisk.org at sedwar... Guest
|
Posted: Thu Nov 21, 2013 3:36 pm Post subject: [asterisk-users] Call files without permission for asterisk |
|
|
On Thu, 21 Nov 2013, Rizwan Hisham wrote:
Quote: | 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 sedwards@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 |
|
Back to top |
|
|
rizwanhasham at gmail.com Guest
|
Posted: Fri Nov 22, 2013 2:50 am Post subject: [asterisk-users] Call files without permission for asterisk |
|
|
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.org@sedwards.com (asterisk.org@sedwards.com)> wrote:
Quote: | On Thu, 21 Nov 2013, Rizwan Hisham wrote:
Quote: | 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 sedwards@sedwards.com (sedwards@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 |
|
Back to top |
|
|
|