Asterisk-13-ManagerAction_AOCMessage_29394768.html 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Asterisk Project : Asterisk 13 ManagerAction_AOCMessage</title>
  5. <link rel="stylesheet" href="styles/site.css" type="text/css" />
  6. <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
  7. </head>
  8. <body class="theme-default aui-theme-default">
  9. <div id="page">
  10. <div id="main" class="aui-page-panel">
  11. <div id="main-header">
  12. <div id="breadcrumb-section">
  13. <ol id="breadcrumbs">
  14. <li class="first">
  15. <span><a href="index.html">Asterisk Project</a></span>
  16. </li>
  17. <li>
  18. <span><a href="Asterisk-13-Command-Reference_29394274.html">Asterisk 13 Command Reference</a></span>
  19. </li>
  20. <li>
  21. <span><a href="Asterisk-13-AMI-Actions_29394279.html">Asterisk 13 AMI Actions</a></span>
  22. </li>
  23. </ol>
  24. </div>
  25. <h1 id="title-heading" class="pagetitle">
  26. <span id="title-text">
  27. Asterisk Project : Asterisk 13 ManagerAction_AOCMessage
  28. </span>
  29. </h1>
  30. </div>
  31. <div id="content" class="view">
  32. <div class="page-metadata">
  33. Created by <span class='author'> wikibot</span> on Aug 08, 2014
  34. </div>
  35. <div id="main-content" class="wiki-content group">
  36. <h1 id="Asterisk13ManagerAction_AOCMessage-AOCMessage">AOCMessage</h1>
  37. <h3 id="Asterisk13ManagerAction_AOCMessage-Synopsis">Synopsis</h3>
  38. <p>Generate an Advice of Charge message on a channel.</p>
  39. <h3 id="Asterisk13ManagerAction_AOCMessage-Description">Description</h3>
  40. <p>Generates an AOC-D or AOC-E message on a channel.</p>
  41. <h3 id="Asterisk13ManagerAction_AOCMessage-Syntax">Syntax</h3>
  42. <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
  43. <pre>Action: AOCMessage
  44. ActionID: &lt;value&gt;
  45. Channel: &lt;value&gt;
  46. ChannelPrefix: &lt;value&gt;
  47. MsgType: &lt;value&gt;
  48. ChargeType: &lt;value&gt;
  49. UnitAmount(0): &lt;value&gt;
  50. UnitType(0): &lt;value&gt;
  51. CurrencyName: &lt;value&gt;
  52. CurrencyAmount: &lt;value&gt;
  53. CurrencyMultiplier: &lt;value&gt;
  54. TotalType: &lt;value&gt;
  55. AOCBillingId: &lt;value&gt;
  56. ChargingAssociationId: &lt;value&gt;
  57. ChargingAssociationNumber: &lt;value&gt;
  58. ChargingAssociationPlan: &lt;value&gt;
  59. </pre>
  60. </div></div>
  61. <h5 id="Asterisk13ManagerAction_AOCMessage-Arguments">Arguments</h5>
  62. <ul>
  63. <li><code>ActionID</code> - ActionID for this transaction. Will be returned.</li>
  64. <li><code>Channel</code> - Channel name to generate the AOC message on.</li>
  65. <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>
  66. <li><code>MsgType</code> - Defines what type of AOC message to create, AOC-D or AOC-E
  67. <ul>
  68. <li><code>D</code></li>
  69. <li><code>E</code></li>
  70. </ul>
  71. </li>
  72. <li><code>ChargeType</code> - Defines what kind of charge this message represents.
  73. <ul>
  74. <li><code>NA</code></li>
  75. <li><code>FREE</code></li>
  76. <li><code>Currency</code></li>
  77. <li><code>Unit</code></li>
  78. </ul>
  79. </li>
  80. <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>
  81. <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>
  82. <li><code>CurrencyName</code> - Specifies the currency's name. Note that this value is truncated after 10 characters.</li>
  83. <li><code>CurrencyAmount</code> - Specifies the charge unit amount as a positive integer. This value is required when ChargeType==Currency.</li>
  84. <li><code>CurrencyMultiplier</code> - Specifies the currency multiplier. This value is required when ChargeType==Currency.
  85. <ul>
  86. <li><code>OneThousandth</code></li>
  87. <li><code>OneHundredth</code></li>
  88. <li><code>OneTenth</code></li>
  89. <li><code>One</code></li>
  90. <li><code>Ten</code></li>
  91. <li><code>Hundred</code></li>
  92. <li><code>Thousand</code></li>
  93. </ul>
  94. </li>
  95. <li><code>TotalType</code> - Defines what kind of AOC-D total is represented.
  96. <ul>
  97. <li><code>Total</code></li>
  98. <li><code>SubTotal</code></li>
  99. </ul>
  100. </li>
  101. <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
  102. <ul>
  103. <li><code>Normal</code></li>
  104. <li><code>ReverseCharge</code></li>
  105. <li><code>CreditCard</code></li>
  106. <li><code>CallFwdUnconditional</code></li>
  107. <li><code>CallFwdBusy</code></li>
  108. <li><code>CallFwdNoReply</code></li>
  109. <li><code>CallDeflection</code></li>
  110. <li><code>CallTransfer</code></li>
  111. </ul>
  112. </li>
  113. <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>
  114. <li><code>ChargingAssociationNumber</code> - Represents the charging association party number. This value is optional for AOC-E.</li>
  115. <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>
  116. </ul>
  117. <h3 id="Asterisk13ManagerAction_AOCMessage-SeeAlso">See Also</h3>
  118. <h3 id="Asterisk13ManagerAction_AOCMessage-ImportVersion">Import Version</h3>
  119. <p>This documentation was imported from Asterisk Version SVN-branch-13-r420538</p>
  120. </div>
  121. </div> </div>
  122. <div id="footer">
  123. <section class="footer-body">
  124. <p>Document generated by Confluence on Aug 11, 2014 13:39</p>
  125. </section>
  126. </div>
  127. </div> </body>
  128. </html>