QUESTION Calendar Help

Ken Goddard

New Member
Joined
Sep 12, 2014
Messages
11
Reaction score
1
I followed this tutorial: LINK TO TUTORIAL

My problem is that if I dial 225 directly it doesn't read the calendar event. The second thing is it never calls me.

Hopefully someone can help.

Btw : I changed type from caldav to ical
if not the calendar show calendar GoogleCalendar would be blank.

PHP:
[GoogleCalendar]
type = ical                                                                     
url = https://www.google.com/calendar/dav/[email protected]/events/ 
user [email protected] 
secret = mysecretpass   
refresh = 10             
timeframe = 120           
autoreminder = 10       
channel = local/18185551212@from-internal               
context = from-internal-custom
extension = 225           
waittime = 45

Code:
Connected to Asterisk 11.11.0 currently running on incrediblepbx (pid = 21166)
incrediblepbx*CLI> module reload res_calendar.so
    -- Reloading module 'res_calendar.so' (Asterisk Calendar integration)
  == Parsing '/etc/asterisk/calendar.conf': Found
incrediblepbx*CLI> calendar show calendar GoogleCalendar
Name              : GoogleCalendar
Notify channel    : Gtalk/asterisk/+1818
Notify context    : from-internal-custom
Notify extension  : 225
Notify applicatio :
Notify appdata    :
Refresh time      : 10
Timeframe        : 120
Autoreminder      : 10
Events
------
Summary    : Test Event - asterisk rocks
Description : This is a test description allowing for some read back.
Organizer  :
Location    : Mission Hills\, Los Angeles\, CA\, USA
Categories  :
Priority    : 0
UID        : [email protected]
Start      : 2014-09-25 01:30:00 PM -0700
End        : 2014-09-25 02:30:00 PM -0700
Alarm      :

if I dial the extension this is what I get, it never reads that event shown above. How do I get this working properly?

== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [225@from-internal:1] Answer("SIP/701-00000000", "") in new stack
> 0x1880948 -- Probation passed - setting RTP source address to 10.0.1.3:37260
-- Executing [225@from-internal:2] Wait("SIP/701-00000000", "1") in new stack
-- Executing [225@from-internal:3] Flite("SIP/701-00000000", ""Here is an appointment reminder from your calendar: "") in new stack
-- <SIP/701-00000000> Playing '/tmp/flite_96234427.slin' (language 'en')
-- Registered SIP '701' at 10.0.1.3:37257
> Saved useragent "Zoiper r21367" for peer 701
-- Executing [225@from-internal:4] Flite("SIP/701-00000000", "" at 1 29 PM at . . Have a nice day. Good bye."") in new stack
-- <SIP/701-00000000> Playing '/tmp/flite_36400524.slin' (language 'en')
-- Executing [225@from-internal:5] Hangup("SIP/701-00000000", "") in new stack
== Spawn extension (from-internal, 225, 5) exited non-zero on 'SIP/701-00000000'
-- Executing [h@from-internal:1] Hangup("SIP/701-00000000", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/701-00000000'

Here is the extensions_custom.conf

Now if I call the extension the only thing it does is say: "Here is an appointment reminder from your calendar: " and read the time, then say "good bye".

${CALENDAR_EVENT(description)}
${CALENDAR_EVENT(location)}
${CALENDAR_EVENT(summary)}

produce nada, nothing.

PHP:
[from-internal-custom]
 
exten => 225,1,Answer
exten => 225,n,Wait(1)
exten => 225,n,Flite("Here is an appointment reminder from your calendar: ")
exten => 225,n,Flite("${CALENDAR_EVENT(summary)} at ${STRFTIME(${CALENDAR_EVENT(start)},,%l%t %M%t %p%t)} at ${CALENDAR_EVENT(location)}. ${CALENDAR_EVENT(description)}. Have a nice day. Good bye.")
 

Members online

Forum statistics

Threads
26,687
Messages
174,411
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top