123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>Asterisk Project : Asterisk 13 ManagerAction_AOCMessage</title>
- <link rel="stylesheet" href="styles/site.css" type="text/css" />
- <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
- </head>
- <body class="theme-default aui-theme-default">
- <div id="page">
- <div id="main" class="aui-page-panel">
- <div id="main-header">
- <div id="breadcrumb-section">
- <ol id="breadcrumbs">
- <li class="first">
- <span><a href="index.html">Asterisk Project</a></span>
- </li>
- <li>
- <span><a href="Asterisk-13-Command-Reference_29394274.html">Asterisk 13 Command Reference</a></span>
- </li>
- <li>
- <span><a href="Asterisk-13-AMI-Actions_29394279.html">Asterisk 13 AMI Actions</a></span>
- </li>
- </ol>
- </div>
- <h1 id="title-heading" class="pagetitle">
- <span id="title-text">
- Asterisk Project : Asterisk 13 ManagerAction_AOCMessage
- </span>
- </h1>
- </div>
- <div id="content" class="view">
- <div class="page-metadata">
-
-
-
-
-
-
-
- Created by <span class='author'> wikibot</span> on Aug 08, 2014
- </div>
- <div id="main-content" class="wiki-content group">
- <h1 id="Asterisk13ManagerAction_AOCMessage-AOCMessage">AOCMessage</h1>
- <h3 id="Asterisk13ManagerAction_AOCMessage-Synopsis">Synopsis</h3>
- <p>Generate an Advice of Charge message on a channel.</p>
- <h3 id="Asterisk13ManagerAction_AOCMessage-Description">Description</h3>
- <p>Generates an AOC-D or AOC-E message on a channel.</p>
- <h3 id="Asterisk13ManagerAction_AOCMessage-Syntax">Syntax</h3>
- <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
- <pre>Action: AOCMessage
- ActionID: <value>
- Channel: <value>
- ChannelPrefix: <value>
- MsgType: <value>
- ChargeType: <value>
- UnitAmount(0): <value>
- UnitType(0): <value>
- CurrencyName: <value>
- CurrencyAmount: <value>
- CurrencyMultiplier: <value>
- TotalType: <value>
- AOCBillingId: <value>
- ChargingAssociationId: <value>
- ChargingAssociationNumber: <value>
- ChargingAssociationPlan: <value>
- </pre>
- </div></div>
- <h5 id="Asterisk13ManagerAction_AOCMessage-Arguments">Arguments</h5>
- <ul>
- <li><code>ActionID</code> - ActionID for this transaction. Will be returned.</li>
- <li><code>Channel</code> - Channel name to generate the AOC message on.</li>
- <li><code>ChannelPrefix</code> - Partial channel prefix. By using this option one can match the beginning part of a channel name without having to put the entire name in. For example if a channel name is SIP/snom-00000001 and this value is set to SIP/snom, then that channel matches and the message will be sent. Note however that only the first matched channel has the message sent on it.</li>
- <li><code>MsgType</code> - Defines what type of AOC message to create, AOC-D or AOC-E
- <ul>
- <li><code>D</code></li>
- <li><code>E</code></li>
- </ul>
- </li>
- <li><code>ChargeType</code> - Defines what kind of charge this message represents.
- <ul>
- <li><code>NA</code></li>
- <li><code>FREE</code></li>
- <li><code>Currency</code></li>
- <li><code>Unit</code></li>
- </ul>
- </li>
- <li><code>UnitAmount(0)</code> - This represents the amount of units charged. The ETSI AOC standard specifies that this value along with the optional UnitType value are entries in a list. To accommodate this these values take an index value starting at 0 which can be used to generate this list of unit entries. For Example, If two unit entires were required this could be achieved by setting the paramter UnitAmount(0)=1234 and UnitAmount(1)=5678. Note that UnitAmount at index 0 is required when ChargeType=Unit, all other entries in the list are optional.</li>
- <li><code>UnitType(0)</code> - Defines the type of unit. ETSI AOC standard specifies this as an integer value between 1 and 16, but this value is left open to accept any positive integer. Like the UnitAmount parameter, this value represents a list entry and has an index parameter that starts at 0.</li>
- <li><code>CurrencyName</code> - Specifies the currency's name. Note that this value is truncated after 10 characters.</li>
- <li><code>CurrencyAmount</code> - Specifies the charge unit amount as a positive integer. This value is required when ChargeType==Currency.</li>
- <li><code>CurrencyMultiplier</code> - Specifies the currency multiplier. This value is required when ChargeType==Currency.
- <ul>
- <li><code>OneThousandth</code></li>
- <li><code>OneHundredth</code></li>
- <li><code>OneTenth</code></li>
- <li><code>One</code></li>
- <li><code>Ten</code></li>
- <li><code>Hundred</code></li>
- <li><code>Thousand</code></li>
- </ul>
- </li>
- <li><code>TotalType</code> - Defines what kind of AOC-D total is represented.
- <ul>
- <li><code>Total</code></li>
- <li><code>SubTotal</code></li>
- </ul>
- </li>
- <li><code>AOCBillingId</code> - Represents a billing ID associated with an AOC-D or AOC-E message. Note that only the first 3 items of the enum are valid AOC-D billing IDs
- <ul>
- <li><code>Normal</code></li>
- <li><code>ReverseCharge</code></li>
- <li><code>CreditCard</code></li>
- <li><code>CallFwdUnconditional</code></li>
- <li><code>CallFwdBusy</code></li>
- <li><code>CallFwdNoReply</code></li>
- <li><code>CallDeflection</code></li>
- <li><code>CallTransfer</code></li>
- </ul>
- </li>
- <li><code>ChargingAssociationId</code> - Charging association identifier. This is optional for AOC-E and can be set to any value between -32768 and 32767</li>
- <li><code>ChargingAssociationNumber</code> - Represents the charging association party number. This value is optional for AOC-E.</li>
- <li><code>ChargingAssociationPlan</code> - Integer representing the charging plan associated with the ChargingAssociationNumber. The value is bits 7 through 1 of the Q.931 octet containing the type-of-number and numbering-plan-identification fields.</li>
- </ul>
- <h3 id="Asterisk13ManagerAction_AOCMessage-SeeAlso">See Also</h3>
- <h3 id="Asterisk13ManagerAction_AOCMessage-ImportVersion">Import Version</h3>
- <p>This documentation was imported from Asterisk Version SVN-branch-13-r420538</p>
- </div>
-
-
- </div> </div>
- <div id="footer">
- <section class="footer-body">
- <p>Document generated by Confluence on Aug 11, 2014 13:39</p>
- </section>
- </div>
- </div> </body>
- </html>
|