[Home]

Summary:ASTERISK-19712: Retrieve of fields from Calendar EWS
Reporter:Dmitry Burilov (netaskd)Labels:calendar
Date Opened:2012-04-12 02:33:24Date Closed:2012-04-25 07:38:17
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_calendar_ews
Versions:1.8.11.0 Frequency of
Occurrence
Related
Issues:
is the original version of this clone:ASTERISK-19738 Calendar EWS does not attempt to extract the Body element in a CalendarItem and populate the description event field
Environment:Linux r1 2.6.32-131.17.1.el6.x86_64 #1 SMP Wed Oct 5 17:19:54 CDT 2011 x86_64 x86_64 x86_64 GNU/LinuxAttachments:
Description:Hello,

I'm trying to retrieve field "Description" from Calendar(ex) EWS through function CALENDAR_QUERY_RESULT and CALENDAR_EVENT in dialplan. When i do the same thing from Google Calendar(ghelix), everything works fine and the log is:

log query from gmail (successful):

Executing [25@calendar:30] Set("SIP/316-00001007", "id=490f610a36e89c7b43fb220b5b61acb5") in new stack
Executing [25@calendar:31] NoOp("SIP/316-00001007", "getnum=1") in new stack
Executing [25@calendar:32] NoOp("SIP/316-00001007", "summary=rgw") in new stack
Executing [25@calendar:33] NoOp("SIP/316-00001007", "description=wergwergwergwer\ng\nwer\ng\nwerg\nwe\nrg\nwe\nrg\nwer\ngw") in new stack
Executing [25@calendar:34] NoOp("SIP/316-00001007", "organizer=") in new stack
Executing [25@calendar:35] NoOp("SIP/316-00001007", "location=ergwerg") in new stack
Executing [25@calendar:36] NoOp("SIP/316-00001007", "categories=") in new stack
Executing [25@calendar:37] NoOp("SIP/316-00001007", "priority=0") in new stack
Executing [25@calendar:38] NoOp("SIP/316-00001007", "calendar=ghelix") in new stack
Executing [25@calendar:39] NoOp("SIP/316-00001007", "uid=rq1a9bwefwefqergrudj3s@google.com") in new stack
Executing [25@calendar:40] NoOp("SIP/316-00001007", "start=1333709340") in new stack
Executing [25@calendar:41] NoOp("SIP/316-00001007", "end=1333712940") in new stack
Executing [25@calendar:42] NoOp("SIP/316-00001007", "busystate=2") in new stack

when i'm doing the same thing but from Calendar EWS, i get this:

log query from exchange (unsuccessful):

Executing [25@calendar:15] Set("SIP/316-00001007", "id=30e4bf842037c9c4093bb2a106c2bbb7") in new stack
Executing [25@calendar:16] NoOp("SIP/316-00001007", "getnum=1") in new stack
Executing [25@calendar:17] NoOp("SIP/316-00001007", "summary=test0.5") in new stack
Executing [25@calendar:18] NoOp("SIP/316-00001007", "description=") in new stack
Executing [25@calendar:19] NoOp("SIP/316-00001007", "organizer=Бурилов Дмитрий Андреевич") in new stack
Executing [25@calendar:20] NoOp("SIP/316-00001007", "location=location 0.5") in new stack
Executing [25@calendar:21] NoOp("SIP/316-00001007", "categories=Anniversary") in new stack
Executing [25@calendar:22] NoOp("SIP/316-00001007", "priority=5") in new stack
Executing [25@calendar:23] NoOp("SIP/316-00001007", "calendar=ex") in new stack
Executing [25@calendar:24] NoOp("SIP/316-00001007", "uid=AAATAGFzc2tlckBzcGIuaGVsaXgucnUARgAAAAAA0PpBZh85k0ao7P9o8ppT/AcAWBJq690AM0aLUB7apKHobQBpgBPSXAAA7uq74+NoH0OyS5xytWfDuwCBT2Bu5gAA") in new stack
Executing [25@calendar:25] NoOp("SIP/316-00001007", "start=1333709340") in new stack
Executing [25@calendar:26] NoOp("SIP/316-00001007", "end=1333712940") in new stack
Executing [25@calendar:27] NoOp("SIP/316-00001007", "busystate=2") in new stack

Field "description" is empty even though it exists in calendar event.

Here is a piece of my dialplan configuration:

same => n,Set(id=${CALENDAR_QUERY(ex,${EPOCH},${EPOCH})})
same => n,NoOp(getnum=${CALENDAR_QUERY_RESULT(${id},getnum)})
same => n,NoOp(summary=${CALENDAR_QUERY_RESULT(${id},summary)})
same => n,NoOp(description=${CALENDAR_QUERY_RESULT(${id},description)})
same => n,NoOp(organizer=${CALENDAR_QUERY_RESULT(${id},organizer)})
same => n,NoOp(location=${CALENDAR_QUERY_RESULT(${id},location)})
same => n,NoOp(categories=${CALENDAR_QUERY_RESULT(${id},categories)})
same => n,NoOp(priority=${CALENDAR_QUERY_RESULT(${id},priority)})
same => n,Set(calendar=${CALENDAR_QUERY_RESULT(${id},calendar)})
same => n,NoOp(uid=${CALENDAR_QUERY_RESULT(${id},uid)})
same => n,NoOp(start=${CALENDAR_QUERY_RESULT(${id},start)})
same => n,NoOp(end=${CALENDAR_QUERY_RESULT(${id},end)})
same => n,NoOp(busystate=${CALENDAR_QUERY_RESULT(${id},busystate)}) ;0=FREE, 1=TENTATIVE, 2=BUSY

I suppose it is a bug. Is there any patch or way to fix this problem?

If you need more info, please let me know, i will send you debug information.

Thanks in advance,
Dmitry
Comments:By: Matt Jordan (mjordan) 2012-04-25 07:38:17.249-0500

Duplicate of ASTERISK-19738 (I probably cloned it, sorry :-))