https://retellai.com/?utm_source=discord&utm_medium=seo logo
Why does the time format change with you call in o...
# ❓・ai-evy-support
p
@AI Evy Why does the time format change with you call in on the SIP. If I use the text chat or click talk to agent within the retell agent portal retell send the right time and format to cal.com to check and book appointments but as soon as I call in via the SIP it changed the format it is sending to cal.com
a
Thanks for tagging me @persona4107. I'll look through relevant sources and get back to you shortly.
### Answer Based on the available sources, I don't have specific information about time format differences between SIP calls and web/portal interactions with Cal.com integration. However, I can see from the Discord discussion that there are known issues with Cal.com appointment booking [(1) ]() . The Discord thread shows a user experiencing similar Cal.com booking issues where appointments appear to book successfully in Cal.com but the AI agent reports booking failures . The suggested solutions include adding
usernameList
with correct host information and double-checking time format and timezone . The sources indicate that Retell AI supports system default dynamic variables including
{{current_time}}
for current time in America/Los_Angeles format and
{{current_time_[timezone]}}
for specific timezones [(2) ]() . There's also a
{{call_type}}
variable that distinguishes between
web_call
or
phone_call
. For SIP-specific functionality, the platform supports Elastic SIP Trunking which connects Retell's VoIP with PSTN for inbound and outbound calls [(3) ]() [(4) ]() . When using this method, all telephony functionalities supported by Retell numbers should also be supported, assuming your telephony provider supports them [(4) ]() . Since this appears to be a specific technical issue with time formatting differences between call types, I'd recommend: Visit [Contact Sales]() or [) for technical support with this SIP-specific Cal.com integration issue. Would you like a general answer based o
n my knowledge instead?
​ To learn more, see the sources I considered: [[1] Cal.com Appointments](https://discord.com/channels/1186424376300679209/1358842036635173104) [[2] Platform Changelogs | Retell AI](https://www.retellai.com/changelog) [[3] AI in SIP Calling & Telephony Solutions | Retell AI](https://www.retellai.com/blog/integrating-ai-with-sip-trunking-and-modern-telephony) [[4] Custom Telephony Overview](https://docs.retellai.com/deploy/custom-telephony) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
@AI Evy The error I'm getting is {"error":"Error calling Cal Booking API: Axios Error: error code: ERR_BAD_REQUEST, error message: Request failed with status code 400\nresponse status: 400\nresponse data: [{\"message\":\"1\",\"data\":null},\"Attempting to book a meeting in the past.\"]"}
a
Thanks for the follow-up, @persona4107. I'll get back to you soon.
​ To learn more, see the sources I considered: [[1] Cal.com booking errors](https://discord.com/channels/1186424376300679209/1377380250954105064) [[2] Create Retell LLM](https://docs.retellai.com/api-references/create-retell-llm) ​
### Answer Based on the error message you're receiving, Cal.com is rejecting the booking because it believes you're "Attempting to book a meeting in the past." This aligns with your observation about time format differences between SIP calls and web/portal interactions. Looking at the available sources, I can see there are known Cal.com booking integration issues [(1) ]() . One user reported similar problems where the Cal.com booking integration would throw errors, and they resolved it by using "very detailed prompting to get the API structure for location set correctly, telling it explicitly to pass location.type and location.integration" . The Retell LLM configuration includes timezone settings for Cal.com bookings. In the documentation, you can see the timezone parameter in the book_appointment_cal tool configuration [(2) ]() :
Copy code
javascript
{
 "type": "book_appointment_cal",
 "name": "book_appointment",
 "description": "Book an annual check up.",
 "cal_api_key": "cal_live_xxxxxxxxxxxx",
 "event_type_id": 60444,
 "timezone": "America/Los_Angeles"
}
The issue you're experiencing suggests that when calls come through SIP, the time format or timezone handling may differ from web-based interactions. This could cause Cal.com to interpret the booking time as being in the past due to timezone conversion issues. Since this appears to be a specific technical issue with SIP-based time formatting, I'd recommend: Visit [Contact Sales]() or [) for technical support with this SIP-specific Cal.com integration issue. Would you like a general answer based on my knowledge instead?
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
@AI Evy Is there a way to tell retell to no look at the time on the SIP?
a
Thanks for the follow-up, @persona4107. I'll get back to you soon.
### Answer Based on the available sources, I don't have specific information about disabling time detection on SIP calls. However, there are several approaches you can consider to address your Cal.com booking time format issue: ## Custom Function Approach You can create a custom function to handle the time formatting manually [(1) ]() . When a custom function is called, Retell sends a request to your specified URL with the function name and parameters . This would give you complete control over how time data is processed before sending it to Cal.com. ## Dynamic Variables for Time Control Retell provides system variables for time handling [(2) ]() . You can use: -
{{current_time}}
- Current time in America/Los_Angeles -
{{current_time_[timezone]}}
- Current time in specified timezone -
{{call_type}}
- Distinguishes between "web_call" or "phone_call" Since you're experiencing different behavior between SIP calls and web interactions, you could potentially use the
{{call_type}}
variable to apply different time handling logic . ## Timezone Configuration From the Discord discussions, timezone issues with Cal.com are common [(3) ]() [(4) ]() . One user found that changing from their local timezone (Asia/Kolkata) to EST resolved similar booking issues [(3) ]() . Another user suggested including the timezone in the prompt and specifically stating it should use the correct timezone when sending to Cal.com [(4) ]() . ## Workaround Suggestions Based on community discussions,
you might consider: - Using custom functions with automation tools for more control over variables - Setting a different timezone that doesn't have the timing issues, then displaying in your preferred timezone for customers [(3) ]() For this specific SIP-related time handling issue, I'd recommend: Visit [Contact Sales]() or [) for technical support. Would you like a general answer based on my knowledge instead?
​ To learn more, see the sources I considered: [[1] Custom Function](https://docs.retellai.com/build/conversation-flow/custom-function) [[2] Dynamic Variables](https://docs.retellai.com/build/dynamic-variables) [[3] Facing an abnormal issue in booking appointments on cal.com via Retell.](https://discord.com/channels/1186424376300679209/1407668247926411305) [[4] Time Zone Issue](https://discord.com/channels/1186424376300679209/1344216990830559263) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
@AI Evy Can I talk to a person ?
a
Thanks for the follow-up, @persona4107. I'll get back to you soon.
### Answer Yes, for direct human support with your technical issues, you can contact Retell AI through these channels [(1) ]() [(2) ]() : - Visit [Contact Sales]() - Visit [) These are the official support channels for getting assistance with technical issues like your SIP time formatting problem with Cal.com integration .
​ To learn more, see the sources I considered: [[1] Discord message from @firstcall_55852 on 2025-08-15](https://discord.com/channels/1186424376300679209/1186462578310910112/1406017137344118814) [[2] Discord message from @firstcall_55852 on 2025-08-19](https://discord.com/channels/1186424376300679209/1186462578310910112/1407390152862466170) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.