-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Baikal Caldav and Asterisk #1085
Comments
You just posted your server url, the hash of the admin password and the salt together. I would strongly recommend changing your password. Are you using Baikal without https? The dav protocol is unencrypted, so your events/contacts travel in plain text through random WiFi networks that you connect your phone to. About the actual error: Could you please post the stack trace, which should be printed to your php/Apache/nginx logs? |
Damnit, I thought I've deleted them. Thank you for the heads up and I changed all PWDs. It is a test environment anyway. Access-log:
Error-log:
I have no idea where the string "Australia/Sydney" is coming from in the input stream. Obviously it is my configured timezone but it is not transferred from ASTERISK to baikal... |
What php version do you use on your server? |
php --versionPHP 7.4.6 (cli) ( NTS ) |
I had a similar error. I don't know why it happens but here is a sloppy workaround: In Sabre/CalDAV/Plugin on line 513 the function calendarQueryReport() tries to get the timezone via: |
Thanks @c0monoid, fixed it with your solution (I changed it at three different functions in that file) - this is still an issue in 0.9.3 - is this release nearly a year old? Anyone going to fix this and create a new release? |
This seems to cause a similar problem with Home Assistant integration |
I hade the same issue and noticed that I was not getting the error on calendars that were created by iCal (the MacOS Calendar app). I checked in the Baikal web interface and noticed that for calendars created by iCal the timezone field was set differently than those calendars created by Baikal. So a temporary fix is to recreate your calendar via iCal which is very easy by creating a new calendar in iCal and then right-clicking your old calendar and selecting "Merge" which will delete the old calendar and move all events to the new one. Opened an issue to fix the problem in Baikal here: #1241 |
@apollo-sturdy Can you share an example of what iCal writes to the "cal:calendar-timezone"? |
Sure. Here's an example: |
@apollo-sturdy Thanks a lot. I put it into the database manually and it also shows up when visiting my Baikal calendar's url in the browser: |
Hmm in that case I'm not sure. Maybe you have a separate issue going on. Have you checked baikal and calcoms logs? |
@apollo-sturdy Couldn't find any useful logs from Baikal (only that REPORT requests where received) and for my cal.com setup i found weird debug outputs like
I use completely unmodified versions of Baikal and cal.com though. So there should be nothing special about my setup. Any suggestions or ideas? Baikal is officially listed by cal.com to work together and they don't :/ |
For what it's worth I'm running this docker image of baikal and cal.com both via Tipi. Not really sure how else to help. Sorry! |
Thanks, I installed the docker version of Baikal and completely reinstalled the docker version of cal.com but the problem still exists. Can you tell me which versions of Baikal and cal.com you use. There obviously is a combination that actually works. 👍 |
Hey. I'm using the latest versions from tipi, so would be: |
Updating calendarinstances.timezone directly in the database using the example provided by @apollo-sturdy fixed an issue I had been struggling with for a long time. I can now see my Baikal calendars in Home Assistant. Thank you!!! |
Baikal version: 0.9.1
Expected behaviour: Asterisk reads current and upcoming events from calendar
Current behaviour: Error-Message 501 Internal Server error, This parser only supports VCARD and VCALENDAR
Steps to reproduce:
Use tcpdump to sniff packets between asterisk and baikal, i.e.
tcpdump -i lo port 80
read return packet from server


config/baikal.yaml
The string Australia/Sydney does not appear in any data packet sent from asterisk.
Other access to the calendar (thunderbird, android) works fine
The text was updated successfully, but these errors were encountered: