<html>
<head>
<base href="https://wiki.asterisk.org/wiki">
<link rel="stylesheet" href="/wiki/s/en/2172/18/9/_/styles/combined.css?spaceKey=AST&forWysiwyg=true" type="text/css">
</head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
<h2><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CALENDAR_WRITE">Asterisk 11 Function_CALENDAR_WRITE</a></h2>
<h4>Page <b>added</b> by <a href="https://wiki.asterisk.org/wiki/display/~wikibot">Wiki Bot</a>
</h4>
<br/>
<div class="notificationGreySide">
<h1><a name="Asterisk11Function_CALENDAR_WRITE-CALENDARWRITE%28%29"></a>CALENDAR_WRITE()</h1>
<h3><a name="Asterisk11Function_CALENDAR_WRITE-Synopsis"></a>Synopsis</h3>
<p>Write an event to a calendar</p>
<h3><a name="Asterisk11Function_CALENDAR_WRITE-Description"></a>Description</h3>
<p>Example: CALENDAR_WRITE(calendar,field1,field2,field3)=val1,val2,val3</p>
<p>The field and value arguments can easily be set/passed using the HASHKEYS() and HASH() functions</p>
<ul>
        <li>CALENDAR_SUCCESS - The status of the write operation to the calendar
        <ul>
                <li>1 - The event was successfully written to the calendar.</li>
                <li>0 - The event was not written to the calendar due to network issues, permissions, etc.</li>
        </ul>
        </li>
</ul>
<h3><a name="Asterisk11Function_CALENDAR_WRITE-Syntax"></a>Syntax</h3>
<div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
<pre>CALENDAR_WRITE(calendar,field[,...])</pre>
</div></div>
<h5><a name="Asterisk11Function_CALENDAR_WRITE-Arguments"></a>Arguments</h5>
<ul>
        <li>calendar - The calendar to write to</li>
        <li>field
        <ul>
                <li>summary - A summary of the event</li>
                <li>description - The full event description</li>
                <li>organizer - The event organizer</li>
                <li>location - The event location</li>
                <li>categories - The categories of the event</li>
                <li>priority - The priority of the event</li>
                <li>uid - The unique identifier for the event</li>
                <li>start - The start time of the event (in seconds since epoch)</li>
                <li>end - The end time of the event (in seconds since epoch)</li>
                <li>busystate - The busy status of the event 0=FREE, 1=TENTATIVE, 2=BUSY</li>
        </ul>
        </li>
</ul>
<h3><a name="Asterisk11Function_CALENDAR_WRITE-SeeAlso"></a>See Also</h3>
<ul>
        <li><a href="/wiki/display/AST/Asterisk+11+Function_CALENDAR_BUSY" title="Asterisk 11 Function_CALENDAR_BUSY">Asterisk 11 Function_CALENDAR_BUSY</a></li>
        <li><a href="/wiki/display/AST/Asterisk+11+Function_CALENDAR_EVENT" title="Asterisk 11 Function_CALENDAR_EVENT">Asterisk 11 Function_CALENDAR_EVENT</a></li>
        <li><a href="/wiki/display/AST/Asterisk+11+Function_CALENDAR_QUERY" title="Asterisk 11 Function_CALENDAR_QUERY">Asterisk 11 Function_CALENDAR_QUERY</a></li>
        <li><a href="/wiki/display/AST/Asterisk+11+Function_CALENDAR_QUERY_RESULT" title="Asterisk 11 Function_CALENDAR_QUERY_RESULT">Asterisk 11 Function_CALENDAR_QUERY_RESULT</a></li>
</ul>
<h3><a name="Asterisk11Function_CALENDAR_WRITE-ImportVersion"></a>Import Version</h3>
<p>This documentation was imported from Asterisk Version SVN-trunk-r370322</p>
</div>
<div id="commentsSection" class="wiki-content pageSection">
<div style="float: right;" class="grey">
<a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST">Stop watching space</a>
<span style="padding: 0px 5px;">|</span>
<a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action">Change email notification preferences</a>
</div>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CALENDAR_WRITE">View Online</a>
|
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CALENDAR_WRITE?showComments=true&showCommentArea=true#addcomment">Add Comment</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>