Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Is it possible to set a timeout when querying a calendar ?


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
oza.4h07 at gmail.com
Guest





PostPosted: Tue Jun 21, 2016 5:18 am    Post subject: [asterisk-users] Is it possible to set a timeout when queryi Reply with quote

Hello,


Asterisk offers several ways to query an external calendar.
I'm wondering what could happen if an external calendar was down or very slow to respond.


Looking at wiki.asterisk.org, I didn't find any timeout parameter in calendar functions, nor in calendar.conf (but I'm not too sure for the later case) ?


What would you suggest to protect your dialplan from a mis-behaving external calendar ?


Best regards
Back to top
gmludo at gmail.com
Guest





PostPosted: Thu Jun 23, 2016 4:14 pm    Post subject: [asterisk-users] Is it possible to set a timeout when queryi Reply with quote

2016-06-21 12:18 GMT+02:00 Olivier <oza.4h07@gmail.com (oza.4h07@gmail.com)>:
Quote:
Hello,


Asterisk offers several ways to query an external calendar.
I'm wondering what could happen if an external calendar was down or very slow to respond.


Looking at wiki.asterisk.org, I didn't find any timeout parameter in calendar functions, nor in calendar.conf (but I'm not too sure for the later case) ?


What would you suggest to protect your dialplan from a mis-behaving external calendar ?




Maybe somebody else has a better pattern, but for now, I've implemented a middleware to fetch ics calendar and store that in folders served by a Nginx.
Asterisk retrieves ical directly on localhost.


Two advantages:
1. Asterisk don't waste CPU time to retrieve data.
2. If the calendar source is down, it's invisible from Asterisk.


However, the main issue is that I didn't find a way to force Asterisk to purge its cache and reload a specific calendar.
I play with timeouts to avoid to be too much in delay with the latest version available of ical.


Have a nice day.
 
Quote:


Best regards



--
_____________________________________________________________________
-- 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
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services