<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<base href="https://wiki.asterisk.org/wiki" />
<title>Message Title</title>
<style type="text/css">@media only screen and (max-device-width: 480px) {.mobile-only {
width: auto !important;
height: auto !important;
overflow: visible !important;
line-height: normal !important;
font-size: inherit !important;
mso-hide: all;
}
.desktop-only {
display: none !important;
}
/* iPhone 3GS fix for unwanted 20px right margin */
body { min-width: 100% !important; padding: 0; margin: 0; }
#center-content-table { max-width: none; !important; }
#header-pattern-container { padding: 10px 10px 10px 10px !important; line-height: 20px !important; }
#header-avatar-image-container { padding-right: 8px !important; }
#email-content-container { padding: 0 !important; }
.mobile-expand { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; padding-left: 26px !important;}
.mobile-resize-text { font-size: 16px !important; line-height: 22px !important; }
#page-title-pattern-header { font-size: 20px !important; line-height: 28px !important; }
#page-title-pattern-icon-image-container-cell { padding-top: 7px !important; }
#inline-user-pattern { display: block !important; }
#inline-user-pattern-avatar { padding-top: 3px !important; }
.contextual-area-pattern { border-bottom: 1px solid #ccc !important; padding: 15px 10px 0 10px !important;}
.users-involved-pattern-column-table { width: 100% !important; }
.users-involved-pattern-avatar-table-cell { padding: 3px 5px 5px 0 !important; }
.users-involved-pattern-column-container { padding-right: 0 !important; }
.contextual-excerpt-pattern, #users-involved-pattern { border: 0 !important; }
/** Aui Typography upsized for mobile **/
#content-excerpt-pattern-container, #contextual-excerpt-pattern-text-container { font-size: 16px !important; line-height: 22px !important; }
#content-excerpt-pattern-container h1, #contextual-excerpt-pattern-text-container h1 { font-size: 24px !important; line-height: 28px !important; }
#content-excerpt-pattern-container h2, #contextual-excerpt-pattern-text-container h2 { font-size: 20px !important; line-height: 28px !important; }
#content-excerpt-pattern-container h3, #contextual-excerpt-pattern-text-container h3 { font-size: 18px !important; line-height: 24px !important; }
#content-excerpt-pattern-container h4, #contextual-excerpt-pattern-text-container h4 { font-size: 16px !important; line-height: 22px !important; }
#content-excerpt-pattern-container h5, #contextual-excerpt-pattern-text-container h5 { font-size: 14px !important; line-height: 20px !important; }
#content-excerpt-pattern-container h6, #contextual-excerpt-pattern-text-container h6 { font-size: 14px !important; line-height: 20px !important; }
.user-mention { line-height: 18px !important; }
/** Aui Typography end **/
/* Show appropriate footer logo on mobile, display links vertically */
#footer-pattern { padding: 15px 10px !important; }
#footer-pattern-logo-desktop-container { padding: 0 !important; }
#footer-pattern-logo-desktop { width: 0 !important; height: 0 !important; }
#footer-pattern-logo-mobile {
padding-top: 10px !important;
width: 30px !important;
height: 27px !important;
display: inline !important;
}
#footer-pattern-text {
display: block !important;
}
#footer-pattern-links-container { line-height: 0 !important;}
.footer-pattern-links.mobile-resize-text,
.footer-pattern-links.mobile-resize-text,
#footer-pattern-text.mobile-resize-text,
#footer-pattern-links-container.no-footer-links {
font-size: 14px !important;
line-height: 20px !important;
}
.footer-link { display: block !important; }
#footer-pattern-links-container table { display: inline-block !important; float: none !important; }
#footer-pattern-links-container, #footer-pattern-text { text-align: center !important; }
#footer-pattern-links { padding-bottom: 5px !important; }
/** Team Calendar overrides, these should be removed when notifications are updated in Team Calendars. For now CSS
overrides are being used because the structure of the content can't change without rereleasing the plugin */
.mail-calendar-container .day-header + table tr td:first-child {
vertical-align: top !important;
padding-top: 5px !important;
}}
@media (min-width: 900px) {#center-content-table { width: 900px; }}
@media all {#outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */
/* Prevent Webkit and Windows Mobile platforms from changing default font sizes.*/
body{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;}
.ExternalClass {width:100%;} /* Force Hotmail to display emails at full width */
#background-table {margin:0; padding:0; width:100% !important; }
/* Needed to override highlighting on date and time links in iOS */
.grey a {color: #707070; text-decoration: none; }/* These styles are appended to the head element of a notification in order to prevent Apple Mail and similar
clients from underlining the due dates with a blue hyperlink */
/* a lozenge outside an inline task should always be #333, lozenges inside an inline task should be
colored according to their upcoming due dates, a completed task date lozenge or deleted task date
lozenge should always be #707070 */
.date-time-lozenge a {color: #333333; text-decoration: none; }
.inline-task-text-container .date-time-lozenge.date-upcoming a {color: #DF6F00; text-decoration: none; }
.inline-task-text-container .date-time-lozenge.date-past a {color: #D04437; text-decoration: none; }
.inline-task-text-container.content-deleted-color .date-time-lozenge a,
.inline-task-text-container.checked .date-time-lozenge a {
color: #707070; text-decoration: none;
}}
</style>
</head>
<body>
<table id="background-table" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; background-color: #f5f5f5">
<tbody>
<tr>
<td id="header-pattern-container" style="padding: 0px; border-collapse: collapse; padding: 10px 20px">
<table id="header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333">
<tbody>
<tr>
<td id="header-avatar-image-container" valign="top" style="padding: 0px; border-collapse: collapse; vertical-align: top; width: 32px; padding-right: 9px"><a href="https://wiki.asterisk.org/wiki/display/~wikibot?src=email" style="color: #3b73af; text-decoration: none"><img id="header-avatar-image" class="image_fix" src="cid:avatar_cb9f14dc0329f364cb46fa5adbde00e6" height="32" width="32" border="0" style="border-radius: 3px; vertical-align: top" /></a></td>
<td id="header-text-container" valign="middle" style="padding: 0px; border-collapse: collapse; vertical-align: middle; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px">Wiki Bot <strong>created</strong> a page</td>
</tr>
</tbody>
</table> </td>
</tr>
<!-- End Header pattern -->
<tr>
<td id="email-content-container" style="padding: 0px; border-collapse: collapse; padding: 0 20px">
<table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; border-spacing: 0; border-collapse: separate">
<tbody>
<tr>
<td class="email-content-rounded-top mobile-expand" style="padding: 0px; border-collapse: collapse; color: #fff; padding: 0 15px 0 16px; height: 15px; background-color: #fff; border-left: 1px solid #ccc; border-top: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 0; border-top-right-radius: 5px; border-top-left-radius: 5px"> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand" style="padding: 0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0; padding: 0 15px 15px 16px; background-color: #fff">
<table id="page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333">
<tbody>
<tr>
<td id="page-title-pattern-icon-image-container" valign="top" style="padding: 0px; border-collapse: collapse; width: 16px; vertical-align: top">
<table cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333">
<tbody>
<tr>
<td id="page-title-pattern-icon-image-container-cell" style="padding: 0px; border-collapse: collapse; width: 16px; padding: 9px 8px 0px 0px; mso-text-raise: 5px; mso-line-height-rule: exactly"><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+Channels+REST+API?src=email" title="page icon" style="vertical-align: top;; color: #3b73af; text-decoration: none"><img style="vertical-align: top; display: block;" src="cid:page-icon" alt="page icon" title="page icon" height="16" width="16" border="0" /></a></td>
</tr>
</tbody>
</table> </td>
<td style="vertical-align: top;; padding: 0px; border-collapse: collapse; padding-right: 5px; font-size: 20px; line-height: 30px; mso-line-height-rule: exactly" id="page-title-pattern-header-container"><span id="page-title-pattern-header" style="font-family: Arial, sans-serif; padding: 0; font-size: 20px; line-height: 30px; mso-text-raise: 2px; mso-line-height-rule: exactly; vertical-align: middle"><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+Channels+REST+API?src=email" title="Asterisk 19 Channels REST API" style="color: #3b73af; text-decoration: none">Asterisk 19 Channels REST API</a></span></td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand" style="padding: 0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0; padding: 0 15px 15px 16px; background-color: #fff">
<table class="content-excerpt-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px">
<tbody>
<tr>
<td class="content-excerpt-pattern-container mobile-resize-text " style="padding: 0px; border-collapse: collapse; padding: 0 0 0 24px"> <h1 id="Asterisk19ChannelsRESTAPI-Channels" style="margin: 10px 0 0 0; margin-top: 0; font-size: 24px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0; margin-top: 0">Channels</h1>
<div class="table-wrap" style="margin: 10px 0 0 0; overflow-x: auto">
<table class="confluenceTable" style="border-collapse: collapse; border: 1px solid #ddd;; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; border-collapse: collapse; margin: 10px 0 0 0; overflow-x: auto; margin-top: 0">
<tbody>
<tr>
<th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left; background-color: #f0f0f0; font-weight: bold"> <p style="margin: 10px 0 0 0; margin-top: 0; background-color: #f0f0f0; font-weight: bold"> Method </p> </th>
<th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left; background-color: #f0f0f0; font-weight: bold"> <p style="margin: 10px 0 0 0; margin-top: 0; background-color: #f0f0f0; font-weight: bold"> Path<br>h5. Parameters are case-sensitive </p> </th>
<th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left; background-color: #f0f0f0; font-weight: bold"> <p style="margin: 10px 0 0 0; margin-top: 0; background-color: #f0f0f0; font-weight: bold"> Return Model </p> </th>
<th class="confluenceTh" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;background-color: #F0F0F0; font-weight: bold;; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left; background-color: #f0f0f0; font-weight: bold"> <p style="margin: 10px 0 0 0; margin-top: 0; background-color: #f0f0f0; font-weight: bold"> Summary </p> </th>
</tr>
</tbody>
</table>
</div>
<div class="table-wrap" style="margin: 10px 0 0 0; overflow-x: auto">
<table class="confluenceTable" style="border-collapse: collapse; border: 1px solid #ddd;; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; border-collapse: collapse; margin: 10px 0 0 0; overflow-x: auto; margin-top: 0">
<tbody>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> GET </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-list" style="color: #3b73af; text-decoration: none">/channels</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-Channel" style="color: #3b73af; text-decoration: none">List[Channel]</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> List all active channels in Asterisk. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-originate" style="color: #3b73af; text-decoration: none">/channels</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-Channel" style="color: #3b73af; text-decoration: none">Channel</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Create a new channel (originate). </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-create" style="color: #3b73af; text-decoration: none">/channels/create</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-Channel" style="color: #3b73af; text-decoration: none">Channel</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Create channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> GET </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-get" style="color: #3b73af; text-decoration: none">/channels/{channelId}</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-Channel" style="color: #3b73af; text-decoration: none">Channel</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Channel details. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-originateWithId" style="color: #3b73af; text-decoration: none">/channels/{channelId}</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-Channel" style="color: #3b73af; text-decoration: none">Channel</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Create a new channel (originate with id). </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> DELETE </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-hangup" style="color: #3b73af; text-decoration: none">/channels/{channelId}</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Delete (i.e. hangup) a channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-continueInDialplan" style="color: #3b73af; text-decoration: none">/channels/{channelId}/continue</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Exit application; continue execution in the dialplan. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-move" style="color: #3b73af; text-decoration: none">/channels/{channelId}/move</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Move the channel from one Stasis application to another. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-redirect" style="color: #3b73af; text-decoration: none">/channels/{channelId}/redirect</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Redirect the channel to a different location. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-answer" style="color: #3b73af; text-decoration: none">/channels/{channelId}/answer</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Answer a channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-ring" style="color: #3b73af; text-decoration: none">/channels/{channelId}/ring</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Indicate ringing to a channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> DELETE </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-ringStop" style="color: #3b73af; text-decoration: none">/channels/{channelId}/ring</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Stop ringing indication on a channel if locally generated. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-sendDTMF" style="color: #3b73af; text-decoration: none">/channels/{channelId}/dtmf</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Send provided DTMF to a given channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-mute" style="color: #3b73af; text-decoration: none">/channels/{channelId}/mute</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Mute a channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> DELETE </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-unmute" style="color: #3b73af; text-decoration: none">/channels/{channelId}/mute</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Unmute a channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-hold" style="color: #3b73af; text-decoration: none">/channels/{channelId}/hold</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Hold a channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> DELETE </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-unhold" style="color: #3b73af; text-decoration: none">/channels/{channelId}/hold</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Remove a channel from hold. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-startMoh" style="color: #3b73af; text-decoration: none">/channels/{channelId}/moh</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Play music on hold to a channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> DELETE </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-stopMoh" style="color: #3b73af; text-decoration: none">/channels/{channelId}/moh</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Stop playing music on hold to a channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-startSilence" style="color: #3b73af; text-decoration: none">/channels/{channelId}/silence</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Play silence to a channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> DELETE </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-stopSilence" style="color: #3b73af; text-decoration: none">/channels/{channelId}/silence</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Stop playing silence to a channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-play" style="color: #3b73af; text-decoration: none">/channels/{channelId}/play</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-Playback" style="color: #3b73af; text-decoration: none">Playback</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Start playback of media. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-playWithId" style="color: #3b73af; text-decoration: none">/channels/{channelId}/play/{playbackId}</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-Playback" style="color: #3b73af; text-decoration: none">Playback</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Start playback of media and specify the playbackId. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-record" style="color: #3b73af; text-decoration: none">/channels/{channelId}/record</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-LiveRecording" style="color: #3b73af; text-decoration: none">LiveRecording</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Start a recording. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> GET </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-getChannelVar" style="color: #3b73af; text-decoration: none">/channels/{channelId}/variable</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-Variable" style="color: #3b73af; text-decoration: none">Variable</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Get the value of a channel variable or function. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-setChannelVar" style="color: #3b73af; text-decoration: none">/channels/{channelId}/variable</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Set the value of a channel variable or function. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-snoopChannel" style="color: #3b73af; text-decoration: none">/channels/{channelId}/snoop</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-Channel" style="color: #3b73af; text-decoration: none">Channel</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Start snooping. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-snoopChannelWithId" style="color: #3b73af; text-decoration: none">/channels/{channelId}/snoop/{snoopId}</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-Channel" style="color: #3b73af; text-decoration: none">Channel</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Start snooping. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-dial" style="color: #3b73af; text-decoration: none">/channels/{channelId}/dial</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> void </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Dial a created channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> GET </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-rtpstatistics" style="color: #3b73af; text-decoration: none">/channels/{channelId}/rtp_statistics</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-RTPstat" style="color: #3b73af; text-decoration: none">RTPstat</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> RTP stats on a channel. </p> </td>
</tr>
<tr>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> POST </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="#Asterisk19ChannelsRESTAPI-externalMedia" style="color: #3b73af; text-decoration: none">/channels/externalMedia</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+REST+Data+Models#Asterisk19RESTDataModels-Channel" style="color: #3b73af; text-decoration: none">Channel</a> </p> </td>
<td class="confluenceTd" style="border: 1px solid #DDD; padding: 5px 7px; min-width: 0.6em; text-align: left; vertical-align: top;; padding: 0px; border-collapse: collapse; border: 1px solid #ddd; padding: 7px 10px; vertical-align: top; text-align: left"> <p style="margin: 10px 0 0 0; margin-top: 0"> Start an External Media session. </p> </td>
</tr>
</tbody>
</table>
</div> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-list"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-list:GET/channels" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">list: GET /channels</h2> <p style="margin: 10px 0 0 0">List all active channels in Asterisk.</p> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-originate"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-originate:POST/channels" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">originate: POST /channels</h2> <p style="margin: 10px 0 0 0">Create a new channel (originate). The new channel is created immediately and a snapshot of it returned. If a Stasis application is provided it will be automatically subscribed to the originated channel for further events and updates.</p> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>endpoint: <em>string</em> - <strong>(required)</strong> Endpoint to call.</li>
<li>extension: <em>string</em> - The extension to dial after the endpoint answers. Mutually exclusive with 'app'.</li>
<li>context: <em>string</em> - The context to dial after the endpoint answers. If omitted, uses 'default'. Mutually exclusive with 'app'.</li>
<li>priority: <em>long</em> - The priority to dial after the endpoint answers. If omitted, uses 1. Mutually exclusive with 'app'.</li>
<li>label: <em>string</em> - The label to dial after the endpoint answers. Will supersede 'priority' if provided. Mutually exclusive with 'app'.</li>
<li>app: <em>string</em> - The application that is subscribed to the originated channel. When the channel is answered, it will be passed to this Stasis application. Mutually exclusive with 'context', 'extension', 'priority', and 'label'.</li>
<li>appArgs: <em>string</em> - The application arguments to pass to the Stasis application provided by 'app'. Mutually exclusive with 'context', 'extension', 'priority', and 'label'.</li>
<li>callerId: <em>string</em> - CallerID to use when dialing the endpoint or extension.</li>
<li>timeout: <em>int</em> - Timeout (in seconds) before giving up dialing, or -1 for no timeout.
<ul style="margin: 10px 0 0 0">
<li>Default: 30</li>
</ul> </li>
<li>channelId: <em>string</em> - The unique id to assign the channel on creation.</li>
<li>otherChannelId: <em>string</em> - The unique id to assign the second channel when using local channels.</li>
<li>originator: <em>string</em> - The unique id of the channel which is originating this one.</li>
<li>formats: <em>string</em> - The format name capability list to use if originator is not specified. Ex. "ulaw,slin16". Format names can be found with "core show codecs".</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Bodyparameter" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Body parameter</h3>
<ul style="margin: 10px 0 0 0">
<li>variables: containers - The "variables" key in the body object holds variable key/value pairs to set on the channel on creation. Other keys in the body object are interpreted as query parameters. Ex. { "endpoint": "SIP/Alice", "variables": { "CALLERID(name)": "Alice" } }</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>400 - Invalid parameters for originating a channel.</li>
<li>409 - Channel with given unique ID already exists.</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-create"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-create:POST/channels/create" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">create: POST /channels/create</h2> <p style="margin: 10px 0 0 0">Create channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.1" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>endpoint: <em>string</em> - <strong>(required)</strong> Endpoint for channel communication</li>
<li>app: <em>string</em> - <strong>(required)</strong> Stasis Application to place channel into</li>
<li>appArgs: <em>string</em> - The application arguments to pass to the Stasis application provided by 'app'. Mutually exclusive with 'context', 'extension', 'priority', and 'label'.</li>
<li>channelId: <em>string</em> - The unique id to assign the channel on creation.</li>
<li>otherChannelId: <em>string</em> - The unique id to assign the second channel when using local channels.</li>
<li>originator: <em>string</em> - Unique ID of the calling channel</li>
<li>formats: <em>string</em> - The format name capability list to use if originator is not specified. Ex. "ulaw,slin16". Format names can be found with "core show codecs".</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Bodyparameter.1" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Body parameter</h3>
<ul style="margin: 10px 0 0 0">
<li>variables: containers - The "variables" key in the body object holds variable key/value pairs to set on the channel on creation. Other keys in the body object are interpreted as query parameters. Ex. { "endpoint": "SIP/Alice", "variables": { "CALLERID(name)": "Alice" } }</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.1" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>409 - Channel with given unique ID already exists.</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-get"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-get:GET/channels/{channelId}" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">get: GET /channels/{channelId}</h2> <p style="margin: 10px 0 0 0">Channel details.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.2" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-originateWithId"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-originateWithId:POST/channels/{channelId}" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">originateWithId: POST /channels/{channelId}</h2> <p style="margin: 10px 0 0 0">Create a new channel (originate with id). The new channel is created immediately and a snapshot of it returned. If a Stasis application is provided it will be automatically subscribed to the originated channel for further events and updates.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.1" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - The unique id to assign the channel on creation.</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.2" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>endpoint: <em>string</em> - <strong>(required)</strong> Endpoint to call.</li>
<li>extension: <em>string</em> - The extension to dial after the endpoint answers. Mutually exclusive with 'app'.</li>
<li>context: <em>string</em> - The context to dial after the endpoint answers. If omitted, uses 'default'. Mutually exclusive with 'app'.</li>
<li>priority: <em>long</em> - The priority to dial after the endpoint answers. If omitted, uses 1. Mutually exclusive with 'app'.</li>
<li>label: <em>string</em> - The label to dial after the endpoint answers. Will supersede 'priority' if provided. Mutually exclusive with 'app'.</li>
<li>app: <em>string</em> - The application that is subscribed to the originated channel. When the channel is answered, it will be passed to this Stasis application. Mutually exclusive with 'context', 'extension', 'priority', and 'label'.</li>
<li>appArgs: <em>string</em> - The application arguments to pass to the Stasis application provided by 'app'. Mutually exclusive with 'context', 'extension', 'priority', and 'label'.</li>
<li>callerId: <em>string</em> - CallerID to use when dialing the endpoint or extension.</li>
<li>timeout: <em>int</em> - Timeout (in seconds) before giving up dialing, or -1 for no timeout.
<ul style="margin: 10px 0 0 0">
<li>Default: 30</li>
</ul> </li>
<li>otherChannelId: <em>string</em> - The unique id to assign the second channel when using local channels.</li>
<li>originator: <em>string</em> - The unique id of the channel which is originating this one.</li>
<li>formats: <em>string</em> - The format name capability list to use if originator is not specified. Ex. "ulaw,slin16". Format names can be found with "core show codecs".</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Bodyparameter.2" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Body parameter</h3>
<ul style="margin: 10px 0 0 0">
<li>variables: containers - The "variables" key in the body object holds variable key/value pairs to set on the channel on creation. Other keys in the body object are interpreted as query parameters. Ex. { "endpoint": "SIP/Alice", "variables": { "CALLERID(name)": "Alice" } }</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.3" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>400 - Invalid parameters for originating a channel.</li>
<li>409 - Channel with given unique ID already exists.</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-hangup"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-hangup:DELETE/channels/{channelId}" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">hangup: DELETE /channels/{channelId}</h2> <p style="margin: 10px 0 0 0">Delete (i.e. hangup) a channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.2" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.3" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>reason_code: <em>string</em> - The reason code for hanging up the channel for detail use. Mutually exclusive with 'reason'. See detail hangup codes at here. <a class="external-link" href="https://wiki.asterisk.org/wiki/display/AST/Hangup+Cause+Mappings" rel="nofollow" style="color: #3b73af; text-decoration: none">https://wiki.asterisk.org/wiki/display/AST/Hangup+Cause+Mappings</a> </li>
<li>reason: <em>string</em> - Reason for hanging up the channel for simple use. Mutually exclusive with 'reason_code'.
<ul style="margin: 10px 0 0 0">
<li>Allowed values: normal, busy, congestion, no_answer, timeout, rejected, unallocated, normal_unspecified, number_incomplete, codec_mismatch, interworking, failure, answered_elsewhere</li>
</ul> </li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.4" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>400 - Invalid reason for hangup provided</li>
<li>404 - Channel not found</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-continueInDialplan"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-continueInDialplan:POST/channels/{channelId}/continue" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">continueInDialplan: POST /channels/{channelId}/continue</h2> <p style="margin: 10px 0 0 0">Exit application; continue execution in the dialplan.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.3" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.4" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>context: <em>string</em> - The context to continue to.</li>
<li>extension: <em>string</em> - The extension to continue to.</li>
<li>priority: <em>int</em> - The priority to continue to.</li>
<li>label: <em>string</em> - The label to continue to - will supersede 'priority' if both are provided.</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.5" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-move"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-move:POST/channels/{channelId}/move" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">move: POST /channels/{channelId}/move</h2> <p style="margin: 10px 0 0 0">Move the channel from one Stasis application to another.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.4" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.5" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>app: <em>string</em> - <strong>(required)</strong> The channel will be passed to this Stasis application.</li>
<li>appArgs: <em>string</em> - The application arguments to pass to the Stasis application provided by 'app'.</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.6" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-redirect"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-redirect:POST/channels/{channelId}/redirect" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">redirect: POST /channels/{channelId}/redirect</h2> <p style="margin: 10px 0 0 0">Redirect the channel to a different location.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.5" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.6" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>endpoint: <em>string</em> - <strong>(required)</strong> The endpoint to redirect the channel to</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.7" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>400 - Endpoint parameter not provided</li>
<li>404 - Channel or endpoint not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>422 - Endpoint is not the same type as the channel</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-answer"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-answer:POST/channels/{channelId}/answer" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">answer: POST /channels/{channelId}/answer</h2> <p style="margin: 10px 0 0 0">Answer a channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.6" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.8" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-ring"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-ring:POST/channels/{channelId}/ring" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">ring: POST /channels/{channelId}/ring</h2> <p style="margin: 10px 0 0 0">Indicate ringing to a channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.7" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.9" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-ringStop"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-ringStop:DELETE/channels/{channelId}/ring" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">ringStop: DELETE /channels/{channelId}/ring</h2> <p style="margin: 10px 0 0 0">Stop ringing indication on a channel if locally generated.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.8" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.10" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-sendDTMF"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-sendDTMF:POST/channels/{channelId}/dtmf" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">sendDTMF: POST /channels/{channelId}/dtmf</h2> <p style="margin: 10px 0 0 0">Send provided DTMF to a given channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.9" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.7" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>dtmf: <em>string</em> - DTMF To send.</li>
<li>before: <em>int</em> - Amount of time to wait before DTMF digits (specified in milliseconds) start.</li>
<li>between: <em>int</em> - Amount of time in between DTMF digits (specified in milliseconds).
<ul style="margin: 10px 0 0 0">
<li>Default: 100</li>
</ul> </li>
<li>duration: <em>int</em> - Length of each DTMF digit (specified in milliseconds).
<ul style="margin: 10px 0 0 0">
<li>Default: 100</li>
</ul> </li>
<li>after: <em>int</em> - Amount of time to wait after DTMF digits (specified in milliseconds) end.</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.11" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>400 - DTMF is required</li>
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-mute"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-mute:POST/channels/{channelId}/mute" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">mute: POST /channels/{channelId}/mute</h2> <p style="margin: 10px 0 0 0">Mute a channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.10" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.8" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>direction: <em>string</em> - Direction in which to mute audio
<ul style="margin: 10px 0 0 0">
<li>Default: both</li>
<li>Allowed values: both, in, out</li>
</ul> </li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.12" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-unmute"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-unmute:DELETE/channels/{channelId}/mute" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">unmute: DELETE /channels/{channelId}/mute</h2> <p style="margin: 10px 0 0 0">Unmute a channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.11" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.9" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>direction: <em>string</em> - Direction in which to unmute audio
<ul style="margin: 10px 0 0 0">
<li>Default: both</li>
<li>Allowed values: both, in, out</li>
</ul> </li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.13" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-hold"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-hold:POST/channels/{channelId}/hold" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">hold: POST /channels/{channelId}/hold</h2> <p style="margin: 10px 0 0 0">Hold a channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.12" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.14" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-unhold"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-unhold:DELETE/channels/{channelId}/hold" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">unhold: DELETE /channels/{channelId}/hold</h2> <p style="margin: 10px 0 0 0">Remove a channel from hold.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.13" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.15" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-startMoh"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-startMoh:POST/channels/{channelId}/moh" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">startMoh: POST /channels/{channelId}/moh</h2> <p style="margin: 10px 0 0 0">Play music on hold to a channel. Using media operations such as /play on a channel playing MOH in this manner will suspend MOH without resuming automatically. If continuing music on hold is desired, the stasis application must reinitiate music on hold.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.14" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.10" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>mohClass: <em>string</em> - Music on hold class to use</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.16" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-stopMoh"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-stopMoh:DELETE/channels/{channelId}/moh" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">stopMoh: DELETE /channels/{channelId}/moh</h2> <p style="margin: 10px 0 0 0">Stop playing music on hold to a channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.15" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.17" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-startSilence"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-startSilence:POST/channels/{channelId}/silence" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">startSilence: POST /channels/{channelId}/silence</h2> <p style="margin: 10px 0 0 0">Play silence to a channel. Using media operations such as /play on a channel playing silence in this manner will suspend silence without resuming automatically.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.16" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.18" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-stopSilence"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-stopSilence:DELETE/channels/{channelId}/silence" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">stopSilence: DELETE /channels/{channelId}/silence</h2> <p style="margin: 10px 0 0 0">Stop playing silence to a channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.17" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.19" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-play"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-play:POST/channels/{channelId}/play" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">play: POST /channels/{channelId}/play</h2> <p style="margin: 10px 0 0 0">Start playback of media. The media URI may be any of a number of URI's. Currently sound:, recording:, number:, digits:, characters:, and tone: URI's are supported. This operation creates a playback resource that can be used to control the playback of media (pause, rewind, fast forward, etc.)</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.18" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.11" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>media: <em>string</em> - <strong>(required)</strong> Media URIs to play.
<ul style="margin: 10px 0 0 0">
<li>Allows comma separated values.</li>
</ul> </li>
<li>lang: <em>string</em> - For sounds, selects language for sound.</li>
<li>offsetms: <em>int</em> - Number of milliseconds to skip before playing. Only applies to the first URI if multiple media URIs are specified.</li>
<li>skipms: <em>int</em> - Number of milliseconds to skip for forward/reverse operations.
<ul style="margin: 10px 0 0 0">
<li>Default: 3000</li>
</ul> </li>
<li>playbackId: <em>string</em> - Playback ID.</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.20" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-playWithId"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-playWithId:POST/channels/{channelId}/play/{playbackId}" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">playWithId: POST /channels/{channelId}/play/{playbackId}</h2> <p style="margin: 10px 0 0 0">Start playback of media and specify the playbackId. The media URI may be any of a number of URI's. Currently sound:, recording:, number:, digits:, characters:, and tone: URI's are supported. This operation creates a playback resource that can be used to control the playback of media (pause, rewind, fast forward, etc.)</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.19" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
<li>playbackId: <em>string</em> - Playback ID.</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.12" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>media: <em>string</em> - <strong>(required)</strong> Media URIs to play.
<ul style="margin: 10px 0 0 0">
<li>Allows comma separated values.</li>
</ul> </li>
<li>lang: <em>string</em> - For sounds, selects language for sound.</li>
<li>offsetms: <em>int</em> - Number of milliseconds to skip before playing. Only applies to the first URI if multiple media URIs are specified.</li>
<li>skipms: <em>int</em> - Number of milliseconds to skip for forward/reverse operations.
<ul style="margin: 10px 0 0 0">
<li>Default: 3000</li>
</ul> </li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.21" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
<li>412 - Channel in invalid state</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-record"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-record:POST/channels/{channelId}/record" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">record: POST /channels/{channelId}/record</h2> <p style="margin: 10px 0 0 0">Start a recording. Record audio from a channel. Note that this will not capture audio sent to the channel. The bridge itself has a record feature if that's what you want.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.20" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.13" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>name: <em>string</em> - <strong>(required)</strong> Recording's filename</li>
<li>format: <em>string</em> - <strong>(required)</strong> Format to encode audio in</li>
<li>maxDurationSeconds: <em>int</em> - Maximum duration of the recording, in seconds. 0 for no limit
<ul style="margin: 10px 0 0 0">
<li>Allowed range: Min: 0; Max: None</li>
</ul> </li>
<li>maxSilenceSeconds: <em>int</em> - Maximum duration of silence, in seconds. 0 for no limit
<ul style="margin: 10px 0 0 0">
<li>Allowed range: Min: 0; Max: None</li>
</ul> </li>
<li>ifExists: <em>string</em> - Action to take if a recording with the same name already exists.
<ul style="margin: 10px 0 0 0">
<li>Default: fail</li>
<li>Allowed values: fail, overwrite, append</li>
</ul> </li>
<li>beep: <em>boolean</em> - Play beep when recording begins</li>
<li>terminateOn: <em>string</em> - DTMF input to terminate recording
<ul style="margin: 10px 0 0 0">
<li>Default: none</li>
<li>Allowed values: none, any, *, #</li>
</ul> </li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.22" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>400 - Invalid parameters</li>
<li>404 - Channel not found</li>
<li>409 - Channel is not in a Stasis application; the channel is currently bridged with other hcannels; A recording with the same name already exists on the system and can not be overwritten because it is in progress or ifExists=fail</li>
<li>422 - The format specified is unknown on this system</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-getChannelVar"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-getChannelVar:GET/channels/{channelId}/variable" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">getChannelVar: GET /channels/{channelId}/variable</h2> <p style="margin: 10px 0 0 0">Get the value of a channel variable or function.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.21" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.14" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>variable: <em>string</em> - <strong>(required)</strong> The channel variable or function to get</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.23" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>400 - Missing variable parameter.</li>
<li>404 - Channel or variable not found</li>
<li>409 - Channel not in a Stasis application</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-setChannelVar"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-setChannelVar:POST/channels/{channelId}/variable" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">setChannelVar: POST /channels/{channelId}/variable</h2> <p style="margin: 10px 0 0 0">Set the value of a channel variable or function.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.22" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.15" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>variable: <em>string</em> - <strong>(required)</strong> The channel variable or function to set</li>
<li>value: <em>string</em> - The value to set the variable to</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.24" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>400 - Missing variable parameter.</li>
<li>404 - Channel not found</li>
<li>409 - Channel not in a Stasis application</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-snoopChannel"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-snoopChannel:POST/channels/{channelId}/snoop" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">snoopChannel: POST /channels/{channelId}/snoop</h2> <p style="margin: 10px 0 0 0">Start snooping. Snoop (spy/whisper) on a specific channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.23" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.16" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>spy: <em>string</em> - Direction of audio to spy on
<ul style="margin: 10px 0 0 0">
<li>Default: none</li>
<li>Allowed values: none, both, out, in</li>
</ul> </li>
<li>whisper: <em>string</em> - Direction of audio to whisper into
<ul style="margin: 10px 0 0 0">
<li>Default: none</li>
<li>Allowed values: none, both, out, in</li>
</ul> </li>
<li>app: <em>string</em> - <strong>(required)</strong> Application the snooping channel is placed into</li>
<li>appArgs: <em>string</em> - The application arguments to pass to the Stasis application</li>
<li>snoopId: <em>string</em> - Unique ID to assign to snooping channel</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.25" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>400 - Invalid parameters</li>
<li>404 - Channel not found</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-snoopChannelWithId"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-snoopChannelWithId:POST/channels/{channelId}/snoop/{snoopId}" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">snoopChannelWithId: POST /channels/{channelId}/snoop/{snoopId}</h2> <p style="margin: 10px 0 0 0">Start snooping. Snoop (spy/whisper) on a specific channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.24" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
<li>snoopId: <em>string</em> - Unique ID to assign to snooping channel</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.17" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>spy: <em>string</em> - Direction of audio to spy on
<ul style="margin: 10px 0 0 0">
<li>Default: none</li>
<li>Allowed values: none, both, out, in</li>
</ul> </li>
<li>whisper: <em>string</em> - Direction of audio to whisper into
<ul style="margin: 10px 0 0 0">
<li>Default: none</li>
<li>Allowed values: none, both, out, in</li>
</ul> </li>
<li>app: <em>string</em> - <strong>(required)</strong> Application the snooping channel is placed into</li>
<li>appArgs: <em>string</em> - The application arguments to pass to the Stasis application</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.26" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>400 - Invalid parameters</li>
<li>404 - Channel not found</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-dial"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-dial:POST/channels/{channelId}/dial" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">dial: POST /channels/{channelId}/dial</h2> <p style="margin: 10px 0 0 0">Dial a created channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.25" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.18" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>caller: <em>string</em> - Channel ID of caller</li>
<li>timeout: <em>int</em> - Dial timeout
<ul style="margin: 10px 0 0 0">
<li>Allowed range: Min: 0; Max: None</li>
</ul> </li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.27" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel cannot be found.</li>
<li>409 - Channel cannot be dialed.</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-rtpstatistics"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-rtpstatistics:GET/channels/{channelId}/rtp_statistics" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">rtpstatistics: GET /channels/{channelId}/rtp_statistics</h2> <p style="margin: 10px 0 0 0">RTP stats on a channel.</p> <h3 id="Asterisk19ChannelsRESTAPI-Pathparameters.26" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Path parameters</h3> <p style="margin: 10px 0 0 0">Parameters are case-sensitive.</p>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - Channel's id</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.28" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>404 - Channel cannot be found.</li>
</ul> <p style="margin: 10px 0 0 0"> <span class="confluence-anchor-link" id="Asterisk19ChannelsRESTAPI-externalMedia"></span> </p> <h2 id="Asterisk19ChannelsRESTAPI-externalMedia:POST/channels/externalMedia" style="margin: 10px 0 0 0; font-size: 20px; font-weight: normal; line-height: 30px; margin: 40px 0 0 0">externalMedia: POST /channels/externalMedia</h2> <p style="margin: 10px 0 0 0">Start an External Media session. Create a channel to an External Media source/sink.</p> <h3 id="Asterisk19ChannelsRESTAPI-Queryparameters.19" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Query parameters</h3>
<ul style="margin: 10px 0 0 0">
<li>channelId: <em>string</em> - The unique id to assign the channel on creation.</li>
<li>app: <em>string</em> - <strong>(required)</strong> Stasis Application to place channel into</li>
<li>external_host: <em>string</em> - <strong>(required)</strong> Hostname/ip:port of external host</li>
<li>encapsulation: <em>string</em> - Payload encapsulation protocol
<ul style="margin: 10px 0 0 0">
<li>Default: rtp</li>
<li>Allowed values: rtp, audiosocket</li>
</ul> </li>
<li>transport: <em>string</em> - Transport protocol
<ul style="margin: 10px 0 0 0">
<li>Default: udp</li>
<li>Allowed values: udp, tcp</li>
</ul> </li>
<li>connection_type: <em>string</em> - Connection type (client/server)
<ul style="margin: 10px 0 0 0">
<li>Default: client</li>
<li>Allowed values: client</li>
</ul> </li>
<li>format: <em>string</em> - <strong>(required)</strong> Format to encode audio in</li>
<li>direction: <em>string</em> - External media direction
<ul style="margin: 10px 0 0 0">
<li>Default: both</li>
<li>Allowed values: both</li>
</ul> </li>
<li>data: <em>string</em> - An arbitrary data field</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-Bodyparameter.3" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Body parameter</h3>
<ul style="margin: 10px 0 0 0">
<li>variables: containers - The "variables" key in the body object holds variable key/value pairs to set on the channel on creation. Other keys in the body object are interpreted as query parameters. Ex. { "endpoint": "SIP/Alice", "variables": { "CALLERID(name)": "Alice" } }</li>
</ul> <h3 id="Asterisk19ChannelsRESTAPI-ErrorResponses.29" style="margin: 10px 0 0 0; font-size: 16px; line-height: 25px; margin: 30px 0 0 0">Error Responses</h3>
<ul style="margin: 10px 0 0 0">
<li>400 - Invalid parameters</li>
<li>409 - Channel is not in a Stasis application; Channel is already bridged</li>
</ul> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-main mobile-expand action-padding last-row-padding" style="padding: 0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0; padding: 0 15px 15px 16px; background-color: #fff; padding-bottom: 10px; padding-bottom: 10px">
<table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px">
<tbody>
<tr>
<td id="actions-pattern-container" valign="middle" style="padding: 0px; border-collapse: collapse; padding: 15px 0 0 24px; vertical-align: middle">
<table align="left" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333">
<tbody>
<tr>
<td class="actions-pattern-action-icon-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0px; vertical-align: middle"><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+Channels+REST+API?src=email" title="View page Icon" style="color: #3b73af; text-decoration: none"><img class="actions-pattern-action-icon-image" height="16" width="16" border="0" title="View page Icon" src="cid:com.atlassian.confluence.plugins.confluence-email-resources%3Aview-page-email-adg-footer-item%3Aicon" alt="View page Icon" style="vertical-align: middle" /></a></td>
<td class="actions-pattern-action-text-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; padding-left: 5px; white-space: nowrap"><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+Channels+REST+API?src=email" title="View page" style="color: #3b73af; text-decoration: none">View page</a></td>
<td class="actions-pattern-action-bull" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; color: #999; padding: 0 5px">•</td>
</tr>
</tbody>
</table>
<table align="left" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333">
<tbody>
<tr>
<td class="actions-pattern-action-icon-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0px; vertical-align: middle"><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+Channels+REST+API?showComments=true&showCommentArea=true&src=email#addcomment" title="Add comment Icon" style="color: #3b73af; text-decoration: none"><img class="actions-pattern-action-icon-image" height="16" width="16" border="0" title="Add comment Icon" src="cid:com.atlassian.confluence.plugins.confluence-email-resources%3Aadd-comment-to-content-email-adg-footer-item%3Aicon" alt="Add comment Icon" style="vertical-align: middle" /></a></td>
<td class="actions-pattern-action-text-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; padding-left: 5px; white-space: nowrap"><a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+Channels+REST+API?showComments=true&showCommentArea=true&src=email#addcomment" title="Add comment" style="color: #3b73af; text-decoration: none">Add comment</a></td>
<td class="actions-pattern-action-bull" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; color: #999; padding: 0 5px">•</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333">
<tbody>
<tr>
<td class="actions-pattern-action-icon-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0px; vertical-align: middle"><a href="https://wiki.asterisk.org/wiki/plugins/likes/like.action?contentId=47350085&src=email" title="Like Icon" style="color: #3b73af; text-decoration: none"><img class="actions-pattern-action-icon-image" height="16" width="16" border="0" title="Like Icon" src="cid:com.atlassian.confluence.plugins.confluence-like%3Aview-email-adg-content-item%3Aicon" alt="Like Icon" style="vertical-align: middle" /></a></td>
<td class="actions-pattern-action-text-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; padding-left: 5px; white-space: nowrap"><a href="https://wiki.asterisk.org/wiki/plugins/likes/like.action?contentId=47350085&src=email" title="Like" style="color: #3b73af; text-decoration: none">Like</a></td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td class="email-content-rounded-bottom mobile-expand" style="padding: 0px; border-collapse: collapse; color: #fff; height: 5px; line-height: 5px; padding: 0 15px 0 16px; background-color: #fff; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; border-top: 0; border-left: 1px solid #ccc; border-bottom: 1px solid #ccc; border-right: 1px solid #ccc; mso-line-height-rule: exactly"> </td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="footer-pattern" style="padding: 0px; border-collapse: collapse; padding: 12px 20px">
<table id="footer-pattern-container" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333">
<tbody>
<tr>
<td id="footer-pattern-links-container" width="100%" style="padding: 0px; border-collapse: collapse; color: #999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px">
<table align="left" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px">
<tbody>
<tr>
<td class="footer-pattern-links mobile-resize-text" style="padding: 0px; border-collapse: collapse"><a href="https://wiki.asterisk.org/wiki/users/removespacenotification.action?spaceKey=AST&src=email" title="" style="color: #3b73af; text-decoration: none">Stop watching space</a></td>
<td class="footer-pattern-links-bull" style="padding: 0px; border-collapse: collapse; padding: 0 5px; color: #999">•</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px">
<tbody>
<tr>
<td class="footer-pattern-links mobile-resize-text" style="padding: 0px; border-collapse: collapse"><a href="https://wiki.asterisk.org/wiki/users/editmyemailsettings.action?src=email" title="" style="color: #3b73af; text-decoration: none">Manage notifications</a></td>
</tr>
</tbody>
</table> </td>
</tr>
<tr>
<td id="footer-pattern-text" class="mobile-resize-text" width="100%" style="padding: 0px; border-collapse: collapse; color: #999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px; display: none">This message was sent by Atlassian Confluence 5.6.6</td>
</tr>
</tbody>
</table> </td>
</tr>
</tbody>
</table>
<table id="sealed-section" border="0" cellpadding="0" cellspacing="0" width="0" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; color: #333; display: none">
<tbody>
<tr>
<td style="padding: 0px; border-collapse: collapse; border: 0; font-size: 0px; line-height: 0; mso-line-height-rule: exactly"></td>
</tr>
</tbody>
</table>
</body>
</html>