[asterisk-bugs] [JIRA] (ASTERISK-19738) Calendar EWS does not attempt to extract the Body element in a CalendarItem and populate the description event field

Dmitry Burilov (JIRA) noreply at issues.asterisk.org
Tue Oct 30 05:27:18 CDT 2012


    [ https://issues.asterisk.org/jira/browse/ASTERISK-19738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=199005#comment-199005 ] 

Dmitry Burilov edited comment on ASTERISK-19738 at 10/30/12 5:25 AM:
---------------------------------------------------------------------

Yes, Matt, now Body element working! 
This log from my test query:

    -- Executing [ews at test:1] NoOp("Local/ews at test-0fe1;2", "Test calendar") in new stack
    -- Executing [ews at test:2] Set("Local/ews at test-0fe1;2", "id=6f046c07241424b741b0119556794291") in new stack
    -- Executing [ews at test:3] NoOp("Local/ews at test-0fe1;2", "getnum=1") in new stack
    -- Executing [ews at test:4] NoOp("Local/ews at test-0fe1;2", "summary=test subject line") in new stack
    -- Executing [ews at test:5] NoOp("Local/ews at test-0fe1;2", "description=<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>body test line 1</div>
<div>body test line 2</div>
<div>body test line 3</div>
<div>body test line 4</div>
<div>body test line 5</div>
<div>body test line 6</div>
<div>&nbsp;</div>
</span></font>
</body>
</html>
") in new stack
    -- Executing [ews at test:6] NoOp("Local/ews at test-0fe1;2", "organizer=Dmitry Burilov") in new stack
    -- Executing [ews at test:7] NoOp("Local/ews at test-0fe1;2", "location=test location line") in new stack
    -- Executing [ews at test:8] NoOp("Local/ews at test-0fe1;2", "categories=") in new stack
    -- Executing [ews at test:9] NoOp("Local/ews at test-0fe1;2", "priority=5") in new stack
    -- Executing [ews at test:10] Set("Local/ews at test-0fe1;2", "calendar=ews") in new stack
    -- Executing [ews at test:11] NoOp("Local/ews at test-0fe1;2", "uid=AAAaAERtaXRyeS5CdXJpbG92QGRhdGFhcnQuY29tAEYAAAAAAGyPRktF3lxIlqyFvvYAEqsHANpM3QS3AoNLvdLq1rrGRAYAAABrPgQAALj2djTXmYdJpnRuuRUMPoQAqV4vBBQAAA==") in new stack
    -- Executing [ews at test:12] NoOp("Local/ews at test-0fe1;2", "start=1351590960") in new stack
    -- Executing [ews at test:13] NoOp("Local/ews at test-0fe1;2", "end=1351592760") in new stack
    -- Executing [ews at test:14] NoOp("Local/ews at test-0fe1;2", "busystate=2") in new stack

This patch will be added to the trunk?
In any case, thanks everybody for the help!

Dmitry.
                
      was (Author: netaskd):
    Yes, Matt, now Body element working! 
This log from my test query:

    -- Executing [ews at test:1] NoOp("Local/ews at test-0fe1;2", "Test calendar") in new stack
    -- Executing [ews at test:2] Set("Local/ews at test-0fe1;2", "id=6f046c07241424b741b0119556794291") in new stack
    -- Executing [ews at test:3] NoOp("Local/ews at test-0fe1;2", "getnum=1") in new stack
    -- Executing [ews at test:4] NoOp("Local/ews at test-0fe1;2", "summary=test subject line") in new stack
    -- Executing [ews at test:5] NoOp("Local/ews at test-0fe1;2", "description=<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>body test line 1</div>
<div>body test line 2</div>
<div>body test line 3</div>
<div>body test line 4</div>
<div>body test line 5</div>
<div>body test line 6</div>
<div>&nbsp;</div>
</span></font>
</body>
</html>
") in new stack
    -- Executing [ews at test:6] NoOp("Local/ews at test-0fe1;2", "organizer=Dmitry Burilov") in new stack
    -- Executing [ews at test:7] NoOp("Local/ews at test-0fe1;2", "location=test location line") in new stack
    -- Executing [ews at test:8] NoOp("Local/ews at test-0fe1;2", "categories=") in new stack
    -- Executing [ews at test:9] NoOp("Local/ews at test-0fe1;2", "priority=5") in new stack
    -- Executing [ews at test:10] Set("Local/ews at test-0fe1;2", "calendar=ews") in new stack
    -- Executing [ews at test:11] NoOp("Local/ews at test-0fe1;2", "uid=AAAaAERtaXRyeS5CdXJpbG92QGRhdGFhcnQuY29tAEYAAAAAAGyPRktF3lxIlqyFvvYAEqsHANpM3QS3AoNLvdLq1rrGRAYAAABrPgQAALj2djTXmYdJpnRuuRUMPoQAqV4vBBQAAA==") in new stack
    -- Executing [ews at test:12] NoOp("Local/ews at test-0fe1;2", "start=1351590960") in new stack
    -- Executing [ews at test:13] NoOp("Local/ews at test-0fe1;2", "end=1351592760") in new stack
    -- Executing [ews at test:14] NoOp("Local/ews at test-0fe1;2", "busystate=2") in new stack

This patch will be added to the trunk?
In any case, thanks everybody for the help!

Dmitriy.
                  
> Calendar EWS does not attempt to extract the Body element in a CalendarItem and populate the description event field
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-19738
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-19738
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_calendar_ews
>    Affects Versions: 1.8.11.0
>         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/Linux
>            Reporter: Dmitry Burilov
>            Assignee: Dmitry Burilov
>              Labels: calendar
>         Attachments: calendar_ews_body_2012_10_29.diff, calendar_ews_body.diff
>
>
> 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 at calendar:30] Set("SIP/316-00001007", "id=490f610a36e89c7b43fb220b5b61acb5") in new stack
>  Executing [25 at calendar:31] NoOp("SIP/316-00001007", "getnum=1") in new stack
>  Executing [25 at calendar:32] NoOp("SIP/316-00001007", "summary=rgw") in new stack
>  Executing [25 at calendar:33] NoOp("SIP/316-00001007", "description=wergwergwergwer\ng\nwer\ng\nwerg\nwe\nrg\nwe\nrg\nwer\ngw") in new stack
>  Executing [25 at calendar:34] NoOp("SIP/316-00001007", "organizer=") in new stack
>  Executing [25 at calendar:35] NoOp("SIP/316-00001007", "location=ergwerg") in new stack
>  Executing [25 at calendar:36] NoOp("SIP/316-00001007", "categories=") in new stack
>  Executing [25 at calendar:37] NoOp("SIP/316-00001007", "priority=0") in new stack
>  Executing [25 at calendar:38] NoOp("SIP/316-00001007", "calendar=ghelix") in new stack
>  Executing [25 at calendar:39] NoOp("SIP/316-00001007", "uid=rq1a9bwefwefqergrudj3s at google.com") in new stack
>  Executing [25 at calendar:40] NoOp("SIP/316-00001007", "start=1333709340") in new stack
>  Executing [25 at calendar:41] NoOp("SIP/316-00001007", "end=1333712940") in new stack
>  Executing [25 at 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 at calendar:15] Set("SIP/316-00001007", "id=30e4bf842037c9c4093bb2a106c2bbb7") in new stack
>  Executing [25 at calendar:16] NoOp("SIP/316-00001007", "getnum=1") in new stack
>  Executing [25 at calendar:17] NoOp("SIP/316-00001007", "summary=test0.5") in new stack
>  Executing [25 at calendar:18] NoOp("SIP/316-00001007", "description=") in new stack
>  Executing [25 at calendar:19] NoOp("SIP/316-00001007", "organizer=Бурилов Дмитрий Андреевич") in new stack
>  Executing [25 at calendar:20] NoOp("SIP/316-00001007", "location=location 0.5") in new stack
>  Executing [25 at calendar:21] NoOp("SIP/316-00001007", "categories=Anniversary") in new stack
>  Executing [25 at calendar:22] NoOp("SIP/316-00001007", "priority=5") in new stack
>  Executing [25 at calendar:23] NoOp("SIP/316-00001007", "calendar=ex") in new stack
>  Executing [25 at calendar:24] NoOp("SIP/316-00001007", "uid=AAATAGFzc2tlckBzcGIuaGVsaXgucnUARgAAAAAA0PpBZh85k0ao7P9o8ppT/AcAWBJq690AM0aLUB7apKHobQBpgBPSXAAA7uq74+NoH0OyS5xytWfDuwCBT2Bu5gAA") in new stack
>  Executing [25 at calendar:25] NoOp("SIP/316-00001007", "start=1333709340") in new stack
>  Executing [25 at calendar:26] NoOp("SIP/316-00001007", "end=1333712940") in new stack
>  Executing [25 at 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 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list